Mappls Map Widget for Django
Project description
mappls-map-widget
Mappls Map Widget for Django
Easily embed Mappls maps and PIN location previews in your Django forms.
Features
- Django form widget for Mappls PIN with map preview
- Customizable zoom and pitch
- Simple integration with your forms
Installation
pip install mappls-map-widget
Usage
Add 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))
Requirements
- Python 3.7+
- Django 3.2+
Development
Clone the repo and install dependencies:
git clone https://github.com/soumayg9673/mappls-django.git
cd mappls-django
pip install -e .
Django Setup
Add mappls_map_widget to your INSTALLED_APPS in settings.py:
INSTALLED_APPS = [
# ... other apps ...
'mappls_map_widget',
]
License
MIT
Author
Soumay Gupta
pmrs9673@gmail.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mappls_map_widget-0.1.1.tar.gz.
File metadata
- Download URL: mappls_map_widget-0.1.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffc2289428adae775c2a11562ef901104b75e38ac0a26d8df6a7bacb7dd196a1
|
|
| MD5 |
d80f64fa0a2058d383c1919cfd18975d
|
|
| BLAKE2b-256 |
c06c1a4aa32c199222aff3fe5323cadf0816e8f342309ef05989b6a4a03912b8
|
File details
Details for the file mappls_map_widget-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mappls_map_widget-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0608d2e41b80feec2781fb99c9613fc52bb39950b6c9a4c1a5185155e854e944
|
|
| MD5 |
9d56e8ff035bf8dcbaaf9a20aea6463b
|
|
| BLAKE2b-256 |
50e6d703fe9a03cb652436f76b386e8e35001b98a9db929ed2230849ffb5d7c0
|