hello Simone you can only select on initialMapState at once. 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.
though what you want to do is more probably: mapInfo.initialMapStates.default.layers.pippo.selected = true mapInfo.initialMapStates.default.layers.pippo.hidden= true im not really sure whats that EAR you added ? is it a child layer of the pippo layer ? if so you need to write mapInfo.initialMapStates.default.layers.EAR.hidden= true mapInfo.initialMapStates.default.layers.EAR.selected = true as the parent layer doesnt need to be explicitly selected (as far as I remember) regards Oliver 2010/11/10 Simone Frigerio <[email protected]> > Hi folk, > one doubt on initialMapStates settings. I need to show automatically a > background (default) and a hidden mask (pippo). > I set in server_conf/project.ini: > ... > mapInfo.initialMapStates.default.location.bbox = "924693, 226180, 961394, > 247681" > mapInfo.initialMapStates.default.layers.raster.selected = true > ... > mapInfo.initialMapStates.pippo.layers.EAR.selected = true > mapInfo.initialMapStates.pippo.layers.EAR.hidden= true > .... > > 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) > The syntax is: initialMapStateId = default, pippo > > Which lack in syntax I made? > Best regards. > > Simone > > > _______________________________________________ > Cartoweb-users mailing list > [email protected] > http://lists.maptools.org/mailman/listinfo/cartoweb-users > >
<<signature-1.gif>>
_______________________________________________ Cartoweb-users mailing list [email protected] http://lists.maptools.org/mailman/listinfo/cartoweb-users
