|
Project quickWMS: Generic JavaScript WMS Client Example : multiple layer request example according to OpenGIS Web Mapping Specification using mapWMS class Author : Pedro Pereira Gonçalves (pedro@inovagis.org) Version : 0.12 Created : 2003-03-20 Tested on : Netscape 7.0, Netscape 4.7, IE 5.5, IE 6.0 Source Code <script language='Javascript'> // WMS servers - list here your favorite server var esaWMS = "http://mapserv2.esrin.esa.it/cubestor/cubeserv/cubeserv.cgi"; function writeMaps(){ = new mapWMS(-180,-90,180,90); map.addLayer(esaWMS, "WORLD_MODIS_1KM:MapAdmin"); map.addLayer(demisWMS, "Coastlines"); map.layers[0].format="JPEG"; map.writeDOM("myMap", 350, 175, 350, 175, "background-color:white; border-style:solid; border-width:1; border-color:black;"); map.refresh(); } |