MCPcopy
hub / github.com/apache/echarts / createOverlayCtor

Function createOverlayCtor

extension-src/bmap/BMapCoordSys.ts:244–264  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

242let Overlay: BMapECExtendedOverlayCtor;
243
244function createOverlayCtor(): BMapECExtendedOverlayCtor {
245 function Overlay(this: BMapECExtendedOverlay, root: HTMLElement) {
246 this._root = root;
247 }
248
249 Overlay.prototype = new BMap.Overlay();
250
251 /**
252 * @override
253 */
254 Overlay.prototype.initialize = function (this: BMapECExtendedOverlay, map: bmapLib.Map): HTMLElement {
255 map.getPanes().labelPane.appendChild(this._root);
256 return this._root;
257 };
258 /**
259 * @override
260 */
261 Overlay.prototype.draw = function () {};
262
263 return Overlay as BMapECExtendedOverlayCtor;
264}
265
266BMapCoordSys.create = function (ecModel, api) {
267 let bmapCoordSys: BMapCoordSys;

Callers 1

BMapCoordSys.tsFile · 0.85

Calls 1

getPanesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…