Skip to content

Commit 4c97fe7

Browse files
committed
Merge pull request #4 from samatjain/openmapquest
MapQuest Open tilesets
2 parents 7642504 + d536949 commit 4c97fe7

File tree

6 files changed

+8
-1
lines changed

6 files changed

+8
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Concept
88
-------
99
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.
1010

11-
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.
11+
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.
1212

1313
Installation
1414
---------------

folium/folium.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ def __init__(self, location=None, width=960, height=500,
4141
tilesets or a custom tileset URL. The following tilesets are built-in
4242
to Folium. Pass any of the following to the "tiles" keyword:
4343
-"OpenStreetMap"
44+
-"MapQuest Open"
45+
-"MapQuest Open Aerial"
4446
-"Mapbox Bright" (Limited levels of zoom for free tiles)
4547
-"Mapbox Control Room" (Limited levels of zoom for free tiles)
4648
-"Stamen Terrain"
@@ -120,6 +122,7 @@ def __init__(self, location=None, width=960, height=500,
120122
' or non-default Mapbox tiles.')
121123

122124
self.default_tiles = ['openstreetmap', 'mapboxcontrolroom',
125+
'mapquestopen', 'mapquestopenaerial',
123126
'mapboxbright', 'mapbox', 'cloudmade',
124127
'stamenterrain', 'stamentoner']
125128
self.tile_types = {}

folium/templates/mapquestopen_att.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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>.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
http://otile1.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.png

folium/templates/mapquestopenaerial_att.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
http://otile1.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.png

0 commit comments

Comments
 (0)