boundlessgeo/django-exchange-maploom

Name: django-exchange-maploom

Owner: Boundless

Description: A Django wrapper for MapLoom.

Forked from: ROGUE-JCTD/django-maploom

Created: 2016-07-15 13:46:34.0

Updated: 2018-05-21 16:03:45.0

Pushed: 2018-05-21 16:03:45.0

Homepage: null

Size: 53225

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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.

Installation

Install the latest stable version from PIP:

load django-maploom and install it directly from source:
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.

 maploom.geonode.urls import urlpatterns as maploom_urls

atterns += 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 work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.