draw geojson instead wkt

parent aec76972
...@@ -161,16 +161,16 @@ function drawPolygon(element) { ...@@ -161,16 +161,16 @@ function drawPolygon(element) {
osmap.removePolygon(); osmap.removePolygon();
// draw wkt polygon // draw wkt polygon
osmap.addWKTPolygon(polygon.wkt_polygon); // osmap.addWKTPolygon(polygon.wkt_polygon);
// format coords to draw // format coords to draw
// var coords = osmap.formatCoords(polygon.geojson.geometry.coordinates); var coords = osmap.formatCoords(polygon.geojson.geometry.coordinates);
// get the biggest area // get the biggest area
// var biggest = osmap.getBiggestPolygon(coords); // var biggest = osmap.getBiggestPolygon(coords);
// draw coordsR // draw coordsR
// osmap.addPolygon(coords); osmap.addPolygon(coords);
} }
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment