Opened 14 years ago

Closed 14 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


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)

MapGuide.js.patch (846 bytes ) - added by jbirch 14 years ago.

Download all attachments as: .zip

Change History (4)

by jbirch, 14 years ago

Attachment: MapGuide.js.patch added

comment:1 by greenmapsanmiguel, 14 years ago

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.

comment:2 by zjames, 14 years ago

Owner: changed from madair to zjames
state: NewReview
Status: newassigned

I think this is fixed in #219. Please re-test against trunk.

in reply to:  2 comment:3 by greenmapsanmiguel, 14 years ago

Resolution: fixed
Status: assignedclosed

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!

Note: See TracTickets for help on using tickets.