This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

jinja2_maps is a set of filters to display locations in Jinja2 templates.

Install

pip install jinja2_maps

Support

Service URL Map
OpenStreetMap Yes Yes
Google Maps Yes
Apple Maps Yes
Bing Maps Yes
Mappy Yes

Both Python 2.x and 3.x are supported.

Usage

All filters take a location as a dict with latitude and longitude keys. You can also pass an object with these attributes.

Before using any template you need to add the filters to your Jinja2 environment:

from jinja2_maps import activate_filters
activate_filters(your_env)

If using Flask you can do the following:

from jinja2_maps import activate_filters
activate_filters(app.jinja_env)

URLs

<a href="{{ your_location | osm_url }}">Check on OpenStreetMap</a>
<a href="{{ your_location | gmaps_url }}">Check on Google Maps</a>
<a href="{{ your_location | apple_maps_url }}">Check in Maps</a>
<a href="{{ your_location | bing_maps_url }}">Check on Bing Maps</a>
<a href="{{ your_location | mappy_url }}">Check on Mappy</a>

URLs also support giving the zoom level (default is 16):

<a href="{{ your_location | osm_url(zoom=12) }}">Check on OpenStreetMap</a>

Maps

{{ your_location | osm_map(width=500, height=400) }}
Release History

Release History

0.2.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
jinja2_maps-0.2.0.tar.gz (5.2 kB) Copy SHA256 Checksum SHA256 Source Mar 23, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting