Use MapLoom in your django projects.
Project description
django-maploom
==============
A Django wrapper for [MapLoom](https://github.com/ROGUE-JCTD/MapLoom).
Installation
------------
Install the latest stable version from PIP:
```pip install django-maploom```
Download django-maploom and install it directly from source:
```python setup.py install```
Project Configuration
---------------------
Once installed you can configure your project to use
django-maploom with the following steps.
Add ``maploom`` to ``INSTALLED_APPS`` in your project's
``settings`` module:
INSTALLED_APPS = (
'maploom',
# other apps
)
Usage
-----
Once installed, you can easily add maploom to any template on your site.
First load the template tags in your template:
{% load maploom_tags %}
In the ```<head>``` section of your html section add the MapLoom js files:
{% maploom_js %}
Then add a map loom map to your page by placing the following tag anywhere in the ```<body>``` tags:
{% maploom_html %}
Adding in GeoNode
-----------------
To use MapLoom as your GeoNode map client, follow the Project Configuration steps above. Next, add the MapLoom urls
to the bottom of the `urls.py` file in GeoNode and append them to the GeoNode url patterns.
```
from maploom.geonode.urls import urlpatterns as maploom_urls
urlpatterns += maploom_urls
```
**Note:** When adding `maploom` to the `INSTALLED_APPS` setting, order matters. Django will return the first template
it finds that matches a given name, therefore be sure that the MapLoom application precedes the `geonode.maps`
application in your `INSTALLED_APPS` setting.
==============
A Django wrapper for [MapLoom](https://github.com/ROGUE-JCTD/MapLoom).
Installation
------------
Install the latest stable version from PIP:
```pip install django-maploom```
Download django-maploom and install it directly from source:
```python setup.py install```
Project Configuration
---------------------
Once installed you can configure your project to use
django-maploom with the following steps.
Add ``maploom`` to ``INSTALLED_APPS`` in your project's
``settings`` module:
INSTALLED_APPS = (
'maploom',
# other apps
)
Usage
-----
Once installed, you can easily add maploom to any template on your site.
First load the template tags in your template:
{% load maploom_tags %}
In the ```<head>``` section of your html section add the MapLoom js files:
{% maploom_js %}
Then add a map loom map to your page by placing the following tag anywhere in the ```<body>``` tags:
{% maploom_html %}
Adding in GeoNode
-----------------
To use MapLoom as your GeoNode map client, follow the Project Configuration steps above. Next, add the MapLoom urls
to the bottom of the `urls.py` file in GeoNode and append them to the GeoNode url patterns.
```
from maploom.geonode.urls import urlpatterns as maploom_urls
urlpatterns += maploom_urls
```
**Note:** When adding `maploom` to the `INSTALLED_APPS` setting, order matters. Django will return the first template
it finds that matches a given name, therefore be sure that the MapLoom application precedes the `geonode.maps`
application in your `INSTALLED_APPS` setting.
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
django-maploom-1.2.7.tar.gz
(1.3 MB
view details)
File details
Details for the file django-maploom-1.2.7.tar.gz
.
File metadata
- Download URL: django-maploom-1.2.7.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c24f6b3a641c9838072e75b4aabb6e574a6d10907467530c8b9fd012770fe380 |
|
MD5 | 1ebe37c33f9420b38fc6a3cb1e2789f0 |
|
BLAKE2b-256 | 2d69951696b382c8118ea0178262041303aa8b1c08ee57b089c3f19a199711c8 |