Skip to main content

Universal maps plugin for django CMS

Project description

Build status Code health Python versions Software license Gitter chat room

A universal maps plugin for django CMS, supporting all major map providers.

Supported online map providers:

  • Mapbox OpenStreetMap powered by Leaflet.js

  • Bing Maps

  • Google Maps

  • HERE WeGo

  • ViaMichelin

All map providers require an API key, which you usually get for free by creating a developer account (using the links below).

Installation

This plugin requires django CMS 3.3 (and Django 1.8) or above.

  • In your project’s virtualenv, run pip install djangocms-maps.

  • Add 'djangocms_maps' to your INSTALLED_APPS setting.

  • Run manage.py migrate djangocms_maps.

Configuration

MAPS_PROVIDERS = [ ('<str>', '<str>'), ... ]

Optional. Allows you to specify the providers you want to offer, their display labels and sort order in the user interface. Put a provider on top of the list to make it the default. Default:

MAPS_PROVIDERS = [
    ('mapbox', _('Mapbox OSM (API key required)')),
    ('bingmaps', _('Bing Maps (API key required)')),
    ('googlemaps', _('Google Maps (API key required)')),
    ('here', _('HERE WeGo (API key required)')),
    ('viamichelin', _('ViaMichelin (API key required)')),
]

MAPS_BINGMAPS_API_KEY = '<str>'

API key for Bing Maps (required for using Bing Maps).

MAPS_GOOGLEMAPS_API_KEY = '<str>'

API key for Google Maps (required for using Google Maps).

MAPS_HERE_API_KEY = {'app_id': '<str>', 'app_code': '<str>'}

APP_ID and APP_CODE for HERE WeGo (required for using HERE maps).

MAPS_MAPBOX_API_KEY = '<str>'

Access token for Mapbox (required for using OSM maps with Mapbox tile layers).

MAPS_VIAMICHELIN_API_KEY = '<str>'

API key for ViaMichelin (required for using ViaMichelin maps).

Examples

Organice Demo:

https://demo.organice.io/about/directions/

Your maps plugin playground! Allows you to directly edit and view (albeit not to publish) changes on the maps plugin after authenticating.

Translations

If you want to help translate the plugin please do it on transifex.

Developer Resources

CHANGELOG

0.11.0 (2019-05-08)

  • Add aldryn_config.py to make plugin visible on Divio marketplace

  • Reformat code (inital migrations, models, forms, templatetags)

0.10.0 (2019-01-30)

  • Convert float to string before evaluating (thanks @mireq)

0.9.0 (2019-01-12)

  • Don’t show map title when it’s blank (thanks @adrien-delhorme)

0.8.0 (2018-03-04)

  • Fix float rounding error for map coordinates on German sites (which use a colon instead of a period)

  • Configure HERE WeGo to use HTTPS by default

0.7.0 (2016-09-14)

  • Implement ViaMichelin provider

0.6.0 (2016-09-02)

  • Allow to display or hide layers control and scale bar

  • Implement HERE WeGo provider

  • Bugfix: Allow keyboard navigation (Mapbox)

  • Run static code analysis for all supported Python versions

  • Implement Bing Maps provider

0.5.0 (2016-09-01)

  • Fork djangocms-googlemap plugin, remove legacy burden

  • Refactor template structure for multi-provider support

  • Remove routing options from plugin UI (plan: re-implement on the map)

  • Reorganice plugin UI to avoid excessive scrolling

  • Add settings (API keys) for Google Maps and all future providers

  • Implement Mapbox provider

  • Add stubs for Bing, HERE, ViaMichelin

before 0.5.0

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

djangocms-maps-0.11.0.tar.gz (58.0 kB view details)

Uploaded Source

Built Distributions

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

djangocms_maps-0.11.0-py3-none-any.whl (216.7 kB view details)

Uploaded Python 3

djangocms_maps-0.11.0-py2-none-any.whl (216.7 kB view details)

Uploaded Python 2

File details

Details for the file djangocms-maps-0.11.0.tar.gz.

File metadata

  • Download URL: djangocms-maps-0.11.0.tar.gz
  • Upload date:
  • Size: 58.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.15

File hashes

Hashes for djangocms-maps-0.11.0.tar.gz
Algorithm Hash digest
SHA256 32051b969d7bab3edc813b8796ad9c913fcb1d3b62aa8a216dd4d45ec1c373ec
MD5 1bf11a303fddc850449c65b177cccf48
BLAKE2b-256 be6dda59706278fe9c3a754a1a5ab5925150bc2e4a2fbd5c0f45c3e910b559b1

See more details on using hashes here.

File details

Details for the file djangocms_maps-0.11.0-py3-none-any.whl.

File metadata

  • Download URL: djangocms_maps-0.11.0-py3-none-any.whl
  • Upload date:
  • Size: 216.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.6

File hashes

Hashes for djangocms_maps-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62b4cc384502851e0b1a1f7b771d8ad3e562183373f8b37a0a549e818b2b9132
MD5 87ca00142a9c72bf62377c296b9500a7
BLAKE2b-256 a1593c9900ed288b564e8f7aa5ac2fa289d63b563b69a19524348d003feadec6

See more details on using hashes here.

File details

Details for the file djangocms_maps-0.11.0-py2-none-any.whl.

File metadata

  • Download URL: djangocms_maps-0.11.0-py2-none-any.whl
  • Upload date:
  • Size: 216.7 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.15

File hashes

Hashes for djangocms_maps-0.11.0-py2-none-any.whl
Algorithm Hash digest
SHA256 a942292b7171f10cf04b3502445deb7265ba162f902580aa23d29120b1726a3a
MD5 780266ccfceb4e6688b200558c5d5f87
BLAKE2b-256 0675edfd065a68ce2b3442a8b03c80efec8ebd571e511d32a7b3927b3814de97

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