<br>In Control.js: <br><br> /**<br> * @constructor<br> * <br> * @param {Object} options<br> */<br> initialize: function (options) {<br> // We do this before the extend so that instances can override
<br> // className in options.<br> this.displayClass = this.CLASS_NAME.replace("OpenLayers.", "ol").replace(".","");<br> <br> OpenLayers.Util.extend(this, options);
<br> <br> <a href="http://this.id">this.id</a> = OpenLayers.Util.createUniqueID(this.CLASS_NAME + "_");<br> },<br><br><br>the replace only replaces the first period. Better would be something like this:
<br><br><br>this.displayClass = this.CLASS_NAME.replace("OpenLayers.", "ol").replace(/\./g,"");<br><br><br><br>Regards,<br><br>Glen<br>