Repost: [mapguide-internals] Selection-Issue with interim release

Andreas Morf a.morf at fkl.ch
Tue Aug 11 10:14:56 EDT 2009


...somehow the attached patch was lost in space:

Index: MapGuide.js
===================================================================
--- MapGuide.js	(revision 1889)
+++ MapGuide.js	(working copy)
@@ -899,7 +899,9 @@
             if (oNode.hasSelection) {
               if (this.selectionAsOverlay) {
                 if (!this.queryLayer) {
-                  this.queryLayer = this.createOLLayer("query layer",
false, true, 5);
+//                  this.queryLayer = this.createOLLayer("query layer",
true, 5);
+                  this.queryLayer = this.createOLLayer("query layer",
false, 5);
+                  this.queryLayer.isBaseLayer = false;
                   this.mapWidget.oMapOL.addLayer(this.queryLayer);
                   this.mapWidget.registerForEvent(Fusion.Event.MAP_LOADING,
                         OpenLayers.Function.bind(this.removeQueryLayer,
this));


Andreas

> Hi all
> A few days ago I wrote about a selection problem in the interim build
> (selection not displayed on the map) - after investigating a bit the
> attached patch resolved the problem for me:
> 
> -The original call had the wrong number/types of parameters 
> -the tiled version of the query layer didn't work for me, so I changed it
to
>  singletile 
> -if the query layer has isBaseLayer=true, the layer is not
>  redrawn/adjusted when zooming around
> 
> Can anyone review the attached patch?
> 
> Andreas



More information about the mapguide-internals mailing list