Project

General

Profile

« Previous | Next » 

Revision 5864

use the demis layer as default

View differences:

lib/style/common/spatial/map.js
31 31
    /* 
32 32
     *   Other possible WMS base layers to include
33 33
     */
34
	var showAll = true; 
35
	if (showAll) {
36
        var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", 
37
            "http://labs.metacarta.com/wms/vmap0",
38
            {layers: 'basic'} );
39 34

  
40
        var jpl_wms = new OpenLayers.Layer.WMS( "NASA Landsat Mosaic",
41
            "http://wms.jpl.nasa.gov/wms.cgi", 
42
            {layers: "modis,global_mosaic"});
35
    var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", 
36
        "http://labs.metacarta.com/wms/vmap0",
37
        {layers: 'basic'} );
43 38

  
44
        var demis = new OpenLayers.Layer.WMS( "Demis World Map",
45
            "http://www2.demis.nl/WMS/wms.asp?wms=WorldMap",
46
            {layers: 'Bathymetry,Countries,Topography,Hillshading,Coastlines,Waterbodies,Inundated,Rivers,Streams,Builtup+areas,Railroads,Highways,Roads,Trails,Borders,Cities,Settlements,Airports'} );
39
    var jpl_wms = new OpenLayers.Layer.WMS( "NASA Landsat Mosaic",
40
        "http://wms.jpl.nasa.gov/wms.cgi", 
41
        {layers: "modis,global_mosaic"});
47 42

  
48
        jpl_wms.setVisibility(false);
49
        ol_wms.setVisibility(false);
50
        demis.setVisibility(false);
43
    var demis = new OpenLayers.Layer.WMS( "Demis World Map",
44
        "http://www2.demis.nl/WMS/wms.asp?wms=WorldMap",
45
        {layers: 'Bathymetry,Countries,Topography,Hillshading,Coastlines,Waterbodies,Inundated,Rivers,Streams,Builtup+areas,Railroads,Highways,Roads,Trails,Borders,Cities,Settlements,Airports'} );
51 46

  
52
    	map.addLayers([world_borders, sanparks_boundaries, jpl_wms, ol_wms, demis, metacat_points, metacat_bounds]);
53
	}
54
	else {
55
        map.addLayers([world_borders, sanparks_boundaries, metacat_points, metacat_bounds]);
56
	}
47
    jpl_wms.setVisibility(false);
48
    ol_wms.setVisibility(false);
49
    demis.setVisibility(false);
57 50

  
51
	map.addLayers([demis, sanparks_boundaries, jpl_wms, ol_wms, world_borders, metacat_points, metacat_bounds]);	
52

  
58 53
	// some built-in controls
59 54
	map.addControl(new OpenLayers.Control.MouseToolbar());
60 55
    map.addControl(new OpenLayers.Control.LayerSwitcher());

Also available in: Unified diff