[OpenLayers-Dev] Map id

Nils Weinander nils.weinander at curalia.se
Tue Feb 26 02:30:23 EST 2008

Hello developers

In OpenLayers 2.5, Map.js line 272 an OpenLayers.Map object
gets its id by

this.id = OpenLayers.Util.createUniqueID("OpenLayers.Map_");

which looks like an excellent scheme for identification.
However, our graphics designer has encountered a problem
due to the ".". The Map id is used in the ids of some child
elements as well, the PanZoom zoombar <div> for example,
which gets an id like


This element cannot be addressed in CSS. Probably the CSS
processing interprets "." as the start of a new class name.

We have locally changed the Map id to

this.id = OpenLayers.Util.createUniqueID("OpenLayers_Map_");

My questions are:

* Is this likely to cause other problems?
* Is the original id scheme to be considered a bug? If so,
   how do I best report it formally?

Nils Weinander  |  Systems Designer
Phone +46 (0)8 410 064 56
Mobile +46 (0)70 978 28 37
Curalia AB  |  www.curalia.se
Västmannagatan 15, 111 24 Stockholm, Sweden

More information about the Dev mailing list