Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_model_module_version = Unicode(EXTENSION_VERSION).tag(sync=True)
url = Unicode("").tag(sync=True)
size = Tuple(trait=Float).tag(sync=True)
offset = Tuple(trait=Float).tag(sync=True)
class Marker(Widget):
_view_name = Unicode("SuperMapMarkerView").tag(sync=True)
_model_name = Unicode("SuperMapMarkerModel").tag(sync=True)
_view_module = Unicode("iclientpy").tag(sync=True)
_model_module = Unicode("iclientpy").tag(sync=True)
_view_module_version = Unicode(EXTENSION_VERSION).tag(sync=True)
_model_module_version = Unicode(EXTENSION_VERSION).tag(sync=True)
lonlat = Tuple(trait=Float).tag(sync=True)
icon = Instance(klass=Icon).tag(sync=True, **widget_serialization)
@default("icon")
def _default_keys(self):
return Icon()
class Markers(Layer):
_view_name = Unicode("SuperMapMarkersView").tag(sync=True)
_model_name = Unicode("SuperMapMarkersModel").tag(sync=True)
is_base_layer = Bool(False).tag(sync=True)
opacity = Float(default_value=1).tag(sync=True)
@validate("opacity")
def _validate_opacity(self, proposal):
return proposal['value']
def _default_keys(self):
return Icon()