Fixes #31
This PR also fixes the behavior in the raster slider / number input.
The underlying issue that was causing #31 to occur was the fact that we were deleting and re-adding a layer to the map, for two different use cases at the same time:
If we change any styling of a raster (because the style params are encoded in the layer source URL)
If we enable/disable the network vis mode of a network dataset (since they exist as two separate layers)
Since we heavily rely on consistent layer IDs, and removing/adding a layer to a map changes the layer ID, this was causing some weird behavior. This PR changes the behavior to directly handle raster styling changes, as well as node network visualization toggling.
Fixes #31 This PR also fixes the behavior in the raster slider / number input.
The underlying issue that was causing #31 to occur was the fact that we were deleting and re-adding a layer to the map, for two different use cases at the same time:
Since we heavily rely on consistent layer IDs, and removing/adding a layer to a map changes the layer ID, this was causing some weird behavior. This PR changes the behavior to directly handle raster styling changes, as well as node network visualization toggling.