Opened 13 years ago

Closed 12 years ago

#501 closed enhancement (fixed)

Extending selection after setSelection on MapGuide layer

Reported by: morkl Owned by: madair
Priority: P2 Milestone: 2.3
Component: MapGuide Version: SVN
Severity: Major Keywords:
Cc: Browser: All
External ID: Operating System: All
state: New

Description

When calling setSelection on a MapGuide layer, previousSelection is not updated. Therefore, one cannot extend the selection by shift-clicking.

From layers/MapGuide/MapGuide.js, [2479], setSelection:

//TODO Update this.previousSelection when the selection is set using
//this API to allow the selection to be extended with a shift-click.

I have made a patch that updates previousSelection on setSelection and uses a separate method, setSelectionInternal, for the call from within processSelectedFeatureInfo, to avoid updating previousSelection when it has already been updated.

Attachments (1)

MapGuide.js.patch (2.4 KB ) - added by morkl 13 years ago.

Download all attachments as: .zip

Change History (3)

by morkl, 13 years ago

Attachment: MapGuide.js.patch added

comment:1 by madair, 13 years ago

Milestone: Future2.3

comment:2 by jng, 12 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.