Mappls Map Widget for Django
Easily embed Mappls maps and PIN location previews in your Django forms.
- Django form widget for Mappls PIN with map preview
- Customizable zoom and pitch
- Simple integration with your forms
pip install mappls-map-widgetAdd the widget to your Django form:
from django import forms
from mappls_map_widget.widgets import MapplsPinWithMapEmbedWidget
class LocationForm(forms.Form):
pin = forms.CharField(widget=MapplsPinWithMapEmbedWidget(zoom=10, pitch=2))- Python 3.7+
- Django 3.2+
Clone the repo and install dependencies:
git clone https://github.com/soumayg9673/mappls-django.git
cd mappls-django
pip install -e .Add mappls_map_widget to your INSTALLED_APPS in settings.py:
INSTALLED_APPS = [
# ... other apps ...
'mappls_map_widget',
]MIT
Soumay Gupta
pmrs9673@gmail.com