Comments (4)
These errors are displayed on the console.
from django-map-widgets.
The issue may be related to the jQuery version that you used. I have used 2.x
jquery while I am developing the widgets.
Take a look at the demo project to see if that helps.
https://github.com/erdem/django-map-widgets/tree/master/demo/
from django-map-widgets.
The issue may be related to the jQuery version that you used. I have used
2.x
jquery while I am developing the widgets.Take a look at the demo project to see if that helps.
https://github.com/erdem/django-map-widgets/tree/master/demo/
Thanks, it's working now. Do you know any way to make the map zoom move with the scroll?
How can I modify the map template, the size of the form and the buttons?
Thanks for this great job, by the way.
from django-map-widgets.
I disabled the scroll wheel zooming functionality during the initial development, it was messing up the actual page scrolling when the mouse cursor came over the map component. It was so a long time ago, didn't notice that settings were hardcoded until reading your last message.
However, I just released the new version which includes scrollWheel
settings. Upgrade the PyPI package in your stack and set scrollWheel
as True
in the django settings.
You are welcome!
settings.py
GOOGLE_MAP_API_KEY = os.getenv('GOOGLE_MAP_API_KEY', None)
MAPBOX_API_KEY = os.getenv('MAPBOX_API_KEY', None)
MAP_WIDGETS = {
"GooglePointFieldWidget": (
("zoom", 15),
("mapCenterLocation", [51.5073509, -0.12775829999998223]),
("markerFitZoom", 11),
("GooglePlaceAutocompleteOptions", {'componentRestrictions': {'country': 'uk'}}),
("streetViewControl", False),
("scrollWheel", True)
),
"MapboxPointFieldWidget": {
"access_token": MAPBOX_API_KEY,
"mapOptions": {
"zoom": 10,
"center": (51.515618, -0.091998)
}
},
"GOOGLE_MAP_API_KEY": GOOGLE_MAP_API_KEY
}
from django-map-widgets.
Related Issues (20)
- Detail page stuck
- Add delay for autocomplete HOT 1
- Support of polygon fields HOT 1
- map image not found HOT 1
- This project support Django3.x? HOT 3
- place.geometry can be undefined in handleAutoCompletePlaceChange
- Add documentation for Google APIs that have to be enabled HOT 5
- missing six requirement
- how can I change the template of form column? HOT 1
- After loading {{form.media}} javascripts in the page stop working HOT 3
- docker-compose seems broken HOT 2
- Undefined geocoding response object "place" when triggering "google_point_map_widget:marker_change" HOT 3
- .ugettext_lazy() is deprecated in django 4.0 HOT 1
- Form field errors are not shown HOT 1
- Invalid JSON error reported whenever a `PointField` is saved with the `GooglePointFieldWidget` in the Django admin
- How to make a map widget read-only? HOT 1
- How to set the default MapTypeId to satellite? HOT 1
- GooglePointFieldInlineWidget doesn't work with Django 4.2.2 HOT 1
- Map doesn't show in django admin? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-map-widgets.