Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zoom in Settings does not work #59

Closed
pwfraley opened this issue Mar 12, 2018 · 6 comments
Closed

Zoom in Settings does not work #59

pwfraley opened this issue Mar 12, 2018 · 6 comments

Comments

@pwfraley
Copy link

My Settings:

MAP_WIDGETS = { "GooglePointFieldWidget": ( ("zoom", 1), ("markerFitZoom", 12) ), "GOOGLE_MAP_API_KEY": GOOGLE_MAPS_API_KEY }
No matter what I set the zoom to (tried 1 thru 15), I am always completely zoomed in. Also tried changing the markerFitZoom but it does not make a difference.

@Michelk12
Copy link

I have the same problem. :-/
My settings:

MAP_WIDGETS = {
    "GooglePointFieldWidget": (
        ("zoom", 8),
        ("mapCenterLocationName", "toulouse"),
        ("markerFitZoom", 4),
    ),
    "GOOGLE_MAP_API_KEY": GOOGLE_MAP_API_KEY
}

mapCenterLocationName works properly but zoom or markerFitZoom doesn't work.
I tried to change the zoom value in JS or template without success

@ekimia
Copy link

ekimia commented Apr 23, 2018

any clue how to fix this? Would be happy to submit a PR.

@stopdesign
Copy link

zoom works for initial empty field.
markerFitZoom doesn't work at all.

hlodver added a commit to wonderguide-com/django-map-widgets that referenced this issue May 12, 2018
Use idle event to update the zoom level
hlodver added a commit to wonderguide-com/django-map-widgets that referenced this issue May 12, 2018
@hlodver
Copy link
Contributor

hlodver commented May 12, 2018

I added a pull request fixing the issue

erdem added a commit that referenced this issue May 15, 2018
@erdem
Copy link
Owner

erdem commented May 15, 2018

@hlodver I merged the PR to master. Thank you for your contribution.

@erdem erdem closed this as completed May 15, 2018
@Michelk12
Copy link

I left Google and I'm now using OpenStreetMap

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

No branches or pull requests

6 participants