flask-extensions / flask-extensions/Flask-GoogleMaps
Issue adding API key and scroll_wheel
- Dominant language
- Python
- Stars
- 655
- Forks
- 193
- PR merge metrics
- No merged PRs in 30d
Description
Currently I need to use the standart script line proposed by google. If I dont use this I get an error No-Key-Error and the map doesnt show:
``
It seems that these have no effect, because if I remove the script line I get again the No-Key-Error:
`GoogleMaps(app, key="MYKEY")`
or in my config.py
`GOOGLEMAPS_KEY = "MYKEY"`
So currently I need to use both, the mymap.js and the script line, which lead to "You have included the Google Maps API multiple times on this page" but still works. Also I cant disable the scroll_wheel. I am setting up the map in python:
```
mymap = Map(
identifier="view-side",
lat=location.latitude,
lng=location.longitude,
infobox=[],
markers=[],
scroll_wheel = False,
zoom = 11
)
```
The scroll_wheel = False does not do anything here, eventhough I found it in the documentation.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.