Use strings rather than ol.projection.get in examples

This commit is contained in:
Tom Payne
2013-03-06 18:53:59 +01:00
parent eaa17758bd
commit 874583656e
3 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ var map = new ol.Map({
controls: ol.control.defaults({}, [
new ol.control.MousePosition({
coordinateFormat: ol.Coordinate.toStringHDMS,
projection: ol.projection.getFromCode('EPSG:4326'),
projection: 'EPSG:4326',
target: document.getElementById('mouse-position'),
undefinedHTML: ' '
})