Permalink
Browse files

renamed osm_wms to layer

  • Loading branch information...
Marcel Radischat
Marcel Radischat committed Oct 8, 2010
1 parent e11f205 commit ae6c0cbc6f43f0d2b50e5bcaf9a284db3002fe17
Showing with 3 additions and 4 deletions.
  1. +3 −4 mapproxy/service/templates/demo/wms_demo.html
@@ -14,12 +14,11 @@
function init(){
OpenLayers.Util.onImageLoadErrorColor = "transparent";
map = new OpenLayers.Map('map', {maxResolution: 360/512});
- var osm_wms = new OpenLayers.Layer.WMS( "WMS {{layer.md['name']}}",
+ var layer = new OpenLayers.Layer.WMS( "WMS {{layer.md['name']}}",
"../service?", {layers: "{{layer.md['name']}}", format: '{{format}}'},
- { singleTile: true, ratio: 1 } );
- osm_wms.addOptions({isBaseLayer: true});
+ {singleTile: true, ratio: 1}, {isBaseLayer: true} );
- map.addLayer(osm_wms);
+ map.addLayer(layer);
map.zoomToMaxExtent();
}
</script>

0 comments on commit ae6c0cb

Please sign in to comment.