Implement simplestyle for GeoJSON
This commit is contained in:
parent
0e462aac86
commit
4e719daee1
2 changed files with 17 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue