[mapguide-users] mapguide OpenLayers with selection

Srecko Lipovsek srecko.lipovsek at kaliopa.si
Mon Dec 23 16:13:15 PST 2013


Hi,

Adding another MG layer in not enough it is just first step to accomplish this task.

If you look at code (Kaliopa Mobile Viewer), you will see that a lot of other things have to be done to make selection work:

1.       Add another OL vector layer (that you can draw some geometry to capture selection geometry)

2.       Create toolbar that you can switch between navigation and drawing

3.       Capture event on that vector layer (capture selection geometry and convert it to WKT)

4.       Get Visible Layers that you can post them in request to mapagent.fcgi (create some handler or read them from some tree)

5.       Create and send Request to mapagent.fcgi and process response (look at function QueryFeatureInfo)

6.       Refresh OL MG Selection layer and you will get selection image …

7.       …

Greetings from Slovenia …




--
View this message in context: http://osgeo-org.1560.x6.nabble.com/mapguide-OpenLayers-with-selection-tp5095063p5095495.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20131223/e3ad3721/attachment.html>


More information about the mapguide-users mailing list