Example #1
0
 marker.on('click', () => {
     // console.log(this, obj, obj.getGuid());
     execute.call(this, this.onClickMarkerMf, obj.getGuid());
 });
Example #2
0
    // Internal variables
    _markerImages: {},
    _markerCache: [],
    _layerGroup: null,
    _layerCategoryGroups: {},
    _layerController: null,
    _minZoom: 0,
    _maxZoom: 20,

    _defaultPosition: [],
    _handle: null,
    _contextObj: null,
    _map: null,

    constructor() {
        this.execute = execute.bind(this);
        this.log = log.bind(this);
    },

    postCreate() {
        this.log('postCreate', this._WIDGET_VERSION);
        domAttr.set(this.domNode, 'data-widget-version', this._WIDGET_VERSION);

        this._defaultPosition = [
            parseFloat(this.defaultLat),
            parseFloat(this.defaultLng),
        ];

        this._minZoom = 0 >= this.minZoom ? this.minZoom : 0;
        this._maxZoom = this.maxZoom > this.minZoom ? this.maxZoom : this.minZoom;