[Cartoweb-users] initialMapState definition by URL or Php

2007-11-29 Thread [EMAIL PROTECTED]
Hello, a-priori, there's no problem with getInitialMapState() : if (!empty($_REQUEST['initialState'])) { $stateId = $_REQUEST['initialState']; ---> print($stateId); // displays ms2 when url = ...?initialState=ms2 $this->initialMapState = $this->getMapInfo() ->getInitialMapStateById($sta

Re: [Cartoweb-users] initialMapState definition by URL or Php

2007-11-29 Thread Oliver Christen
mmm this is quite strange, as the check on the initialMapState is almost the first thing done. the script check first for initialState in url, then it tries to get CW3_INITIAL_MAP_STATE_ID from env and finally try to get it from config. you can try to put some "print ('something');" in functio

[Cartoweb-users] initialMapState definition by URL or Php

2007-11-29 Thread [EMAIL PROTECTED]
Hello, I'm trying to define the initialMapStateId of my project : by url : ...?initialState=ms2 or by Php : $_ENV['CW3_INITIAL_MAP_STATE_ID'] = 'ms2'; but the project always opens with the map state defined in client.ini by initialMapStateId = ms1 Please help me ! kind regards (PS : I'm using