Use MapLoom in your django projects.
Project description
django-exchange-maploom
==============
This is a fork of GeoSHAPE Maploom to use with Exchange before changes are added upstream to GeoSHAPE.
A Django wrapper for [MapLoom](https://github.com/boundlessgeo/MapLoom).
Installation
------------
Install the latest stable version from PIP:
```pip install django-exchange-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.
==============
This is a fork of GeoSHAPE Maploom to use with Exchange before changes are added upstream to GeoSHAPE.
A Django wrapper for [MapLoom](https://github.com/boundlessgeo/MapLoom).
Installation
------------
Install the latest stable version from PIP:
```pip install django-exchange-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 Distributions
Close
Hashes for django-exchange-maploom-1.5.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b68168b42a65df94b896cc8557918b6ce577788881ac8ab0145da190e384f70 |
|
MD5 | 99aeedc27437b85fa7fd4f40696ad9c2 |
|
BLAKE2b-256 | f48550fb42ad49812285a5c39d25100bd4e3095ca598914d39ec0b53de202d65 |
Close
Hashes for django-exchange-maploom-1.5.10.macosx-10.6-intel.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ebfcb9ea37952933ec1daa1de0f9f529b76083dd783be7225a170bcbdff1301 |
|
MD5 | 60a13ce869dbdf4c7d1eb8f9cae7dbfd |
|
BLAKE2b-256 | 6d91f780fab75193cdafe532f79f25147e002be46205be325326ffe41bfcf2c8 |