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 »

Setting polygon line width doesn't seem to do anything

4 replies [Last post]
ifds
User offline. Last seen 23 weeks 3 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 23 weeks 3 days ago. Offline
Joined: 09/23/2011

bump

jaak
User offline. Last seen 4 days 20 hours 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 23 weeks 3 days ago. Offline
Joined: 09/23/2011

The Line object worked great, thanks Jaak.