hello Simone<br><br>you can only select on initialMapState at once.<br>so initialMapStateId = default, pippo will not work as you are requesting that your project has two different state at the same time, which is simply not possible.<br>
<br>though what you want to do is more probably:<br><br><div bgcolor="#ffffff">
mapInfo.initialMapStates.default.layers.pippo.selected = true<br>
mapInfo.initialMapStates.default.layers.pippo.hidden= true</div><br>im not really sure whats that EAR you added ? is it a child layer of the pippo layer ?<br>if so you need to write<br><br>
<div bgcolor="#ffffff"><div bgcolor="#ffffff">
mapInfo.initialMapStates.default.layers.EAR.hidden= true</div>mapInfo.initialMapStates.default.layers.EAR.selected = true<br>as the parent layer doesnt need to be explicitly selected (as far as I remember)<br><br>regards<br>
Oliver<br></div><br><div class="gmail_quote">2010/11/10 Simone Frigerio <span dir="ltr"><<a href="mailto:simone.frigerio@univie.ac.at">simone.frigerio@univie.ac.at</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
Hi folk,<br>
one doubt on initialMapStates settings. I need to show automatically
a background (default) and a hidden mask (pippo).<br>
I set in server_conf/project.ini: <br>
...<br>
mapInfo.initialMapStates.default.location.bbox = "924693, 226180,
961394, 247681"<br>
mapInfo.initialMapStates.default.layers.raster.selected = true<br>
...<br>
mapInfo.initialMapStates.pippo.layers.EAR.selected = true<br>
mapInfo.initialMapStates.pippo.layers.EAR.hidden= true<br>
....<br>
<br>
Tho choice to activate more MasStates could be done in client.ini.
In client.ini "default" is selected automatically, but if I want
both the MApStates at the beginning, an error occourred (message:
not able to find Initial MapStates)<br>
The syntax is: initialMapStateId = default, pippo<br>
<br>
Which lack in syntax I made?<br>
Best regards.<br>
<br>
Simone<br>
<div><br>
<img src="cid:part1.03090005.02020806@univie.ac.at" border="0"></div>
</div>
<br>_______________________________________________<br>
Cartoweb-users mailing list<br>
<a href="mailto:Cartoweb-users@lists.maptools.org">Cartoweb-users@lists.maptools.org</a><br>
<a href="http://lists.maptools.org/mailman/listinfo/cartoweb-users" target="_blank">http://lists.maptools.org/mailman/listinfo/cartoweb-users</a><br>
<br></blockquote></div><br>