Skip to content

Commit

Permalink
fix(examples): fix new IGN VT style url
Browse files Browse the repository at this point in the history
  • Loading branch information
ftoromanoff authored and jailln committed Mar 6, 2024
1 parent 4f361c3 commit 17124ec
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/misc_instancing.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@

// Define the source of the building data : those are vector tiled data from the geoportail.
const buildingsSource = new itowns.VectorTilesSource({
style: "https://wxs.ign.fr/essentiels/static/vectorTiles/styles/PLAN.IGN/standard.json",
style: "https://data.geopf.fr/annexes/ressources/vectorTiles/styles/PLAN.IGN/standard.json",
// We only want to display buildings related data.
filter: (layer) => {
return (
Expand Down
4 changes: 2 additions & 2 deletions examples/vector_tile_3d_mesh.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

// Define the source of the ColorLayer data : a vector tiled map from the geoportail.
const mapSource = new itowns.VectorTilesSource({
style: 'https://wxs.ign.fr/essentiels/static/vectorTiles/styles/PLAN.IGN/standard.json',
style: "https://data.geopf.fr/annexes/ressources/vectorTiles/styles/PLAN.IGN/standard.json",
// We don't display mountains and parcels related data to ease visualisation. Also, we don't display
// buildings related data as it will be displayed in another Layer.
filter: (layer) => {
Expand Down Expand Up @@ -110,7 +110,7 @@

// Define the source of the building data : those are vector tiled data from the geoportail.
const buildingsSource = new itowns.VectorTilesSource({
style: 'https://wxs.ign.fr/essentiels/static/vectorTiles/styles/PLAN.IGN/standard.json',
style: "https://data.geopf.fr/annexes/ressources/vectorTiles/styles/PLAN.IGN/standard.json",
// We only want to display buildings related data.
filter: (layer) => {
return layer['source-layer'].includes('bati_surf')
Expand Down
2 changes: 1 addition & 1 deletion examples/vector_tile_raster_2d.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

// Defines a VectorTilesSource to load Vector Tiles data from the geoportail
var mvtSource = new itowns.VectorTilesSource({
style: 'https://wxs.ign.fr/essentiels/static/vectorTiles/styles/PLAN.IGN/standard.json',
style: "https://data.geopf.fr/annexes/ressources/vectorTiles/styles/PLAN.IGN/standard.json",
// We don't display mountains related data to ease visualisation
filter: (layer) => !layer['source-layer'].includes('oro_') && !layer['source-layer'].includes('parcellaire'),
});
Expand Down
2 changes: 1 addition & 1 deletion examples/vector_tile_raster_3d.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

// Define a VectorTilesSource to load Vector Tiles data from the geoportail
var mvtSource = new itowns.VectorTilesSource({
style: 'https://wxs.ign.fr/essentiels/static/vectorTiles/styles/PLAN.IGN/standard.json',
style: "https://data.geopf.fr/annexes/ressources/vectorTiles/styles/PLAN.IGN/standard.json",
// We don't display mountains related data to ease visualisation
filter: (layer) => !layer['source-layer'].includes('oro_') && !layer['source-layer'].includes('parcellaire'),
});
Expand Down
2 changes: 1 addition & 1 deletion examples/view_3d_map.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
view,
new itowns.ColorLayer('minimap', {
source: new itowns.VectorTilesSource({
style: 'https://wxs.ign.fr/essentiels/static/vectorTiles/styles/PLAN.IGN/gris.json',
style: "https://data.geopf.fr/annexes/ressources/vectorTiles/styles/PLAN.IGN/standard.json",
// We don't display mountains and plot related data to ease visualisation
filter: (layer) => !layer['source-layer'].includes('oro_')
&& !layer['source-layer'].includes('parcellaire'),
Expand Down
2 changes: 1 addition & 1 deletion examples/view_3d_mns_map.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
view,
new itowns.ColorLayer('minimap', {
source: new itowns.VectorTilesSource({
style: 'https://wxs.ign.fr/essentiels/static/vectorTiles/styles/PLAN.IGN/gris.json',
style: "https://data.geopf.fr/annexes/ressources/vectorTiles/styles/PLAN.IGN/standard.json",
// We don't display mountains and plot related data to ease visualisation
filter: (layer) => !layer['source-layer'].includes('oro_')
&& !layer['source-layer'].includes('parcellaire'),
Expand Down
2 changes: 1 addition & 1 deletion examples/widgets_minimap.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
// Create a ColorLayer that shall be displayed on the minimap.
const minimapColorLayer = new itowns.ColorLayer('minimap', {
source: new itowns.VectorTilesSource({
style: 'https://wxs.ign.fr/essentiels/static/vectorTiles/styles/PLAN.IGN/standard.json',
style: "https://data.geopf.fr/annexes/ressources/vectorTiles/styles/PLAN.IGN/standard.json",
// We don't display mountains and plot related data to ease visualisation
filter: (layer) => !layer['source-layer'].includes('oro_')
&& !layer['source-layer'].includes('parcellaire'),
Expand Down

0 comments on commit 17124ec

Please sign in to comment.