[mapguide-users] Draw polygon using Javascript API?

Jackie Ng jumpinjackie at gmail.com
Fri Oct 28 00:38:37 PDT 2016


Do you want this feature to be as part of the server-side rendered map or a
client-side feature overlaid on your map viewer?

If server-side, just use MgWktReaderWriter to get the WKT as MgGeometry and
then use the feature service APIs to insert this feature with the converted
MgGeometry.

For client-side, if you're using OpenLayers (ie. Fusion), they have a WKT
format driver that can convert from WKT to an OpenLayers feature. There is
no API in the AJAX viewer to overlay client-side geometries.

- Jackie



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Draw-polygon-using-Javascript-API-tp5292596p5293179.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list