How to use the jupyter.iclientpy.iclient.Icon function in jupyter

To help you get started, we’ve selected a few jupyter examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SuperMap / iclient-python / jupyter / iclientpy / iclient.py View on Github external
_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']