echarts
Version:
A powerful charting and visualization library for browser
22 lines (14 loc) • 505 B
JavaScript
;
var MapDraw = require('../helper/MapDraw');
module.exports = require('../../echarts').extendComponentView({
type: 'geo',
init: function (ecModel, api) {
var mapDraw = new MapDraw(api, true);
this._mapDraw = mapDraw;
this.group.add(mapDraw.group);
},
render: function (geoModel, ecModel, api) {
geoModel.get('show') &&
this._mapDraw.draw(geoModel, ecModel, api);
}
});