diff --git a/examples/custom-control.html b/examples/custom-control.html index ddb12ad3a4..1fce366b7f 100644 --- a/examples/custom-control.html +++ b/examples/custom-control.html @@ -16,7 +16,7 @@ var map, layer; function init(){ - map = new OpenLayers.Map( $('map') ); + map = new OpenLayers.Map('map'); layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} ); diff --git a/examples/gml-layer.html b/examples/gml-layer.html index a14dd97e94..16a3e40295 100644 --- a/examples/gml-layer.html +++ b/examples/gml-layer.html @@ -16,7 +16,7 @@ var map, layer; function init(){ - map = new OpenLayers.Map( $('map') ); + map = new OpenLayers.Map('map'); layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} ); map.addLayer(layer); diff --git a/examples/kml-layer-linestring.html b/examples/kml-layer-linestring.html index d8978f6d1f..18bd8ea2d1 100644 --- a/examples/kml-layer-linestring.html +++ b/examples/kml-layer-linestring.html @@ -16,7 +16,7 @@ var map, layer; function init(){ - map = new OpenLayers.Map( $('map') ); + map = new OpenLayers.Map('map'); layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} ); map.addLayer(layer); diff --git a/examples/kml-layer.html b/examples/kml-layer.html index 72053a44d5..dd4cceb848 100644 --- a/examples/kml-layer.html +++ b/examples/kml-layer.html @@ -16,7 +16,7 @@ var map, layer; function init(){ - map = new OpenLayers.Map( $('map') ); + map = new OpenLayers.Map('map'); layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} ); map.addLayer(layer); diff --git a/examples/openmnnd.html b/examples/openmnnd.html index 9e1283912d..03d22748e4 100644 --- a/examples/openmnnd.html +++ b/examples/openmnnd.html @@ -17,7 +17,7 @@ function init(){ OpenLayers.ProxyHost="/proxy/?url="; - map = new OpenLayers.Map( $('map'), {'maxResolution':'auto', maxExtent: new OpenLayers.Bounds(-203349.72008129774,4816309.33,1154786.8041952979,5472346.5), projection: 'EPSG:26915' } ); + map = new OpenLayers.Map('map', {'maxResolution':'auto', maxExtent: new OpenLayers.Bounds(-203349.72008129774,4816309.33,1154786.8041952979,5472346.5), projection: 'EPSG:26915' } ); layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", ["http://geoint.lmic.state.mn.us/cgi-bin/wms"], {layers: 'fsa'} ); map.addLayer(layer); diff --git a/examples/vector-features.html b/examples/vector-features.html index 3b75da720e..a7193227c9 100644 --- a/examples/vector-features.html +++ b/examples/vector-features.html @@ -13,7 +13,7 @@ var map; function init(){ - map = new OpenLayers.Map( $('map') ); + map = new OpenLayers.Map('map'); var layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} ); map.addLayer(layer); diff --git a/examples/wfs-scribble.html b/examples/wfs-scribble.html index bb741439b8..ba7ff019ba 100644 --- a/examples/wfs-scribble.html +++ b/examples/wfs-scribble.html @@ -13,7 +13,7 @@ var map, layer; function init(){ - map = new OpenLayers.Map( $('map'), {controls: [ new OpenLayers.Control.PanZoom(), new OpenLayers.Control.Permalink() ]} ); + map = new OpenLayers.Map('map', {controls: [ new OpenLayers.Control.PanZoom(), new OpenLayers.Control.Permalink() ]} ); layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms-c/Basic.py", {layers: 'basic'} ); diff --git a/examples/wfs-states.html b/examples/wfs-states.html index 35318871fb..e2b79d6a1f 100644 --- a/examples/wfs-states.html +++ b/examples/wfs-states.html @@ -14,7 +14,7 @@ function init(){ OpenLayers.ProxyHost="/cgi-bin/proxy.cgi?url="; - map = new OpenLayers.Map( $('map'), {controls: [ new OpenLayers.Control.PanZoom(), new OpenLayers.Control.Permalink(), new OpenLayers.Control.MouseDefaults() ]} ); + map = new OpenLayers.Map('map', {controls: [ new OpenLayers.Control.PanZoom(), new OpenLayers.Control.Permalink(), new OpenLayers.Control.MouseDefaults() ]} ); layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms-c/Basic.py", {layers: 'basic'} ); diff --git a/examples/wfs-t.html b/examples/wfs-t.html index 7ec9fbe0ec..b424392bf0 100644 --- a/examples/wfs-t.html +++ b/examples/wfs-t.html @@ -13,7 +13,7 @@ var map, layer; function init(){ - map = new OpenLayers.Map( $('map') ); + map = new OpenLayers.Map('map'); layer = new OpenLayers.Layer.WMS( "State", "http://dev.openlayers.org/geoserver/wms", {layers: 'topp:tasmania_state_boundaries'} ); map.addLayer(layer);