Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

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

Open
naltmann opened this issue Mar 9, 2018 · 0 comments

Comments

@naltmann
Copy link

naltmann commented Mar 9, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant