Opened 9 years ago

Last modified 9 years ago

#640 new enhancement

Fusion function to get selected geometry to pass into OpenLayers.Control.ModifyFeature

Reported by: jkanie Owned by: jng
Priority: P2 Milestone: Future
Component: Widgets Version: 2.0
Severity: Major Keywords:
Cc: Browser: All
External ID: Operating System: All
state: New

Description

If there isn't one yet, a function that returns Fusion object's selected geometry to directly pass into OpenLayers.Control.ModifyFeature to initiate an edit session would be great.

Change History (1)

comment:1 by jng, 9 years ago

Owner: changed from madair to jng

If you have mapguide-rest installed, you could do a GET of

http://servername:port/mapguide/rest/session/<YOUR_SESSION_ID>/<MAP_NAME>.Selection/features.geojson/<SELECTED_LAYER_NAME>

For selected features as GeoJSON

Load that returned GeoJSON into a OpenLayers.Layer.Vector instance and hand that off to a ModifyFeature control for editing.

Note: See TracTickets for help on using tickets.