Skip to content

MapQuest Open tilesets #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 6, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Concept
-------
Folium makes it easy to visualize data that's been manipulated in Python on an interactive Leaflet map. It enables both the binding of data to a map for choropleth visualizations as well as passing Vincent/Vega visualizations as markers on the map.

The library has a number of built-in tilesets from OpenStreetMap, Mapbox, and Stamen, and supports custom tilesets with Mapbox or Cloudmade API keys. Folium supports both GeoJSON and TopoJSON overlays, as well as the binding of data to those overlays to create choropleth maps with color-brewer color schemes.
The library has a number of built-in tilesets from OpenStreetMap, MapQuest Open, MapQuest Open Aerial, Mapbox, and Stamen, and supports custom tilesets with Mapbox or Cloudmade API keys. Folium supports both GeoJSON and TopoJSON overlays, as well as the binding of data to those overlays to create choropleth maps with color-brewer color schemes.

Installation
---------------
Expand Down
3 changes: 3 additions & 0 deletions folium/folium.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def __init__(self, location=None, width=960, height=500,
tilesets or a custom tileset URL. The following tilesets are built-in
to Folium. Pass any of the following to the "tiles" keyword:
-"OpenStreetMap"
-"MapQuest Open"
-"MapQuest Open Aerial"
-"Mapbox Bright" (Limited levels of zoom for free tiles)
-"Mapbox Control Room" (Limited levels of zoom for free tiles)
-"Stamen Terrain"
Expand Down Expand Up @@ -120,6 +122,7 @@ def __init__(self, location=None, width=960, height=500,
' or non-default Mapbox tiles.')

self.default_tiles = ['openstreetmap', 'mapboxcontrolroom',
'mapquestopen', 'mapquestopenaerial',
'mapboxbright', 'mapbox', 'cloudmade',
'stamenterrain', 'stamentoner']
self.tile_types = {}
Expand Down
1 change: 1 addition & 0 deletions folium/templates/mapquestopen_att.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Map tiles by <a href="http://open.mapquest.com/">MapQuest</a> Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.
1 change: 1 addition & 0 deletions folium/templates/mapquestopen_tiles.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
http://otile1.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.png
1 change: 1 addition & 0 deletions folium/templates/mapquestopenaerial_att.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Map tiles by <a href="http://open.mapquest.com/">MapQuest Open Aerial</a>.Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, FarmService Agency.
Expand Down
1 change: 1 addition & 0 deletions folium/templates/mapquestopenaerial_tiles.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
http://otile1.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.png