You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Style style = Style.builder()
.fillColor(Color.RED)
.strokeColor(Color.BLACK).build();
Coordinate[] coord_shell=new Coordinate[]{
new Coordinate(0,0),
new Coordinate(10,0),
new Coordinate(10,10),
new Coordinate(0,10),
new Coordinate(0,0)
};
Coordinate[] coord_hole1=new Coordinate[]{
new Coordinate(2,2),
new Coordinate(8,2),
new Coordinate(8,8),
new Coordinate(2,8),
new Coordinate(2,2)
};
GeometryFactory geometryFactory=new GeometryFactory();
LinearRing shell=geometryFactory.createLinearRing(coord_shell);
LinearRing hole1=geometryFactory.createLinearRing(coord_hole1);
Geometry geometry=geometryFactory.createPolygon(shell,new LinearRing[]{hole1});
vectorLayer.add(new PolygonDrawable(geometry, style));
vectorLayer.update();
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: