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.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3369 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user