|
20 | 20 | from .element import Element, Figure, MacroElement, Html |
21 | 21 |
|
22 | 22 |
|
23 | | -class Map(MacroElement): |
| 23 | +class LegacyMap(MacroElement): |
24 | 24 | def __init__(self, location=None, width='100%', height='100%', |
25 | 25 | left="0%", top="0%", position='relative', |
26 | 26 | tiles='OpenStreetMap', API_key=None, max_zoom=18, min_zoom=1, |
@@ -85,22 +85,22 @@ def __init__(self, location=None, width='100%', height='100%', |
85 | 85 |
|
86 | 86 | Returns |
87 | 87 | ------- |
88 | | - Folium Map Object |
| 88 | + Folium LegacyMap Object |
89 | 89 |
|
90 | 90 | Examples |
91 | 91 | -------- |
92 | | - >>>map = folium.Map(location=[45.523, -122.675], width=750, height=500) |
93 | | - >>>map = folium.Map(location=[45.523, -122.675], |
| 92 | + >>>map = folium.LegacyMap(location=[45.523, -122.675], width=750, height=500) |
| 93 | + >>>map = folium.LegacyMap(location=[45.523, -122.675], |
94 | 94 | tiles='Mapbox Control Room') |
95 | | - >>>map = folium.Map(location=(45.523, -122.675), max_zoom=20, |
| 95 | + >>>map = folium.LegacyMap(location=(45.523, -122.675), max_zoom=20, |
96 | 96 | tiles='Cloudmade', API_key='YourKey') |
97 | | - >>>map = folium.Map(location=[45.523, -122.675], zoom_start=2, |
| 97 | + >>>map = folium.LegacyMap(location=[45.523, -122.675], zoom_start=2, |
98 | 98 | tiles=('http://{s}.tiles.mapbox.com/v3/' |
99 | 99 | 'mapbox.control-room/{z}/{x}/{y}.png'), |
100 | 100 | attr='Mapbox attribution') |
101 | 101 |
|
102 | 102 | """ |
103 | | - super(Map, self).__init__() |
| 103 | + super(LegacyMap, self).__init__() |
104 | 104 | self._name = 'Map' |
105 | 105 |
|
106 | 106 | if not location: |
|
0 commit comments