[OpenLayers-Users] Openlayers.map is not a construcor

Christian López Espínola penyaskito at gmail.com
Mon Oct 30 06:24:46 EST 2006


On 10/30/06, Moser Adrian <Adrian.Moser at bs.ch> wrote:
> Hi,
>
> I'm trying to use Openlayers for an application I'm developping.
> When I try to initialize the map I get the following error message: Openlayers.map is not a construcor

Try with

map = new OpenLayers.Map('map', {controls: []});

(Be careful with the lower and uppercase)

> I can't figuere out why this error occurs, since it works on a similar example. The only reason that could be is that I'm loading the map container (div) with ajax. So it's not on the website when i first load it but it is there when I try to initialize the map.
>
> Can anyone help me to sove this problem?
>
> Thanks,
> Adrian
>
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


-- 
Christian López Espínola


More information about the Users mailing list