[Mapserver-users] Mapclient - create new window

Lars-goran Edholm Lars-goran.Edholm at sandviken.se
Wed Oct 8 08:00:08 PDT 2003


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





More information about the MapServer-users mailing list