class Symbol(GMapsWidgetMixin, _BaseMarkerMixin, widgets.Widget): """ Class representing a single symbol. Symbols are like markers, but the point is represented by an SVG symbol, rather than the default inverted droplet. Symbols should be added to the map via the 'Symbols' widget. """ _view_name = Unicode('SymbolView').tag(sync=True) _model_name = Unicode('SymbolModel').tag(sync=True) fill_color = geotraitlets.ColorAlpha( allow_none=True, default_value=None ).tag(sync=True) fill_opacity = Float(min=0.0, max=1.0, default_value=1.0).tag(sync=True) stroke_color = geotraitlets.ColorAlpha( allow_none=True, default_value=None ).tag(sync=True) stroke_opacity = Float(min=0.0, max=1.0, default_value=1.0).tag(sync=True) scale = Int( default_value=4, allow_none=True, min=1 ).tag(sync=True) def __init__(self, location, **kwargs): kwargs = _resolve_info_box_kwargs(**kwargs) kwargs['location'] = location super(Symbol, self).__init__(**kwargs)
class Symbol(GMapsWidgetMixin, _BaseMarkerMixin, widgets.Widget): """ Class representing a single symbol. Symbols are like markers, but the point is represented by an SVG symbol, rather than the default inverted droplet. Symbols should be added to the map via the 'Symbols' widget. """ _view_name = Unicode("SymbolView").tag(sync=True) _model_name = Unicode("SymbolModel").tag(sync=True) fill_color = geotraitlets.ColorAlpha(allow_none=True, default_value=None).tag(sync=True) fill_opacity = Float(min=0.0, max=1.0, default_value=1.0).tag(sync=True) stroke_color = geotraitlets.ColorAlpha(allow_none=True, default_value=None).tag(sync=True) stroke_opacity = Float(min=0.0, max=1.0, default_value=1.0).tag(sync=True) scale = Int(default_value=4, allow_none=True, min=1).tag(sync=True)
class _HeatmapOptionsMixin(HasTraits): """ :param max_intensity: Strictly positive floating point number indicating the numeric value that corresponds to the hottest colour in the heatmap gradient. Any density of points greater than that value will just get mapped to the hottest colour. Setting this value can be useful when your data is sharply peaked. It is also useful if you find that your heatmap disappears as you zoom in. :type max_intensity: float, optional :param point_radius: Number of pixels for each point passed in the data. This determines the "radius of influence" of each data point. :type point_radius: int, optional :param dissipating: Whether the radius of influence of each point changes as you zoom in or out. If `dissipating` is True, the radius of influence of each point increases as you zoom out and decreases as you zoom in. If False, the radius of influence remains the same. Defaults to True. :type dissipating: bool, optional :param opacity: The opacity of the heatmap layer. Defaults to 0.6. :type opacity: float, optional :param gradient: The color gradient for the heatmap. This must be specified as a list of colors. Google Maps then interpolates linearly between those colors. Colors can be specified as a simple string, e.g. 'blue', as an RGB tuple, e.g. (100, 0, 0), or as an RGBA tuple, e.g. (100, 0, 0, 0.5). :type gradient: list of colors, optional """ max_intensity = Float(default_value=None, allow_none=True).tag(sync=True) point_radius = Float(default_value=None, allow_none=True).tag(sync=True) dissipating = Bool(default_value=True).tag(sync=True) opacity = Float(default_value=0.6, min=0.0, max=1.0).tag(sync=True) gradient = List(trait=geotraitlets.ColorAlpha(), allow_none=True, minlen=1).tag(sync=True) @default("gradient") def _default_gradient(self): return None
class A(traitlets.HasTraits): x = geotraitlets.ColorAlpha(default_value=None, allow_none=True)
class A(traitlets.HasTraits): x = geotraitlets.ColorAlpha()