[Mapserver-users] Mapclient - create new window
Jan Hartmann
jhart at frw.uva.nl
Wed Oct 8 10:03:16 PDT 2003
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
More information about the MapServer-users
mailing list