Use plotly proxy to:
- Add Obs trace and update it when
Save is hit
- Zoom, Center and highlight the selected Obs point (by map click or ObsList)
This way Plotly.newPlot would not have to be called when the two events above are triggered. It would be a considerable gain in efficiency and usability/appearance of the app.
Resources:
plotly/plotly.R#1604
https://stackoverflow.com/questions/50138568/removing-traces-by-name-using-plotlyproxy-or-accessing-output-schema-in-reactiv
Use plotly proxy to:
Saveis hitThis way
Plotly.newPlotwould not have to be called when the two events above are triggered. It would be a considerable gain in efficiency and usability/appearance of the app.Resources:
plotly/plotly.R#1604
https://stackoverflow.com/questions/50138568/removing-traces-by-name-using-plotlyproxy-or-accessing-output-schema-in-reactiv