[OpenLayers-Users] How the OL MapGuide layer class relates to
the MapDefinition
Kenneth Skovhede, GEOGRAF A/S
ks at geograf.dk
Mon Mar 16 04:12:59 EDT 2009
If you have 20 layers, you will also get 20 http requests, which would
worry me.
You can't point to a single layer inside a map, but you can use server code
to toggle layer visibility, and thus have a single MG layer and control what
layers are visible.
Regards, Kenneth Skovhede, GEOGRAF A/S
gingerbbm skrev:
> Dear all
>
> My application includes 20 overlay layers using the OpenLayers MapGuide
> layer class. To achieve this I have created 20 MapDefinitions inside
> MapGuide; each of these MapDefinitions points to precisely one
> LayerDefinition.
>
> I feel slightly uneasy about having this number of MapDefinitions. Since I
> need to create a session to use the MapGuide layer class, I need to create
> 20 maps in each session per user and I'm concerned that this is quite heavy.
>
> I have two questions:
> 1. Am I worrying unduly about creating 20 maps per session?
> 2. Is there a way to configure the OpenLayers MapGuide layer class to point
> to a specific LayerDefinition inside a MapDefinition?
>
> If the answer to Q2 is yes then I can switch to one map per session that
> contains 20 layers.
>
> Thanks
> Stuart
>
More information about the Users
mailing list