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;
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user