FusionTable-Map-Template icon indicating copy to clipboard operation
FusionTable-Map-Template copied to clipboard

Is there a clean way to prevent the map from re-centering when an address has been entered and a filter is then changed?

Open naltmann opened this issue 7 years ago • 0 comments

Here's a common behavior I use (and I suspect others would as well) that is disrupted by the re-centering:

Scenario:

  1. Enter an address to focus the map in on a certain location
  2. Click/drag/zoom to get the map view to just the area I'm interested in
  3. Check/uncheck one of the filter toggles (e.g. "Bars" on https://reginafcompton.github.io/FusionTable-Map-Template/#/?address=chicago%2C%20il&radius=3220)
  4. Map is abruptly re-centered away from the view I had zoomed in on

I have an idea of how I might change the doSearch() function to prevent this, but there's probably a smart/elegant way to make it work with the self.calculateCenter() code.

Great tool! Just an idea for what might improve it for many users.

naltmann avatar Mar 09 '18 16:03 naltmann