from ipyleaflet import Layer
from traitlets import Unicode, Dict
from iclientpy._version import EXTENSION_VERSION

SYMBOL = {
    "plane": 'path://M1705.06,1318.313v-89.254l-319.9-221.799l0.073-208.'
             '063c0.521-84.662-26.629-121.796-63.961-121.491c-37.332-0.'
             '305-64.482,36.829-63.961,121.491l0.073,208.063l-319.9,221.'
             '799v89.254l330.343-157.288l12.238,241.308l-134.449,92.931l0.'
             '531,42.034l175.125-42.917l175.125,42.917l0.531-42.034l-134'
             '.449-92.931l12.238-241.308L1705.06,1318.313z'
}


class EchartsLayer(Layer):
    _view_name = Unicode("SuperMapEchartsLayerView").tag(sync=True)
    _model_name = Unicode("SuperMapEchartsLayerModel").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)

    option = Dict().tag(sync=True)
