[Mapserver-users] Mapclient - create new window

Lars-goran Edholm Lars-goran.Edholm@sandviken.se
Wed, 08 Oct 2003 17:00:08 +0200


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@sandviken.se


_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users