diff --git a/examples/reprojection-by-code.html b/examples/reprojection-by-code.html index c4db7ec985..ab784c4607 100644 --- a/examples/reprojection-by-code.html +++ b/examples/reprojection-by-code.html @@ -1,10 +1,10 @@ --- template: example.html title: Reprojection with EPSG.io database search -shortdesc: Demonstrates client-side raster reprojection of MapQuest OSM to any projection +shortdesc: Demonstrates client-side raster reprojection of MapQuest OSM to arbitrary projection docs: > - This example shows client-side raster reprojection capabilities of - OpenLayers 3 from MapQuest OSM (EPSG:3857) to any projection by searching + This example shows client-side raster reprojection capabilities from + MapQuest OSM (EPSG:3857) to arbitrary projection by searching in EPSG.io database. tags: "reprojection, projection, proj4js, mapquest, epsg.io" resources: diff --git a/examples/reprojection-image.html b/examples/reprojection-image.html index f6ca664fb4..4b505605ad 100644 --- a/examples/reprojection-image.html +++ b/examples/reprojection-image.html @@ -1,11 +1,10 @@ --- template: example.html title: Image reprojection example -shortdesc: Demonstrates client-side reprojection of single image. +shortdesc: Demonstrates client-side reprojection of single image source. docs: > - This example shows client-side single-image reprojection capabilities of - OpenLayers 3. -tags: "reprojection, projection, proj4js, mapquest, image" + This example shows client-side reprojection of single image source. +tags: "reprojection, projection, proj4js, mapquest, image, imagestatic" resources: - http://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.6/proj4.js --- diff --git a/examples/reprojection-image.js b/examples/reprojection-image.js index 0143246cb1..fb58cacdc6 100644 --- a/examples/reprojection-image.js +++ b/examples/reprojection-image.js @@ -12,9 +12,7 @@ proj4.defs('EPSG:27700', '+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 ' + '+x_0=400000 +y_0=-100000 +ellps=airy ' + '+towgs84=446.448,-125.157,542.06,0.15,0.247,0.842,-20.489 ' + '+units=m +no_defs'); -var extent = [0, 0, 700000, 1300000]; -var proj27700 = ol.proj.get('EPSG:27700'); -proj27700.setExtent(extent); +var imageExtent = [0, 0, 700000, 1300000]; var map = new ol.Map({ layers: [ @@ -26,15 +24,15 @@ var map = new ol.Map({ url: 'http://upload.wikimedia.org/wikipedia/commons/thumb/1/18/' + 'British_National_Grid.svg/2000px-British_National_Grid.svg.png', projection: 'EPSG:27700', - imageExtent: extent + imageExtent: imageExtent }) }) ], renderer: common.getRendererFromQueryString(), target: 'map', view: new ol.View({ - center: ol.proj.transform(ol.extent.getCenter(extent), - proj27700, 'EPSG:3857'), + center: ol.proj.transform(ol.extent.getCenter(imageExtent), + 'EPSG:27700', 'EPSG:3857'), zoom: 4 }) }); diff --git a/examples/reprojection.html b/examples/reprojection.html index 52ddf0d862..af09326e19 100644 --- a/examples/reprojection.html +++ b/examples/reprojection.html @@ -3,9 +3,8 @@ template: example.html title: Raster reprojection example shortdesc: Demonstrates client-side raster reprojection between various projections. docs: > - This example shows client-side raster reprojection capabilities of - OpenLayers 3 between various projections. -tags: "reprojection, projection, proj4js, mapquest, wms" + This example shows client-side raster reprojection between various projections. +tags: "reprojection, projection, proj4js, mapquest, wms, wmts, hidpi" resources: - http://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.6/proj4.js --- @@ -17,14 +16,14 @@ resources: