[mapguide-users] Add layers to the map
Kenneth Skovhede, GEOGRAF A/S
ks at geograf.dk
Mon Jul 13 03:33:48 EDT 2009
You should also set
"layer.Visible = true;"
when adding the layers.
Regards, Kenneth Skovhede, GEOGRAF A/S
euskalmap skrev:
> Hi,
> In Masetro, I have 1 layout with a reference to a map (Library://Ag
> Base/Carte/MyMap.MapDefinition); the map MyMap contents no layers because i
> want to load the layers dynamicly.
> Another map MyMap_NEW contents 5 layers.
>
> So, my code modify the resource in layout (mapdefinition become Library://Ag
> Base/Carte/MyMap_NEW.MapDefinition) and add the layers from MyMap_NEW.
>
> Here is my http://patxi.mayol.free.fr/public/test2.aspx code
>
> when i load my web page, i see temporarily the layers on the left and 2
> seconds later, they disappear : and no map is displaying!!
>
>
> Have you an idea ?
>
>
More information about the mapguide-users
mailing list