Skip to content
This repository was archived by the owner on May 24, 2021. It is now read-only.
This repository was 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

Description

@naltmann

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions