[OpenLayers-Dev] OpenLayers.Layer.OSM is not a constructor

Paul Spencer pspencer at dmsolutions.ca
Sun Jul 19 18:01:29 EDT 2009

it means that the OSM layer is not included in the version of  
OpenLayers that you are using.

If you are using a single file build, it probably just wasn't included  
when you made it.  Just add OpenLayers/Layer/OSM.js to your build file  
and rebuild.

It could also be an older version of OpenLayers that doesn't include  
the OSM layer type.  Upgrade to a version that does.



On 19-Jul-09, at 4:49 PM, mikani wrote:

> OpenLayers.Layer.OSM is not a constructor
> What does this error mean?
> -- 
> View this message in context: http://n2.nabble.com/OpenLayers.Layer.OSM-is-not-a-constructor-tp3285757p3285757.html
> Sent from the OpenLayers Dev mailing list archive at Nabble.com.
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev


    Paul Spencer
    Chief Technology Officer
    DM Solutions Group Inc

More information about the Dev mailing list