I've now taken the SelectPolygon widget as the basis for my new DrawPolygon tool. I have created duplicates of the functions in fusion\MapGuide\MapGuide.js such as query(), processQueryResults() and so on and tweaked them to call my PHP function.
The whole process completes without error: I draw a polygon, the PHP is called, and the map refreshes. But my geometry doesn't appear. What am I missing? The PHP code is definitely creating a new layer. But I'm not seeing this in the "this.aLayers" collection in the JavaScript. Should I? How do I show my new layer? -- View this message in context: http://www.nabble.com/Fusion-custom-widget%3A-how-to-proceed-tp18614320p18686811.html Sent from the MapGuide Users mailing list archive at Nabble.com. _______________________________________________ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users