File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -310,8 +310,9 @@ export default {
310310 this .$store .commit (' setBfsname' , result .data .municipality .fullname );
311311 },
312312
313- createFeatureLayer (geojson ) {
313+ createFeatureLayer (geojson , attribution ) {
314314 const geoJsonExtended = L .geoJson (geojson, {
315+ attribution,
315316 pointToLayer : (feature , latlng ) => {
316317 if (feature .properties .radius ) {
317318 // properties need to match https://leafletjs.com/reference-1.6.0.html#circle
@@ -361,7 +362,9 @@ export default {
361362 attribution: this .geojson .views [0 ].spec .attribution
362363 }));
363364 } else if (layer .mediatype === ' application/vnd.simplestyle-extended' ) {
364- this .map .addLayer (this .createFeatureLayer (layer .data .features ));
365+ this .map .addLayer (this .createFeatureLayer (
366+ layer .data .features , this .geojson .views [0 ].spec .attribution
367+ ));
365368 }
366369 });
367370 } else if (this .bfsNumber ) { // empty municipality
You can’t perform that action at this time.
0 commit comments