[Mapserver-users] Mapclient - create new window
Lars-goran Edholm
Lars-goran.Edholm at sandviken.se
Wed Oct 8 11:32:20 PDT 2003
Hi!
What happens is that the page is cleared out from all menus etc and only a
new ILayer is showing, the whole code for the remaining page is:
<iframe id=iframe0 name=iframe0></iframe>
jhart at frw.uva.nl skriver:
>Lars-goran Edholm wrote:
>> Is it possible to create a new window in runtime?
>> Say you have a menu:
>>
>> m2 = new menu (
>> "zoomin.jpg",setZoomAll,
>> "zoomout.jpg",setZoomOutAll,
>> "pan.jpg",setPanAll,
>> "zoomall.jpg",submitZoomAll,
>> "Add a new window", newwin
>> )
>>
>> and a function:
>>
>> function newwin(){
>> w1 = new win(10,200,600,450,"Karta 1")
>> w1.setServerURL(MSURL)
>> w1.setVar("map",MSMAP)
>> var wins = new Array(w1)
>> w1.setExecOnResize(submitwin)
>> w1.setVar("mapsize",w1.contentWidth + " " + w1.contentHeight)
>> w1.setVar("mapext","1551957 6714299 1552357 6714699")
>> w1.setVar("map_fastvisa_class_expression","([FNR]=210176493)")
>> w1.submit()
>> }
>>
>> This will not work.
>>
>> Mvh
>> Lars-Göran Edholm tel 026/24 14 36
>> 1:e byggnadsinspektör
>> Bygg- och miljökontoret
>> 811 80 Sandviken
>> lars-goran.edholm at sandviken.se
>>
>
>Could you say what exactly goes wrong? I tried it out and got it working
>without problems.
>
>Jan
>
Mvh
Lars-Göran Edholm tel 026/24 14 36
1:e byggnadsinspektör
Bygg- och miljökontoret
811 80 Sandviken
lars-goran.edholm at sandviken.se
More information about the MapServer-users
mailing list