Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ultra simple working example of interactive vector/raster tiles using mapnik's grid_renderer, generate_tiles.py, openlayers, and wax
Python Shell
Branch: master
Failed to load latest commit information.
data
.gitignore
Makefile
README.md Update README.md
generate_tiles.diff clean up diff so it applies without warnings
generate_tiles.py
index.html
layer.json add json file containing layer metadata that wax expects
stylesheet.xml update to latest grid rendering api in mapnik and add modified genera…
test.py

README.md

grid_renderer example

An illustrative sample that shows simple usage of Wax and Mapnik's grid_renderer output.

Background

The grid_renderer targets the mbtiles spec. Learn more here:

https://github.com/mapbox/mbtiles-spec/

For more about the grid_renderer:

http://trac.mapnik.org/wiki/MapnikRenderers#grid_renderer

Depends

Mapnik trunk >= r 2957

python >= 2.6 (for built in json module)

Installation

Install Mapnik from >= r2957. More details about installing the latest mapnik at: http://trac.mapnik.org/wiki/Mapnik2

Setup

Get a few external dependencies for the demo by running

$ make

Usage

Then generate some tiles

$ make tiles

Then open the index.html in a web browser and you should be able to hover over polygons and get the country names and population.

Something went wrong with that request. Please try again.