Skip to content

Commit

Permalink
migration: map url geoportail to geoplaforme
Browse files Browse the repository at this point in the history
  • Loading branch information
fufeck committed Mar 4, 2024
1 parent b0919e5 commit fa9f22d
Show file tree
Hide file tree
Showing 2 changed files with 9,122 additions and 13,896 deletions.
186 changes: 69 additions & 117 deletions components/map/styles/ortho.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"version": 8,
"glyphs":"https://wxs.ign.fr/static/vectorTiles/fonts/{fontstack}/{range}.pbf",
"glyphs": "https://openmaptiles.geo.data.gouv.fr/fonts/{fontstack}/{range}.pbf",
"sources": {
"raster-tiles": {
"type": "raster",
"tiles": [
"https://wxs.ign.fr/essentiels/geoportail/wmts?layer=ORTHOIMAGERY.ORTHOPHOTOS&style=normal&tilematrixset=PM&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fjpeg&TileMatrix={z}&TileCol={x}&TileRow={y}"
"https://data.geopf.fr/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=ORTHOIMAGERY.ORTHOPHOTOS&STYLE=normal&FORMAT=image/jpeg&TILEMATRIXSET=PM&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}"
],
"tileSize": 256,
"attribution": "<a target='_blank' href='https://geoservices.ign.fr/documentation/donnees/ortho/bdortho'>© IGN</a>"
Expand All @@ -25,124 +25,76 @@
"type": "raster",
"source": "raster-tiles"
},
{
"id": "communes",
"type": "line",
"source": "decoupage-administratif",
"source-layer": "communes",
"minzoom": 2,
"layout": {
"line-join": "round",
"visibility": "visible"
},
"paint": {
"line-color": "#ffffff",
"line-dasharray": [
3,
1,
1,
1
],
"line-width": {
"base": 1.4,
"stops": [
[
4,
0.4
],
[
5,
1
],
[
12,
3
]
]
}
{
"id": "communes",
"type": "line",
"source": "decoupage-administratif",
"source-layer": "communes",
"minzoom": 2,
"layout": {
"line-join": "round",
"visibility": "visible"
},
"paint": {
"line-color": "#ffffff",
"line-dasharray": [3, 1, 1, 1],
"line-width": {
"base": 1.4,
"stops": [
[4, 0.4],
[5, 1],
[12, 3]
]
}
}
},
{
"id": "departements",
"type": "line",
"source": "decoupage-administratif",
"source-layer": "departements",
"maxzoom": 9,
"layout": {
"line-join": "round",
"visibility": "visible"
},
{
"id": "departements",
"type": "line",
"source": "decoupage-administratif",
"source-layer": "departements",
"maxzoom":9,
"layout": {
"line-join": "round",
"visibility": "visible"
},
"paint": {
"line-color": "hsl(248, 7%, 66%)",
"line-dasharray": [
3,
1,
1,
1
],
"line-width": {
"base": 1.4,
"stops": [
[
0,
0.6
],
[
4,
1.4
],
[
5,
2
],
[
12,
8
]
]
}
"paint": {
"line-color": "hsl(248, 7%, 66%)",
"line-dasharray": [3, 1, 1, 1],
"line-width": {
"base": 1.4,
"stops": [
[0, 0.6],
[4, 1.4],
[5, 2],
[12, 8]
]
}
}
},
{
"id": "regions",
"type": "line",
"source": "decoupage-administratif",
"source-layer": "regions",
"maxzoom": 5,
"layout": {
"line-join": "round",
"visibility": "visible"
},
{
"id": "regions",
"type": "line",
"source": "decoupage-administratif",
"source-layer": "regions",
"maxzoom":5,
"layout": {
"line-join": "round",
"visibility": "visible"
},
"paint": {
"line-color": "hsl(248, 7%, 70%)",
"line-dasharray": [
3,
1,
1,
1
],
"line-width": {
"base": 1.6,
"stops": [
[
0,
0.6
],
[
4,
1.4
],
[
5,
2
],
[
12,
8
]
]
}
"paint": {
"line-color": "hsl(248, 7%, 70%)",
"line-dasharray": [3, 1, 1, 1],
"line-width": {
"base": 1.6,
"stops": [
[0, 0.6],
[4, 1.4],
[5, 2],
[12, 8]
]
}
}
]
}
}
]
}
Loading

0 comments on commit fa9f22d

Please sign in to comment.