comparison gnv/src/main/webapp/WEB-INF/jsp/wmslayout.jsp @ 698:d7b005107443

Adapted background layer config gnv/trunk@929 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Hans Plum <hans.plum@intevation.de>
date Wed, 14 Apr 2010 17:57:26 +0000
parents d2582f75b144
children cb1bae26e7ae
comparison
equal deleted inserted replaced
697:d2582f75b144 698:d7b005107443
36 var server = '<%=serverPath%>?MAP=<%=mapfilePath%>'; 36 var server = '<%=serverPath%>?MAP=<%=mapfilePath%>';
37 var back1 = new OpenLayers.Layer.WMS( 37 var back1 = new OpenLayers.Layer.WMS(
38 "Background1", 38 "Background1",
39 "http://gdisrv.bsh.de/arcgis/services/Background/Background/MapServer/WMSServer?", 39 "http://gdisrv.bsh.de/arcgis/services/Background/Background/MapServer/WMSServer?",
40 { 40 {
41 layers: '16', 41 layers: '0',
42 format: 'image/png', 42 format: 'image/png',
43 transparent: false 43 transparent: false
44 }, 44 },
45 { 45 {
46 isBaseLayer: 'true', 46 isBaseLayer: 'true',
47 singleTile: 'true'
48 }
49 );
50
51 var back2 = new OpenLayers.Layer.WMS(
52 "Background1",
53 "http://gdisrv.bsh.de/arcgis/services/Background/Background/MapServer/WMSServer?",
54 {
55 layers: '4',
56 format: 'image/png',
57 transparent: true
58 },
59 {
60 singleTile: 'true' 47 singleTile: 'true'
61 } 48 }
62 ); 49 );
63 50
64 layer = new OpenLayers.Layer.WMS( 51 layer = new OpenLayers.Layer.WMS(
72 { 59 {
73 singleTile: 'true' 60 singleTile: 'true'
74 } 61 }
75 ); 62 );
76 63
77 map.addLayers([back1, back2, layer]); 64 map.addLayers([back1, layer]);
78 map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); 65 map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
79 <%}%> 66 <%}%>
80 67
81 initHeight(); 68 initHeight();
82 } 69 }

http://dive4elements.wald.intevation.org