Android Question Prevent two polygons to get together with the line

deyvitm

Member
Licensed User
Longtime User
I'm using osmdroid 3_0_8 and on the map I launched 2 polygons, but the finish painting the 2 polygons are both together in a line, I'm crazy, like I remove that line, attached image of the result I get,
thank you for your help
 

Attachments

  • mapa.png
    mapa.png
    17.3 KB · Views: 214

PABLO2013

Well-Known Member
Licensed User
Longtime User
I only can it draw in diferents pathoverlay ,
The first point is equal to end point un this moment you change to other pathoverlay, is not elegant .... but osm pathoverlay cant draw many polygons whithout make a sppagetti
 
Upvote 0

deyvitm

Member
Licensed User
Longtime User
I only can it draw in diferents pathoverlay ,
The first point is equal to end point un this moment you change to other pathoverlay, is not elegant .... but osm pathoverlay cant draw many polygons whithout make a sppagetti
Thanks, you'll have some sample code, I'm trying and not leave me, I hope you can send me an example of code, thank you!
 
Upvote 0

deyvitm

Member
Licensed User
Longtime User
I only can it draw in diferents pathoverlay ,
The first point is equal to end point un this moment you change to other pathoverlay, is not elegant .... but osm pathoverlay cant draw many polygons whithout make a sppagetti

Thanks already worked out !!!, but now as in my polygons and multipolygons data arrives, then when I paint the polygons works fine, but when multipolygon lines appear again, then how could control those lines when multipolygon ??
Thank you so much
 
Upvote 0

PABLO2013

Well-Known Member
Licensed User
Longtime User
by that form you read the information of the polygons .
I used SpatiaLite (see b4a forum) to read the polygons type shp (esri) that are stored in a sql (see spatialite gui , in a web), which form you used to see your polygons?
I'm looking for my code , Greetings
 
Upvote 0

deyvitm

Member
Licensed User
Longtime User
by that form you read the information of the polygons .
I used SpatiaLite (see b4a forum) to read the polygons type shp (esri) that are stored in a sql (see spatialite gui , in a web), which form you used to see your polygons?
I'm looking for my code , Greetings

In my case, I'm reading a web service (JSON) that brings me GeoJSON (Polygon, MultiPolygon, Point, MultiPoint, Line, Multiline) and this desire to paint on the map osmdroid, but started with the polygon and now my problem is Multipolygon it is my first application in this and the truth that I have many problems to develop, you have any ideas or help of code to help me to do so? or maybe you can make me develop these points and you would pay, any help?
 
Upvote 0

PABLO2013

Well-Known Member
Licensed User
Longtime User
What I've drawn are polinonos and lines , each figure in a path overlay , this is limited by the number of layers , I sent a screen of the application , this only paints 10 poligonos of the a multipolygon ... this technique could expand... but not many...
 

Attachments

  • 1.gif
    1.gif
    198.3 KB · Views: 265
Upvote 0
Top