Hmmm, I was going to suggest a REST API URL that uses the existing GETMAPIMAGE mapagent operation under the hood which would've looked like this (using Sheboygan as an example)
http://servername/mapguide/rest/library/Samples/Sheboygan/Maps/Sheboygan.MapDefinition/image.png?x=<your x coord>&y=<your y coord>&scale=<your scale>&width=<your img width>&height=<your img height>&showlayers=<comma-separated list of layers to show>&hidelayers=<comma-separated list of layers to hide> But it turns out there's a bug in GETMAPIMAGE operation in that the SHOWLAYERS, HIDELAYERS, SHOWGROUPS and HIDEGROUPS parameters do nothing. They do nothing because they are comma-separated lists of object ids, and not layer/group names. This works for GETDYNAMICMAPOVERLAYIMAGE because you have knowledge of the MgMap, so you know what object ids you can pass. But as you'd be rendering off of a map definition, you'd never know what these object ids could ever be as you never see the MgMap that's created off of the map definition. So uh, theoretically this should've been possible. At least you exposed a bug (http://trac.osgeo.org/mapguide/ticket/2402) in the process :) - Jackie -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-rest-tp5101766p5103625.html Sent from the MapGuide Users mailing list archive at Nabble.com. _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
