[OpenLayers-Users] map not accept html element

Nathan Gerber ngerber999 at gmail.com
Wed Jun 1 20:33:25 EDT 2011


Looking over the documentation it seems that he would be correct in assuming
that the results of getElementById should work for the constructor. I've
never personally used this method for OpenLayers and the work around seems
easy enough in that you can simply pass the id of the element in question.

http://dev.openlayers.org/releases/OpenLayers-2.10/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.OpenLayers.Map
--
Nathan Gerber


On Wed, Jun 1, 2011 at 6:04 PM, Ricardo Bayley <ricardo.bayley at gmail.com>wrote:

> Hi
>
> My understanding is that the getElementById returns the actual Element, not
> its ID.
>
>
>
> 2011/6/1 Samuel M. Smith <smithsm at samuelsmith.org>
>
>> document.getElementById("map")
>>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110601/c3fa9d82/attachment.html


More information about the Users mailing list