* @function MapvRenderer.prototype.bindEvent * @description 绑定事件。
()
| 222 | * @description 绑定事件。 |
| 223 | */ |
| 224 | bindEvent() { |
| 225 | var map = this.map; |
| 226 | if (this.mapVOptions.methods) { |
| 227 | if (this.mapVOptions.methods.click) { |
| 228 | map.on('click', this.renderer.clickEvent); |
| 229 | } |
| 230 | if (this.mapVOptions.methods.mousemove) { |
| 231 | map.on('mousemove', this.renderer.mousemoveEvent); |
| 232 | } |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | /** |
| 237 | * @function MapvRenderer.prototype.unbindEvent |