(map)
| 102 | } |
| 103 | |
| 104 | onAdd(map) { |
| 105 | this.map = map; |
| 106 | this.renderer = new GraticuleLayerRenderer(this.map, this.options, { |
| 107 | getMapStateByKey: this.getMapStateByKey, |
| 108 | getDefaultExtent: this.getDefaultExtent, |
| 109 | updateGraticuleLayer: this.updateGraticuleLayer.bind(this), |
| 110 | setVisibility: this.setVisibility.bind(this) |
| 111 | }, { |
| 112 | mapElement: this.map.getCanvas(), |
| 113 | targetElement: this.map.getCanvasContainer(), |
| 114 | id: this.id |
| 115 | }); |
| 116 | this.addGraticuleLayer(); |
| 117 | this.resizeEvent = this.renderer._resizeCallback.bind(this.renderer); |
| 118 | this.zoomendEvent = this.setVisibility.bind(this); |
| 119 | this._bindEvent() |
| 120 | } |
| 121 | |
| 122 | onRemove() { |
| 123 | this.renderer.onRemove(); |
nothing calls this directly
no test coverage detected