Use string instead of ol.proj.Units enum in examples

This commit is contained in:
Tom Payne
2014-02-06 22:43:25 +01:00
parent b901fba742
commit 55c99db238
3 changed files with 3 additions and 6 deletions
+1 -2
View File
@@ -5,7 +5,6 @@ goog.require('ol.View2D');
goog.require('ol.layer.Image');
goog.require('ol.layer.Tile');
goog.require('ol.proj.Projection');
goog.require('ol.proj.Units');
goog.require('ol.source.ImageWMS');
goog.require('ol.source.TileWMS');
@@ -48,7 +47,7 @@ var layers = [
// projection object.
var projection = new ol.proj.Projection({
code: 'EPSG:21781',
units: ol.proj.Units.METERS
units: 'm'
});
var map = new ol.Map({