I created a two map contexts with different dimensions but showing the same osm map. One of these contexts I used in a block which I placed on the frontpage and the second one was used in a story node. All was well untill I added a GeoRSS layer to each of these maps (The GeoRSS layer is a Feed View). The story map functions as expected but the frontpage map returns the following error in firebug:
element is null
removeClass()(null, "olMap")OpenLayers.js (line 252)
removeClass()(null, "olMap")OpenLayers.js (line 252)
callback()("map-0", Object numZoomLevels=20 projection=EPSG:900913)OpenLayers.js (line 662)
Class()()OpenLayers.js (line 116)
init()()mypol (line 385)
[Break on this error] var els=element.style;var originalVisibi...sName+=(element.className?" ":"")+name;}
Firebug shows the following HTML:
<div class="content block-content">
<div id="map-map-1-block" class="map-block openlayers">
<div id="panels">
</div>
<div style="clear: both;"/>
<div id="map-1" class="mapclient" style="width: 700px; height: 360px;"/>
<div id="map-1-statusbar" class="statusbar-container" style="width: 700px;">
<div id="map-1-statusbar-scale" class="statusbar statusbar-scale"/>
<div class="statusbar statusbar-permalink">
<a id="map-1-statusbar-permalink">permalink</a>
</div>
<div id="map-1-statusbar-mouseposition" class="statusbar statusbar-mouseposition"/>
<div id="map-1-statusbar-projection" class="statusbar statusbar-projection"/>
<div id="map-1-statusbar-text" class="statusbar statusbar-text"/>
</div>
<div class="mapclient-messages" style="display: block;">
<ul id="mapclient-messages"/>
</div>
<div id="docs"/>
</div>
</div>
There is only the one map on this page so I believe map-1 should actually be map-0. As a test I have copied the map code in the story node a couple of times and pasted them one after another on the same node. Again all work as expected but the map on the frontpage is incremented to map-2 and then map-3 after the third map is added.
Comments
Comment #1
mikeprinsloo commentedThis appears to be a problem with the devel module and only seems to occur when the devel theme module is installed. Since a number of other unrelated problems also seem to be connected with the devel module, I don't think anyone here should be concerned about this problem.
Comment #2
jpulles commentedThanks for noticing that the problem was elsewhere. I already couldn't think of a reason why the sequence numbering for maps would fail.