You should be able to use the "showLayers" / "hideLayers" attributes.
You can obtain the GUID's by inspecting the runtime map layer's object id:
http://mapguide.osgeo.net/files/mapguide/docs/webapi/d6/de2/class_mg_layer_126f4d4e55b249ce8a014b8e189b1b2c.html#126f4d4e55b249ce8a014b8e189b1b2c

Regards, Kenneth Skovhede, GEOGRAF A/S



gingerbbm skrev:
> Hmm. Can I not use the "showLayers" and "hideLayers" options in the OL
> MapGuide layer constructor? Presumably I could then set up 20 OL MG layers
> pointing to a single MapDefinition that contains my 20 layers, defining
> which to show/hide.
>
> I'm creating a MapGuide runtime map, returning the session ID to the client,
> so in addition I need to return the layer GUIDs. The question is, how do I
> get these GUIDs?
>   
_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to