12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- import * as echarts from 'echarts';
- function v2Equal(a, b) {
- return a && b && a[0] === b[0] && a[1] === b[1];
- }
- export default echarts.extendComponentModel({
- type: 'bmap',
- getBMap: function () {
-
- return this.__bmap;
- },
- setCenterAndZoom: function (center, zoom) {
- this.option.center = center;
- this.option.zoom = zoom;
- },
- centerOrZoomChanged: function (center, zoom) {
- var option = this.option;
- return !(v2Equal(center, option.center) && zoom === option.zoom);
- },
- defaultOption: {
- center: [104.114129, 37.550339],
- zoom: 5,
-
- mapStyle: {},
-
- mapStyleV2: {},
-
- mapOptions: {},
- roam: false
- }
- });
|