PHP Classes

File: vendors/echarts/extension/bmap/BMapModel.js

Recommend this page to a friend!
  Classes of Jorge Castro   Gentelella BladeOne   vendors/echarts/extension/bmap/BMapModel.js   Download  
File: vendors/echarts/extension/bmap/BMapModel.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Gentelella BladeOne
Render templates using Bootstrap for presentation
Author: By
Last change:
Date: 3 years ago
Size: 805 bytes
 

Contents

Class file image Download
define(function (require) { function v2Equal(a, b) { return a && b && a[0] === b[0] && a[1] === b[1]; } return require('echarts').extendComponentModel({ type: 'bmap', getBMap: function () { // __bmap is injected when creating BMapCoordSys 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: null, zoom: 1, mapStyle: {}, roam: false } }); });