O'Reilly logo

OpenLayers 3 : Beginner's Guide by Erik Hazzard, Paul Spencer, Thomas Gratier

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Transforming coordinates

Transforming a point means you take a coordinate in one projection and turn it into a coordinate of another projection. This operation is also called reprojection. The term reprojection is also applied when deforming a raster image from one projection to another. Apart from transforming EPSG:4326 to EPSG:3857 and vice versa, OpenLayers does not provide support for transforming other projections out-of-the-box. To do transforms with other projections, you can include Proj4js (which can be found at http://proj4js.org) or provide your own transforms and register them with OpenLayers. You may be wondering why. The main reason is to not maintain projections in the core library when we can keep it outside, in a well-maintained ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required