Code Monkey home page Code Monkey logo

djangocms-leaflet's Introduction

djangocms-leaflet

This app provides plug-ins for the JavaScript map library Leaflet.

PyPI - Version PyPI - Python Version


Table of Contents

Installation

pip install djangocms-leaflet

or add djangocms-leaflet to the dependencies of your project, e. g. in pyproject.toml:

dependencies = [
    #
    'djangocms-leaflet',
    #
]

Add it to INSTALLED_APPS in the settings::

INSTALLED_APPS: list[str] = [
    # …
    'djangocms_leaflet',
    # …
]

Usage

Add a map plugin to a placeholder and fill in the form. Add markers as sub plugins if needed. In the template src/djangocms_leaflet/templates/djangocms_leaflet/map.html the tile server of the OpenStreetMap website is defined. Make sure you comply with their usage policy or use another tile server by replacing the tile server’s URL.

You can either specify latitude and longitude of the map or marker or enter a search term. If no coordinates are entered, they will be searched with Nominatim and the first hit in the result list location will be used as coordinates.

License

djangocms-leaflet is distributed under the terms of the MIT license.

Integrated library

Name Description License
Leaflet JavaScript library for maps BSD-2-Clause license

djangocms-leaflet's People

Contributors

maclake avatar

Watchers

 avatar

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.