@swissgeo/coordinates 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -85,7 +85,8 @@ const center = extentUtils.getExtentCenter(extentLV95)
85
85
  The package provides specialized helpers for OpenLayers in `@swissgeo/coordinates/ol`.
86
86
 
87
87
  ```typescript
88
- import { getLV95ViewConfig, getLV95TileGrid, registerProj4, registerSwissGeoProjections } from '@swissgeo/coordinates/ol'
88
+ import {registerProj4 } from '@swissgeo/coordinates'
89
+ import { getLV95ViewConfig, getLV95WMTSTileGrid } from '@swissgeo/coordinates/ol'
89
90
  import TileLayer from 'ol/layer/Tile'
90
91
  import Map from 'ol/Map'
91
92
  import View from 'ol/View'
@@ -109,7 +110,7 @@ const map = new Map({
109
110
  source: new XYZ({
110
111
  url: 'https://wmts.geo.admin.ch/1.0.0/ch.swisstopo.pixelkarte-farbe/default/current/2056/{z}/{x}/{y}.jpeg'
111
112
  projection: LV95.epsg,
112
- tileGrid: getLV95TileGrid()
113
+ tileGrid: getLV95WMTSTileGrid()
113
114
  })
114
115
  })
115
116
  ]