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

Tim Schaub tschaub at opengeo.org
Tue Apr 6 19:22:19 EDT 2010

Fabian Patzke (OL) wrote:
> bartvde wrote:
>> Hi Fabian,
>> thanks for pointing out the inconsistency, I've opened up a bug so we can
>> tackle this in the future:
>> http://trac.openlayers.org/ticket/2564
>> Best regards,
>> Bart
> No problem, so my "bug" report had a little good side effect. Just to
> clarify the map constructor also accepts a DOMelement as the first parameter
> its just written wrong ;)
> As far as I checked the code in map.js, both variants uses the same code:
>   this.div = OpenLayers.Util.getElement(div);
> So it just needs to be corrected in the DOC of the constructor settings.

Yes, this is just a documentation issue, not an inconsistency in the 
code.  I updated the docs and closed the ticket.


> Best wishes,
> Fabian

Tim Schaub
OpenGeo - http://opengeo.org
Expert service straight from the developers.

More information about the Dev mailing list