diff --git a/doc/quickstart.hbs b/doc/quickstart.hbs index 3a602c4d6a..3576b395d7 100644 --- a/doc/quickstart.hbs +++ b/doc/quickstart.hbs @@ -35,7 +35,7 @@ Below you'll find a complete working example. Create a new file, copy in the co }) ], view: new ol.View({ - center: ol.proj.transform([37.41, 8.82], 'EPSG:4326', 'EPSG:3857'), + center: ol.proj.fromLonLat([37.41, 8.82]), zoom: 4 }) }); @@ -89,7 +89,7 @@ The map in the application is contained in a [`
` HTML element](http://en.wi }) ], view: new ol.View({ - center: ol.proj.transform([37.41, 8.82], 'EPSG:4326', 'EPSG:3857'), + center: ol.proj.fromLonLat([37.41, 8.82]), zoom: 4 }) }); @@ -125,7 +125,7 @@ The next part of the `Map` object is the `View`. The view allow to specify the c ```js view: new ol.View({ - center: ol.proj.transform([37.41, 8.82], 'EPSG:4326', 'EPSG:3857'), + center: ol.proj.fromLonLat([37.41, 8.82]), zoom: 4 }) ```