Opened 8 years ago

Last modified 10 months ago

#1637 new enhancement

Show Current Selection of a Multiple Feature Selection

Reported by: steveg Owned by:
Priority: low Milestone: 3.3
Component: General Version: 2.2.0
Severity: trivial Keywords: selection
Cc: External ID:


The change request RFC 71 was implemented to display the properties of individual features of a multiple feature selection in the properties pane of the AJAX viewer. However, once a multiple feature selection is made and the user selects one of the features from the dropdown list, it is difficult to determine from the map which feature's properties are being displayed.

One proposal would be to have a secondary selection color that would be used to show which feature's properties is active in the properties pane (i.e. selection color blue to show all selected features and yellow to show the active feature in the properties pane)

Change History (4)

comment:1 Changed 8 years ago by jng

The ideal solution (whatever that may be. I haven't put much thought into it) is one that requires no roundtrips back to the MapGuide server for extra information. Whatever is returned by getselectedfeatures.aspx/php.jsp should provide sufficient information to render sub-selected features.

Keep in mind that the selection that you see in the viewer is a dumb image returned by the MapGuide Server. To change the selection color for the subselected feature in the naively classical sense, would require another roundtrip to the MapGuide Server for the new selection image. This is woefully inefficient.

So in terms of showing a sub-selected feature, the best bet is to put a client-side marker (eg. A css-styled div) of some sort on top of the feature in question, that moves when panning and zooming and is cleared when either the selection is cleared or a different selected feature is sub-selected.

comment:2 Changed 4 years ago by jng

Milestone: 3.1

Now that QUERYMAPFEATURES for all intents and purposes works as originally designed (there has been many design/implementation defects), I've got an easy idea on how to do this. We can implement sub-selections as renderings of transient (temporary) selections.

We can render transient selections by simply issuing a v2.6.0 QUERYMAPFEATURES with PERSIST=0 and with a different selection color, sending up the selection XML fragment of the current feature and require an inline selection image as part of the response, which we can then overlay on top of the current map image.

We can send this request on any change of map view or change of active feature in the property palette. However, because it is transient it means that if you plot the map there will be no active sub-selection included as we never persist that active sub-selection server-side.

How does that sound?

comment:3 Changed 10 months ago by jng


Ticket retargeted after milestone closed

comment:4 Changed 10 months ago by jng

Note: See TracTickets for help on using tickets.