MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / MapVRenderer

Function MapVRenderer

libs/mapv/mapv.js:7993–8015  ·  view source on GitHub ↗
(map, layer, dataSet, options)

Source from the content-addressed store, hash-verified

7991 inherits(MapVRenderer, _BaseLayer);
7992
7993 function MapVRenderer(map, layer, dataSet, options) {
7994 classCallCheck(this, MapVRenderer);
7995
7996 var _this = possibleConstructorReturn(this, (MapVRenderer.__proto__ || Object.getPrototypeOf(MapVRenderer)).call(this, map, dataSet, options));
7997
7998 if (!BaseLayer) {
7999 return possibleConstructorReturn(_this);
8000 }
8001
8002 var self = _this;
8003 options = options || {};
8004
8005 self.init(options);
8006 self.argCheck(options);
8007 _this.canvasLayer = layer;
8008 _this.clickEvent = _this.clickEvent.bind(_this);
8009 _this.mousemoveEvent = _this.mousemoveEvent.bind(_this);
8010 _this._moveStartEvent = _this.moveStartEvent.bind(_this);
8011 _this._moveEndEvent = _this.moveEndEvent.bind(_this);
8012 _this._zoomStartEvent = _this.zoomStartEvent.bind(_this);
8013 _this.bindEvent();
8014 return _this;
8015 }
8016
8017 /**
8018 * @function MapVRenderer.prototype.clickEvent

Callers

nothing calls this directly

Calls 6

argCheckMethod · 0.80
bindMethod · 0.80
classCallCheckFunction · 0.70
initMethod · 0.45
bindEventMethod · 0.45

Tested by

no test coverage detected