Open sunshine0576 opened 6 years ago
VTM development continues at https://github.com/mapsforge/vtm.
For questions please use our forum.
Since have not asked in https://github.com/mapsforge/vtm or in forum, I post the answer here.
Depends if JTS geometries are properly constructed, e.g. JTS polygons should have their exterior shell in clockwise direction and their interior holes in counter-clockwise direction. So can normalize the created JTS polygon to handle that:
polygon.normalize();
when i add "PolygonDrawable " to the VectorLayer Polygon holes cannot be drawn,Is there a way to solve this problem?,Is my style wrong?
VectorLayer vectorLayer = new VectorLayer(mMap); Polygon shell =(Polygon) new GeomBuilder() .point(0, 0) .point() .buffer(20) .get();