SHARE
TWEET

Openlayers 3/4 WMTS ČÚZK

a guest Feb 20th, 2017 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var raster5 =   new ol.layer.Tile({
  2.     title: 'ČÚZK - aktuální ortofoto (WMTS)',
  3.     source: new ol.source.WMTS({
  4.         attributions: new ol.Attribution({
  5.             html:  '<a href="http://www.cuzk.cz">Ortofoto ČÚZK</a>'
  6.             }),
  7.         url: 'http://geoportal{1-4}.cuzk.cz/WMTS_ORTOFOTO/WMTService.aspx?',
  8.         layer: 'orto',
  9.         matrixSet: 'wgs84:pseudomercator:epsg:3857',
  10.         format: 'image/jpeg',
  11.         tileGrid: new ol.tilegrid.WMTS({
  12.            extent:      [1292959.1096709899, 6185018.16280091, 2341666.1816709898, 6709371.6988009103],
  13.            resolutions: [2048.256, 1024.128, 512.064, 256.032, 128.016, 64.008, 32.004,
  14.                          16.002, 8.001, 4.0005, 2.00025, 1.000125, 0.5000625, 0.25003125],
  15.            matrixIds:   [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14],
  16.            }),
  17.         style: 'default'
  18.         })
  19.     })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top