Opened 15 years ago
Closed 15 years ago
#276 closed defect (fixed)
MapGuide selection fails to draw
Reported by: | jbirch | Owned by: | zjames |
---|---|---|---|
Priority: | P2 | Milestone: | 2.0 |
Component: | Widgets | Version: | SVN |
Severity: | Major | Keywords: | |
Cc: | Browser: | All | |
External ID: | Operating System: | All | |
state: | Review |
Description
This was reported by two users, on mapguide-users and mapguide-internals.
selection only displays selected objects in the selection panel but are not highlighted on the map
After loading the map and doing a search, selection of a feature (setSelection with zoom) works the first two times a feature is selected from the results list except that the selection is not highlighted. The status bar and selection pane do correctly show that 1 feature is selected. In previous builds the feature was highlighted correctly.
The third and subsequent times a feature is selected, a series of pink boxes with an 'x' in the upper left corner (broken image link?) appear instead of the map. Clicking on one of these boxes causes the map to reappear with the correct extents for the selected feature (but the feature still is not highlighted.) Looks like it is trying to display a tiled map, but I am not using tiling.
Andreas Morf came up with a potential solution (I'll attach a patch) with the following notes about the problem:
- 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
Attachments (1)
Change History (4)
by , 15 years ago
Attachment: | MapGuide.js.patch added |
---|
comment:1 by , 15 years ago
follow-up: 3 comment:2 by , 15 years ago
Owner: | changed from | to
---|---|
state: | New → Review |
Status: | new → assigned |
I think this is fixed in #219. Please re-test against trunk.
comment:3 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
I have tested against the new trunk and it does resolve the problem. I tested with both tiled and un-tiled maps, both work now. Thanks!
I tested with the potential solution reported by Andreas Morf. This solution works for me *if* I reverse the comments so that the command passes 'true':
this.queryLayer = this.createOLLayer("query layer", true, 5); this.queryLayer = this.createOLLayer("query layer", false, 5); this.queryLayer.isBaseLayer = false;
My map does not use tiling. Selections are now correctly highlighted and the pink tile boxes no longer appear.
Looks like Andreas is on the right track but that some conditional code may be needed so it works for all maps.