Implement simplestyle for GeoJSON

This commit is contained in:
Manuel Fuhr 2023-04-20 21:45:15 +02:00
parent 0e462aac86
commit 4e719daee1
2 changed files with 17 additions and 3 deletions

View file

@ -349,7 +349,7 @@ BR.LayersConfig = L.Class.extend({
},
createGeoJsonLayer: function (props) {
const layer = L.geoJSON(undefined);
const layer = L.geoJSON(undefined, BR.Track.getGeoJsonOptions());
fetch(props.url).then(async (response) => {
const geojson = await response.json();
layer.addData(geojson);