diff --git a/static/js/index.js b/static/js/index.js
index 1f035bb..c6cf169 100644
--- a/static/js/index.js
+++ b/static/js/index.js
@@ -61,29 +61,7 @@ var styles = {
}
]
},
- vector: {
- "version": 8,
- "glyphs": "https://openmaptiles.geo.data.gouv.fr/fonts/{fontstack}/{range}.pbf",
- "sources": {
- "raster-tiles": {
- "type": "raster",
- "tiles": [
- "https://a.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png",
- "https://b.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png",
- "https://c.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png"
- ],
- "tileSize": 256,
- "attribution": 'données © OpenStreetMap/ODbL - rendu OSM France'
- }
- },
- "layers": [
- {
- "id": "simple-tiles",
- "type": "raster",
- "source": "raster-tiles"
- }
- ]
- }
+ vector: 'https://openmaptiles.geo.data.gouv.fr/styles/osm-bright/style.json'
}
var nom_fichier_section = null;
@@ -202,7 +180,7 @@ var unmutatedParcellesLayer = {
type: 'fill',
paint: {
'fill-color': unmutatedColor,
- 'fill-opacity': 0.2
+ 'fill-opacity': 0.05
}
}
var unmutatedParcellesContoursLayer = {
@@ -268,7 +246,7 @@ function resetSourcesData(sources) {
function fit(geojson) {
var bbox = turf.bbox(geojson)
- map.fitBounds(bbox, { padding: 20, animate: false })
+ map.fitBounds(bbox, { padding: 20, animate: true })
}
function onMouseMove(event, source) {