|
16 | 16 | from .map import Map as _Map |
17 | 17 | from .map import Icon, Marker, Popup, FitBounds |
18 | 18 | from .features import (WmsTileLayer, RegularPolygonMarker, Vega, GeoJson, |
19 | | - GeoJsonStyle, DivIcon, CircleMarker, LatLngPopup, |
| 19 | + GeoJsonStyle, CircleMarker, LatLngPopup, |
20 | 20 | ClickForMarker, ColorScale, TopoJson, PolyLine, |
21 | 21 | MultiPolyLine, ImageOverlay) |
22 | 22 | from .utilities import color_brewer, write_png |
@@ -126,50 +126,6 @@ def simple_marker(self, location=None, popup=None, |
126 | 126 | angle=icon_angle)) |
127 | 127 | self.add_children(marker) |
128 | 128 |
|
129 | | - def div_markers(self, locations=None, popups=None, |
130 | | - marker_size=10, popup_width=300): |
131 | | - """Create a simple div marker on the map, with optional |
132 | | - popup text or Vincent visualization. Useful for marking points along a |
133 | | - line. |
134 | | -
|
135 | | - Parameters |
136 | | - ---------- |
137 | | - locations: list of locations, where each location is an array |
138 | | - Latitude and Longitude of Marker (Northing, Easting) |
139 | | - popup: list of popups, each popup should be a string or tuple. |
140 | | - Default 'Pop Text' |
141 | | - Input text or visualization for object. Can pass either text, |
142 | | - or a tuple of the form (Vincent object, 'vis_path.json') |
143 | | - It is possible to adjust the width of text/HTML popups |
144 | | - using the optional keywords `popup_width`. |
145 | | - (Leaflet default is 300px.) |
146 | | - marker_size |
147 | | - default is 5 |
148 | | -
|
149 | | - Returns |
150 | | - ------- |
151 | | - Marker names and HTML in obj.template_vars |
152 | | -
|
153 | | - Example |
154 | | - ------- |
155 | | - >>> map.div_markers(locations=[[37.421114, -122.128314], |
156 | | - ... [37.391637, -122.085416], |
157 | | - ... [37.388832, -122.087709]], |
158 | | - ... popups=['1437494575531', |
159 | | - ... '1437492135937', |
160 | | - ... '1437493590434']) |
161 | | -
|
162 | | - """ |
163 | | - warnings.warn("%s is deprecated. Use %s instead" % |
164 | | - ("div_markers", "Marker.add_children(DivIcon)"), |
165 | | - FutureWarning, stacklevel=2) |
166 | | - for location, popup in zip(locations, popups): |
167 | | - marker = Marker(location, |
168 | | - popup=Popup(popup), |
169 | | - icon=DivIcon(width=marker_size, |
170 | | - height=marker_size)) |
171 | | - self.add_children(marker) |
172 | | - |
173 | 129 | def line(self, locations, |
174 | 130 | line_color=None, line_opacity=None, line_weight=None, |
175 | 131 | popup=None, popup_width=300, latlon=True): |
@@ -682,8 +638,8 @@ def image_overlay(self, data, opacity=0.25, min_lat=-90.0, max_lat=90.0, |
682 | 638 | colormap : callable, used only for `mono` image. |
683 | 639 | Function of the form [x -> (r,g,b)] or [x -> (r,g,b,a)] |
684 | 640 | for transforming a mono image into RGB. |
685 | | - It must output iterables of length 3 or 4, with values between |
686 | | - 0. and 1. Hint : you can use colormaps from `matplotlib.cm`. |
| 641 | + It must output iterables of length 3 or 4, with values |
| 642 | + between 0 and 1. Hint: you can use colormaps from `matplotlib.cm`. |
687 | 643 |
|
688 | 644 | mercator_project : bool, default False, used only for array-like image. |
689 | 645 | Transforms the data to project (longitude,latitude) coordinates |
|
0 commit comments