Patch for ticket 2405 (SHOWLAYERS,HIDELAYERS,SHOWGROUPS and HIDEGROUPS parameters for GETMAPIMAGE do nothing)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Patch for ticket 2405 (SHOWLAYERS,HIDELAYERS,SHOWGROUPS and HIDEGROUPS parameters for GETMAPIMAGE do nothing)

Jackie Ng
Hi All,

I've attached a new patch for ticket 2402

http://trac.osgeo.org/mapguide/ticket/2402

This fixes the GETMAPIMAGE operation in the mapagent so that the SHOWLAYERS,HIDELAYERS,SHOWGROUPS and HIDEGROUPS parameters will work.

By default, these parameters are assumed to be object ids, but when passing a Map Definition resource ID these parameters don't make sense as there won't be any existing MgMap in place so the caller would never know what layer/group ids to pass in.

This patch fixes this operation so that when a Map Definition resource ID is passed in, the affected parameters will be treated as comma-separated lists of layer/group names instead of object ids, ensuring the layer/group toggling will work.

- Jackie