OpenLayers OpenLayers

Changeset 3369

Show
Ignore:
Timestamp:
06/19/07 20:53:58 (1 year ago)
Author:
euzuro
Message:

the map object takes care of getting the element from the id. no need to be doing this out here.... this in an effort to minimize the use of , which we were trying to phase out.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/examples/custom-control.html

    r2978 r3369  
    1717 
    1818        function init(){ 
    19             map = new OpenLayers.Map( $('map') ); 
     19            map = new OpenLayers.Map('map'); 
    2020            layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",  
    2121                    "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} ); 
  • trunk/openlayers/examples/gml-layer.html

    r2978 r3369  
    1717 
    1818        function init(){ 
    19             map = new OpenLayers.Map( $('map') ); 
     19            map = new OpenLayers.Map('map'); 
    2020            layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",  
    2121                    "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} ); 
  • trunk/openlayers/examples/kml-layer-linestring.html

    r2978 r3369  
    1717 
    1818        function init(){ 
    19             map = new OpenLayers.Map( $('map') ); 
     19            map = new OpenLayers.Map('map'); 
    2020            layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",  
    2121                    "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} ); 
  • trunk/openlayers/examples/kml-layer.html

    r2978 r3369  
    1717 
    1818        function init(){ 
    19             map = new OpenLayers.Map( $('map') ); 
     19            map = new OpenLayers.Map('map'); 
    2020            layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",  
    2121                    "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} ); 
  • trunk/openlayers/examples/openmnnd.html

    r3043 r3369  
    1818        function init(){ 
    1919            OpenLayers.ProxyHost="/proxy/?url="; 
    20             map = new OpenLayers.Map( $('map'), {'maxResolution':'auto', maxExtent: new OpenLayers.Bounds(-203349.72008129774,4816309.33,1154786.8041952979,5472346.5), projection: 'EPSG:26915' } ); 
     20            map = new OpenLayers.Map('map', {'maxResolution':'auto', maxExtent: new OpenLayers.Bounds(-203349.72008129774,4816309.33,1154786.8041952979,5472346.5), projection: 'EPSG:26915' } ); 
    2121            layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",  
    2222                    ["http://geoint.lmic.state.mn.us/cgi-bin/wms"], {layers: 'fsa'} ); 
  • trunk/openlayers/examples/vector-features.html

    r3146 r3369  
    1414 
    1515        function init(){ 
    16             map = new OpenLayers.Map( $('map') ); 
     16            map = new OpenLayers.Map('map'); 
    1717            var layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",  
    1818                    "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} ); 
  • trunk/openlayers/examples/wfs-scribble.html

    r3043 r3369  
    1414 
    1515        function init(){ 
    16             map = new OpenLayers.Map( $('map'), {controls: [ new OpenLayers.Control.PanZoom(), new OpenLayers.Control.Permalink() ]} ); 
     16            map = new OpenLayers.Map('map', {controls: [ new OpenLayers.Control.PanZoom(), new OpenLayers.Control.Permalink() ]} ); 
    1717            layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",  
    1818                    "http://labs.metacarta.com/wms-c/Basic.py",  
  • trunk/openlayers/examples/wfs-states.html

    r2978 r3369  
    1515        function init(){ 
    1616            OpenLayers.ProxyHost="/cgi-bin/proxy.cgi?url=";  
    17             map = new OpenLayers.Map( $('map'), {controls: [ new OpenLayers.Control.PanZoom(), new OpenLayers.Control.Permalink(), new OpenLayers.Control.MouseDefaults() ]} ); 
     17            map = new OpenLayers.Map('map', {controls: [ new OpenLayers.Control.PanZoom(), new OpenLayers.Control.Permalink(), new OpenLayers.Control.MouseDefaults() ]} ); 
    1818            layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",  
    1919                    "http://labs.metacarta.com/wms-c/Basic.py",  
  • trunk/openlayers/examples/wfs-t.html

    r3043 r3369  
    1414 
    1515        function init(){ 
    16             map = new OpenLayers.Map( $('map') ); 
     16            map = new OpenLayers.Map('map'); 
    1717            layer = new OpenLayers.Layer.WMS( "State",  
    1818                    "http://dev.openlayers.org/geoserver/wms", {layers: 'topp:tasmania_state_boundaries'} );