Add reprojection example with proj4 defs loading from EPSG.io

This commit is contained in:
Petr Sloup
2015-08-25 17:47:42 +02:00
parent 690a5f1f90
commit 0c48a560b2
2 changed files with 138 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
---
template: example.html
title: Reprojection with EPSG.io database search
shortdesc: Demonstrates client-side raster reprojection of MapQuest OSM to any projection
docs: >
This example shows client-side raster reprojection capabilities of
OpenLayers 3 from MapQuest OSM (EPSG:3857) to any projection by searching
in <a href="http://epsg.io/">EPSG.io</a> database.
tags: "reprojection, projection, proj4js, mapquest, epsg.io"
resources:
- http://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.6/proj4.js
---
<div class="row-fluid">
<div class="span12">
<div id="map" class="map"></div>
</div>
<form class="form-inline">
<label for="epsg-query">Search projection:</label>
<input type="text" id="epsg-query" placeholder="4326, 27700, US National Atlas, Swiss, France, ..." class="form-control" size="50" />
<button id="epsg-search" class="btn">Search</button>
<span id="epsg-result"></span>
<div>
<label for="render-edges"><input type="checkbox" id="render-edges" />Render reprojection edges</label>
</div>
</form>
</div>