Load EPSG:21781 definition from cdnjs.

This commit is contained in:
Bruno Binet
2013-03-11 11:48:06 +01:00
parent c67e67ee12
commit 6f83e50332
2 changed files with 1 additions and 4 deletions

View File

@@ -47,6 +47,7 @@
</div>
<script src="http://cdnjs.cloudflare.com/ajax/libs/proj4js/1.1.0/proj4js-compressed.js" type="text/javascript"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/proj4js/1.1.0/defs/EPSG21781.js" type="text/javascript"></script>
<script src="loader.js?id=wmts-from-capabilities" type="text/javascript"></script>
</body>

View File

@@ -12,10 +12,6 @@ goog.require('ol.source.SingleImageWMS');
goog.require('ol.source.WMTS');
Proj4js['defs']['EPSG:21781'] =
'+proj=somerc +lat_0=46.95240555555556 +lon_0=7.439583333333333 ' +
'+k_0=1 +x_0=600000 +y_0=200000 +ellps=bessel ' +
'+towgs84=674.374,15.056,405.346,0,0,0,0 +units=m +no_defs';
var projection = ol.projection.configureProj4jsProjection({
code: 'EPSG:21781',
extent: new ol.Extent(485869.5728, 76443.1884, 837076.5648, 299941.7864)