erdem / django-map-widgets

Highly customizable, intuitive, and user-friendly map widgets for GeoDjango applications.
MIT License
450 stars 119 forks source link

mapCenterLocation dosent work. #13

Closed zelds closed 7 years ago

zelds commented 7 years ago

But center of the map center is still in Denver. The same with custom style.

settings.py

MAP_WIDGETS = {
    "GooglePointFieldWidget": (
        ("zoom", 15),
        ("mapCenterLocation", [57.7177013, -16.6300491]),
    ),
    "GOOGLE_MAP_API_KEY": "KeyHere",
}
erdem commented 7 years ago

Hi @zelds

The mapCenterLocation feature is worked for me. I don't understand your issue exactly. You should give more detail about the issue.

Did you see any error on the browser console?

zelds commented 7 years ago

Just one warning

Use of Mutation Events is deprecated. Use MutationObserver instead.

erdem commented 7 years ago

I think, your issue is not related with the map widget. I tested all feature on the map widgets and I didn't see your problem. If you think the issue is related with django-map-widgets, post your map widget settings and usage.

Thanks

AllanZambrano commented 5 years ago

Hey! I'm having this issue, it always shows coordinates (0,0). Btw, I'm using Django 2.2

Settings: MAP_WIDGETS = { "GooglePointFieldWidget": ( ("zoom", 15), ("mapCenterLocation", [57.7177013, -16.6300491]) ), "GOOGLE_MAP_API_KEY": "" }

And it shows the following: 1

AllanZambrano commented 5 years ago

So, I did some testing today and I think it's a problem with Windows, tried the same settings on Ubuntu and worked perfectly.

erdem commented 5 years ago

I didn't test this scenario but, the issue could be related to longitude and latitude position in the settings array.