[OpenLayers-Users] spherical mercator example

Richard Duivenvoorde rdmailings at duif.net
Sun Apr 13 14:37:00 EDT 2008


Hi Tara,

I think http://openlayers.org/api/OpenLayers.js will return you 
openlayers 2.5, and Projection is available in trunk/2.6
So you have to get trunk and build a OpenLayers.js yourself (or point to 
the OpenLayers.js of the example itself?

Or if you download 2.5 from: 
http://www.openlayers.org/download/OpenLayers-2.5.zip
in the examples dir of that one there is a spherical-mercator.html which 
doesn't use Projection (yet).

Hope this helps,

Regards Richard Duivenvoorde

Tara Athan wrote:
> I am trying to understand the spherical mercator example
> http://openlayers.org/dev/examples/spherical-mercator.html
> So I copied the source to my website, changed the relative reference for 
> the OpenLayers script to
> <script src="http://openlayers.org/api/OpenLayers.js"></script>
> and changed the Google API key to the one for my website.
> 
> When I open this page I get the following error in Firebug:
> OpenLayers.Projection is not a constructor
>     projection: new OpenLayers.Projection("EPSG:900913"),
> Can anyone tell me what I am doing wrong?
> 
> Thanks, Tara
> 




More information about the Users mailing list