Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying OpenLayers 2.10 Beginner's Guide
  • Table Of Contents Toc
  • Feedback & Rating feedback
OpenLayers 2.10 Beginner's Guide

OpenLayers 2.10 Beginner's Guide

4.2 (9)
close
close
OpenLayers 2.10 Beginner's Guide

OpenLayers 2.10 Beginner's Guide

4.2 (9)

Overview of this book

Table of Contents (18 chapters)
close
close
OpenLayers 2.10
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Spherical Mercator


Let's talk about Spherical Mercator. I've made a couple of references to it throughout this chapter, but what is it? It is a term used to refer to the projection that many commercial, third party mapping APIs use. We need to use Spherical Mercator to properly overlay data and layers on top of third party map layers.

All the APIs we've used in this chapter so far (Google, Yahoo!, VirtualEarth/Bing, and OSM) are in the Spherical Mercator projection—a projection that treats the earth as a sphere (as opposed to an ellipsoid).

Spherical Mercator—EPSG code

The official EPSG code for the projection is currently EPSG:3857, but when the code was established it was referred to as EPSG:900913. This EPSG:900913 code can still be used in OpenLayers, as the EPSG:3857 code is identical to it. Google was one of the (if not the) first to publish maps with this projection—notice how 900913 resembles 'gOOglE' (with a backwards 'E' for 3).

Note

You may also see other EPSG codes that represent...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY