Ticket #120 (closed enhancement: fixed)

Opened 5 years ago

Last modified 4 years ago

allow selection to be rendered as separate layer

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

Description

render selections in a separate layer using the GETDYNAMICOVERLAY mapagent call.

Change History

Changed 5 years ago by madair

(In [1501]) re #120: optionally render selections in a separate layer and allow setting the color and format for selections - configured through AppDef?

Changed 5 years ago by madair

  • status changed from new to assigned
  • type changed from defect to enhancement

this also allows setting the color for selections.

Note that currently, the baselayer is still rendered with GETMAPIMAGE which includes the selections as well. The current OL implementation of MapGuide layer type uses the GETMAPIMAGE mapagent call for baselayers.

I think ideally in the long run a much better approach would be for Selection.php to return selected feature geometries which would get rendered in a vector layer in the browser using OL vector drawing code. This wold allow client-side feature manipulation (e.g. highlight effects on hover).

Changed 5 years ago by madair

  • milestone changed from 1.2 to 2.0

Changed 5 years ago by madair

(In [1574]) re #120: updated OpenLayers at v2.7 and custom build config file; includes a patch for the OL MapGuide layer to optionally render layers using GETDYNAMICOVERLAY calls.

Changed 5 years ago by pagameba

(In [1575]) re #120, make selectionasoverlay the default case and turn it off if explicitly requested in the app def.

Changed 5 years ago by madair

(In [1583]) re #120: patched version of OL which uses asynchronous calls for GETVISIBLEMAPEXTENT and supports the useOverlay flag

Changed 5 years ago by madair

(In [1625]) re #120: update of OL Mapguide layer to use the new GETDYNAMICOVERLAY API call from MapGuide

Changed 5 years ago by madair

(In [1626]) re #120: remove siteVersion check until it can be tested more

Changed 5 years ago by madair

(In [1627]) re #120: set useOverlay to default to true; prevent redrawing the map after a selection

Changed 5 years ago by madair

(In [1658]) re #120: for backwards compatibility, set useOverlay to false for MG installs prior to v2.1.x; move the PHP siteVersion element to LoadMap? because opening a template from studio by-passes the CreateSesssion?.php call

Changed 4 years ago by madair

  • status changed from assigned to closed
  • resolution set to fixed

closing, this was implemented months ago. New issues with MapGuide selections can be entered as new tickets

Note: See TracTickets for help on using tickets.