@@ -36,6 +36,7 @@ class Map(LegacyMap):
3636 Generate a base map of given width and height with either default
3737 tilesets or a custom tileset URL. The following tilesets are built-in
3838 to Folium. Pass any of the following to the "tiles" keyword:
39+
3940 - "OpenStreetMap"
4041 - "MapQuest Open"
4142 - "MapQuest Open Aerial"
@@ -45,6 +46,7 @@ class Map(LegacyMap):
4546 - "Cloudmade" (Must pass API key)
4647 - "Mapbox" (Must pass API key)
4748 - "CartoDB" (positron and dark_matter)
49+
4850 You can pass a custom tileset to Folium by passing a Leaflet-style
4951 URL to the tiles parameter:
5052 http://{s}.yourtiles.com/{z}/{x}/{y}.png
@@ -77,15 +79,15 @@ class Map(LegacyMap):
7779 into pixel (screen) coordinates and back.
7880 You can use Leaflet's values :
7981 * EPSG3857 : The most common CRS for online maps, used by almost all
80- free and commercial tile providers. Uses Spherical Mercator projection.
81- Set in by default in Map's crs option.
82+ free and commercial tile providers. Uses Spherical Mercator projection.
83+ Set in by default in Map's crs option.
8284 * EPSG4326 : A common CRS among GIS enthusiasts. Uses simple Equirectangular
83- projection.
85+ projection.
8486 * EPSG3395 : Rarely used by some commercial tile providers. Uses Elliptical
85- Mercator projection.
87+ Mercator projection.
8688 * Simple : A simple CRS that maps longitude and latitude into x and y directly.
87- May be used for maps of flat surfaces (e.g. game maps). Note that the y axis
88- should still be inverted (going from bottom to top).
89+ May be used for maps of flat surfaces (e.g. game maps). Note that the y axis
90+ should still be inverted (going from bottom to top).
8991
9092 Returns
9193 -------
@@ -106,8 +108,8 @@ class Map(LegacyMap):
106108 def create_map (self , path = 'map.html' , plugin_data_out = True , template = None ):
107109 """Write Map output to HTML.
108110
109- Parameters:
110- -----------
111+ Parameters
112+ ----------
111113 path: string, default 'map.html'
112114 Path for HTML output for map
113115 plugin_data_out: boolean, default True
@@ -276,15 +278,15 @@ def multiline(self, locations, line_color=None, line_opacity=None,
276278
277279 Examples
278280 --------
279- # FIXME: Add another example.
280281 >>> m.multiline(locations=[[(45.5236, -122.675), (45.5236, -122.675)],
281282 [(45.5237, -122.675), (45.5237, -122.675)],
282283 [(45.5238, -122.675), (45.5238, -122.675)]])
283284 >>> m.multiline(locations=[[(45.5236, -122.675), (45.5236, -122.675)],
284285 [(45.5237, -122.675), (45.5237, -122.675)],
285286 [(45.5238, -122.675), (45.5238, -122.675)]],
286- line_color='red', line_weight=2,
287- line_opacity=1.0)
287+ line_color='red', line_weight=2,
288+ line_opacity=1.0)
289+ FIXME: Add another example.
288290 """
289291 warnings .warn ("%s is deprecated. Use %s instead" %
290292 ("multiline" , "add_children(MultiPolyLine)" ),
0 commit comments