[OpenLayers-Dev] Bug when creation a map in a div with id like 'mapDIV' (2.9RC1)?

Fabian Patzke (OL) listensammler at patzi.de
Tue Apr 6 05:08:37 EDT 2010


Hi,
it seems I found a bug or at least a strange behaviour.
When I create my map with:
map = new OpenLayers.Map('mapDiv', { ... });
Everything works as normal but if I use:
map = new OpenLayers.Map('mapDIV', { ... });
or
map = new OpenLayers.Map('map_Div', { ... });
instead, the map is not initialized. Same happens when using the div option
or when I get the DOMElement first and give it to the map. The OvervieMap
control instead works great with all versions of writing the element ID. I
tried to find the problem in trac but couldn't find it.

Greetings Fabian
-- 
View this message in context: http://n2.nabble.com/Bug-when-creation-a-map-in-a-div-with-id-like-mapDIV-2-9RC1-tp4857886p4857886.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.



More information about the Dev mailing list