Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mappls_map_widget-0.1.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mappls_map_widget-0.1.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

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

Hashes for mappls_map_widget-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ffc2289428adae775c2a11562ef901104b75e38ac0a26d8df6a7bacb7dd196a1
MD5 d80f64fa0a2058d383c1919cfd18975d
BLAKE2b-256 c06c1a4aa32c199222aff3fe5323cadf0816e8f342309ef05989b6a4a03912b8

See more details on using hashes here.

File details

Details for the file mappls_map_widget-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mappls_map_widget-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0608d2e41b80feec2781fb99c9613fc52bb39950b6c9a4c1a5185155e854e944
MD5 9d56e8ff035bf8dcbaaf9a20aea6463b
BLAKE2b-256 50e6d703fe9a03cb652436f76b386e8e35001b98a9db929ed2230849ffb5d7c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page