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

Latest news

Last at Tue, 3 Apr 2012 23:31:42
Topic: MapXT SDK evaluation
See more news »

Setting polygon line width doesn't seem to do anything

4 replies [Last post]
ifds
User offline. Last seen 22 weeks 6 days ago. Offline
Joined: 09/23/2011

I am using the rimui_maps_lib-1.1.1 and trying to set the line width of a polygon greater than 1 but it doesn't seem to do anything. The line is still hair thin, even if I zoom in all the way. Here is my code:

LineStyle lineStyle = new LineStyle(Color.BLUE, 5);
PolyStyle polyStyle = new PolyStyle(
Color.BLUE,
PolyStyle.NO_FILL,
lineStyle
);
Polygon polygon = new Polygon(
Constants.SERVICE_AREA[i],
polyStyle
);
mapComponent.addPolygon(serviceArea);

ifds
User offline. Last seen 22 weeks 6 days ago. Offline
Joined: 09/23/2011

bump

jaak
User offline. Last seen 15 hours 38 min ago. Offline
Joined: 06/19/2008

Right, Polygon does not support width attribute for border, only color. Could you draw two objects: polygon and then Line with desired width? Line supports width. Performance-wise it would be basically same as having direct support for line width for Polygon.

/JaakL

ifds
User offline. Last seen 22 weeks 6 days ago. Offline
Joined: 09/23/2011

The Line object worked great, thanks Jaak.