Add fromLonLat and toLonLat convenience functions

This commit is contained in:
Andreas Hocevar
2015-03-31 19:27:35 +02:00
parent fc9563ad65
commit 5579dc53a2
15 changed files with 81 additions and 20 deletions

View File

@@ -21,7 +21,7 @@ var map = new ol.Map({
renderer: exampleNS.getRendererFromQueryString(),
target: 'map',
view: new ol.View({
center: ol.proj.transform([-77.93255, 37.9555], 'EPSG:4326', 'EPSG:3857'),
center: ol.proj.fromLonLat([-77.93255, 37.9555]),
zoom: 5
})
});