[Mapguide-trac] [mapguide-trac] #2203: SelectByGeometry with callback notification
MapGuide Open Source
trac_mapguide at osgeo.org
Wed Dec 19 22:02:14 PST 2012
#2203: SelectByGeometry with callback notification
---------------------------+------------------------------------------------
Reporter: jng | Owner: jng
Type: enhancement | Status: new
Priority: low | Milestone:
Component: Desktop API | Version:
Severity: trivial | Keywords:
External_id: |
---------------------------+------------------------------------------------
The current IMapViewer.SelectByGeometry API does not allow for one-shot
notifications if the method call actually changes the selection.
The current (naive) ugly approach would be to subscribe to
SelectionChanged, call the SelectByGeometry method and un-subscribe from
the event if the handler is called, which is ugly and cumbersome.
Instead, we should have an overload of SelectByGeometry that allows for a
System.Action to be passed in that is called when the internal selection
has been modified, avoiding the need to do this event subscription mess
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/2203>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list