diff --git a/examples/static-image.js b/examples/static-image.js index 919c403c9f..9697a74785 100644 --- a/examples/static-image.js +++ b/examples/static-image.js @@ -4,7 +4,6 @@ goog.require('ol.View2D'); goog.require('ol.extent'); goog.require('ol.layer.Image'); goog.require('ol.proj.Projection'); -goog.require('ol.proj.Units'); goog.require('ol.source.ImageStatic'); @@ -13,7 +12,7 @@ goog.require('ol.source.ImageStatic'); // map can use to properly display the layer. var pixelProjection = new ol.proj.Projection({ code: 'pixel', - units: ol.proj.Units.PIXELS, + units: 'pixels', extent: [0, 0, 1024, 968] }); diff --git a/examples/wms-no-proj.js b/examples/wms-no-proj.js index ee42a3be65..6ec230650b 100644 --- a/examples/wms-no-proj.js +++ b/examples/wms-no-proj.js @@ -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({ diff --git a/examples/zoomify.js b/examples/zoomify.js index 112c4f506b..cd0136c531 100644 --- a/examples/zoomify.js +++ b/examples/zoomify.js @@ -4,7 +4,6 @@ goog.require('ol.View2D'); goog.require('ol.layer.Tile'); goog.require('ol.proj'); goog.require('ol.proj.Projection'); -goog.require('ol.proj.Units'); goog.require('ol.source.Zoomify'); // This server does not support CORS, and so is incompatible with WebGL. @@ -26,7 +25,7 @@ var imgCenter = [imgWidth / 2, - imgHeight / 2]; // can use to properly display the layer. var proj = new ol.proj.Projection({ code: 'ZOOMIFY', - units: ol.proj.Units.PIXELS, + units: 'pixels', extent: [0, 0, imgWidth, imgHeight] });