kopia lustrzana https://github.com/manuelkasper/sotlas-frontend
Fix IGN map link
rodzic
1df937b854
commit
8b2d179486
10
package.json
10
package.json
|
@ -3,13 +3,11 @@
|
|||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
"serve": "export SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
|
||||
"prebuild": "vsvg -s ./svg-icons -t ./src/compiled-icons",
|
||||
"build": "vue-cli-service build",
|
||||
"lint": "vue-cli-service lint",
|
||||
"generate-icons": "vsvg -s ./svg-icons -t ./src/compiled-icons",
|
||||
"deploy": "gzip -fk9 dist/js/*.js dist/css/*.css && rsync -av dist/* root@vs5.ksys.ch:/data/www",
|
||||
"deploy:beta": "gzip -fk9 dist/js/*.js dist/css/*.css && rsync -av --delete dist/* root@vs5.ksys.ch:/data/www/beta"
|
||||
"build": "export SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
|
||||
"lint": "export SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service lint",
|
||||
"generate-icons": "vsvg -s ./svg-icons -t ./src/compiled-icons"
|
||||
},
|
||||
"dependencies": {
|
||||
"@dsb-norge/vue-keycloak-js": "github:manuelkasper/vue-keycloak-js#sotlas",
|
||||
|
|
|
@ -129,7 +129,8 @@ export default {
|
|||
name: 'IGN',
|
||||
url: () => {
|
||||
if (this.reference && this.reference.match('^(EA[1-9]|ZB2)/')) {
|
||||
return `https://www.ign.es/iberpix2/visor/?&x=${this.longitude}&y=${this.latitude}&level=15&srid=4258&visible=MTN`
|
||||
let p = this.convertLatLonToGrid(this.latitude, this.longitude, 'EPSG:3857')
|
||||
return `https://componentes.cnig.es/api-core/?center=${p[0]},${p[1]}&zoom=16&controls=scale*true&plugins=toc,zoompanel,measurebar,mousesrs&layers=WMTS*https://www.ign.es/wmts/mapa-raster?*MTN*GoogleMapsCompatible*Map*false*image/jpeg*false*false*true&projection=EPSG:3857*m`
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Ładowanie…
Reference in New Issue