[fusion-trac] #640: Fusion function to get selected geometry to pass into OpenLayers.Control.ModifyFeature

Fusion trac_fusion at osgeo.org
Wed Apr 27 02:30:16 PDT 2016


#640: Fusion function to get selected geometry to pass into
OpenLayers.Control.ModifyFeature
---------------------------+---------------------------
   Reporter:  jkanie       |             Owner:  jng
       Type:  enhancement  |            Status:  new
   Priority:  P2           |         Milestone:  Future
  Component:  Widgets      |           Version:  2.0
   Severity:  Major        |        Resolution:
   Keywords:               |           Browser:  All
External ID:               |  Operating System:  All
      state:  New          |
---------------------------+---------------------------
Changes (by jng):

 * owner:  madair => jng


Comment:

 If you have [https://github.com/jumpinjackie/mapguide-rest 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.

--
Ticket URL: <http://trac.osgeo.org/fusion/ticket/640#comment:1>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.


More information about the fusion-trac mailing list