Stationview web app question

Is there a way to have stationview remember the map configuration i.e. map center and zoom level? For example the USGS event map uses parameters passed in the URL to bring the map configuration exactly where you want it.

A very interesting point andyaz, thank you for the suggestion!

As of now, it is possible to make the map ‘remember’ where it was by selecting a station and bookmarking that address. It should retain the zoom level and center it on the station itself.

But, we will consider this upgrade for future releases of our StationView service.

Thank you!

Hello again @andyaz!

The feature that you requested has now been implemented by our team! It will follow the logic explained in the list below:

  • If “net=…&sta=…” is set then the map will be centered around the station location.
  • If “lat=…&lon=…&zoom=…” is set then it defines the map parameters irrespective of the given station in the URL.
  • If the user drags the map or zooms into it then the URL will be updated to reflect the current map view parameters.

Examples:

  • RS StationView
    Center map around the given shake and show the given shake data in the sidebar
  • RS StationView
    Center the map around 12;40 with zoom level 10 and show the given shake data in the sidebar
  • RS StationView
    Center the map around 12;40 with zoom level 10 and do not show any data

I hope that this will be useful to you and other users!

For completion, this is our relative manual page on this addon: Mobile and Web Apps — Instructions on Setting Up Your Raspberry Shake

1 Like