ncssar / caltopo_python

Python interface to unofficial CalTopo API
GNU General Public License v3.0
1 stars 1 forks source link

add zoom-to call #18

Open caver456 opened 5 years ago

caver456 commented 5 years ago

This is available now in sartopo.com but not yet in sar.jar 4151, per email from Matt J 9-12-18:

I've added url hash support for saved maps, mirroring the map.html page.

[ format for a saved map: https://sartopo.com/m/BH99#ll=39,-120&z=20 ]

I do want to make clear that I haven't thought this through 100%, so I can't make any long-term guarantees this feature won't get dropped or modified if it winds up causing other complications. I can't think of any at the moment, but time spent developing infrastructure around it is done at your own risk.

Will not make the next one - felt a little too risky - so probably in another month or so.

However that release will also include a database switch from hsql to sqlite (for multiple reasons), so it might take you a little longer to get it rolled out as it will also affect backup scripts, you'll want to migrate data, etc.

On Thu, Sep 13 at 05:54 AM PDT, caver456 wrote:

Yes Matt, thanks for implementing this so quickly. Any idea when it would show up in the offline version?

caver456 commented 5 years ago

Probably best to wait until this is in the released sar.jar.

caver456 commented 4 years ago

the url hash does work now (using beta 20 3/8/20); will incorporate this soon

caver456 commented 4 years ago

fundamental problem: API calls are used to interact with the map database. Panning/zooming doesn't interact with the database at all, so, the API is not the ticket here.

Changing the URL of the current browser tab is tricky due to all the security features of browsers that specifically prevent you from seeing the URL of the current browser tab. See https://github.com/ncssar/sartopo_address/issues/6