Map API

Nutiteq Maps Lib SDK enables developing advanced mobile mapping applications.
Platforms: Android, RIM BlackBerry, Java ME (J2ME)
Download maps API SDK »
Untitled Document

Products

» View demos
» Downloads

Uudised

Viimane: Thu, 15 Mar 2012 14:51:08
Teema: Vabad töökohad pakkuda
Veel uudiseid »

Some questions about LineStyle

3 replies [Last post]
matthewlcy
User offline. Last seen 2 years 16 weeks ago. Offline
Joined: 08/24/2009

Hi all,

I have some questions about the LineStyle.

1. Is the map supports transparent line? I saw the constructor of LineStyle accepts an int in ARGB format but unfortunately, it seems nothing changed although I have set the alpha value.

2. Is there any easy ways to change the line thickness when I zoom in or zoom out the map? As the line thickness remains unchange when I change the zoom level of the map.

3. One more question not related to LineStyle. How can I make the map simpler? Like showing just the road names, hiding the building names / residential area names.

Anyone have ideas on these questions? Thanks.

marcov
User offline. Last seen 9 weeks 6 hours ago. Offline
Joined: 07/06/2009

hi Matthew:

1. No, at the moment this implementation don't support the transparency for lines because lines are drew by drawLine() (lcdui j2me package) an it supports only RGB colours.

2. not easily but you can check when the map is moved or zoomed by implementing the MapListener, and than change the size of the line by his .setStyle() method.

3.this depend on the map source you use. For example now I'm trying to use map from a GeoServer, configured properly to do some of these feature(show only certain type of city names, streets etc.). Everything depend on the capabilities of the cartographic server you are using not by the nutiteq library.

Hope this helps

alyver

jaak
User offline. Last seen 4 days 19 hours ago. Offline
Joined: 06/19/2008

Regarding map styles I suggest to take also a look to Style Editor and Custom styles of CloudMade.com They enable you to customize base map, including exactly what you need: removal of some street/way classes for some zoom levels.

/JaakL

matthewlcy
User offline. Last seen 2 years 16 weeks ago. Offline
Joined: 08/24/2009

Hi alyver and Jaak. These information are definitely helps, I'll try it out. Thanks

Matt