© Pedro Pereira Gonçalves (pedro@inovagis.org)

Project quickWMS: Generic JavaScript WMS Client
Example : multiple layer request example according to OpenGIS Web Mapping Specification using quickWMS class for using Demis Layers (special case with other parameters)
Author : Pedro Pereira Gonçalves (pedro@inovagis.org)
Version : 0.01
Last Change : 2003-10-24
Tested on : Netscape 4.7, 7.0 and 7.1,
Mozilla 1.4.1, IE 5.5, IE 6.0, Camino 0.7(Mac-OS )






Source Code

    <script language='Javascript'>

    // WMS servers - list here other OGC compliant map servers
    var demisWMS
    = "http://www.demis.nl/wms/wms.asp?wms=WorldMap";

    function writeMaps(){

    var map = new mapWMS(-180,-90,180,90);
    map.addLayer(demisWMS, "Bathymetry,Countries", "1.0.0");
    map.addLayer(demisWMS, "Topography,Hillshading", "1.0.0");
    map.addLayer(demisWMS, "Builtup+areas,Coastlines, Waterbodies,Rivers,Streams,Railroads,Highways, Roads,Trails, Borders,Cities, Settlements,Airports,Ocean+features", "1.0.0","Coastlines, Rivers and built features");
    map.writeDOM("myMap", 350, 175, 350, 175, "background-color:white; border-style:solid; border-width:1; border-color:black;");
    map.toolbar = new toolBar(map);
    map.toolbar.writeDOM(350, 170, true);
    map.refresh();

    }
    writeMaps();
    </script>