Git Product home page Git Product logo

djangocms-maps's Introduction

djangocms-maps Latest version on PyPI

Build status Code health Python versions Monthly downloads from PyPI 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

As of today (2016) all map providers require an API key.

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).

Translations

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

Developer Resources

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.