Open cyrilchapon opened 7 years ago
I use nested geojson stuff :
<leaflet ... geojson="map.geojson" geojson-nested="true" ...> </leaflet>
$scope.map = { ... geojson: { ways: _.extend({}, mapStyles.ways, { name:'ways', visible: true }) }, ... };
And visible toggle doesn't work.
visible
Even worse, if I map.removeLayer(<mylayer>) (which works), when I update $scope.map.geojson.ways.data, it readds the layer to the map.
map.removeLayer(<mylayer>)
$scope.map.geojson.ways.data
I also tried
$scope.map = { ... geojson: { ways: _.extend({}, mapStyles.ways, { name:'ways', visible: false, // <--- notice this layerOptions: { visible: false // <--- and this }, layerOptions: { visible: false // <--- and this } }) }, ... };
None worked
I didn't try non-nested geojson
I use nested geojson stuff :
And
visible
toggle doesn't work.Even worse, if I
map.removeLayer(<mylayer>)
(which works), when I update$scope.map.geojson.ways.data
, it readds the layer to the map.I also tried
None worked
I didn't try non-nested geojson