* @function SuperMap.Layer.MapVLayer.prototype.setMap * @description 图层已经添加到 Map 中。 * 如果当前浏览器支持 canvas,则开始渲染要素;如果不支持则移除图层。 * @param {SuperMap.Map} map - 需要绑定的 map 对象。
(map)
| 166 | * @param {SuperMap.Map} map - 需要绑定的 map 对象。 |
| 167 | */ |
| 168 | setMap(map) { |
| 169 | super.setMap(map); |
| 170 | this.renderer = new MapVRenderer(map, this, this.dataSet, this.options); |
| 171 | this.renderer.devicePixelRatio = this.devicePixelRatio; |
| 172 | if (!this.supported) { |
| 173 | this.map.removeLayer(this); |
| 174 | } else { |
| 175 | this.redraw(); |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | /** |
| 180 | * @function SuperMap.Layer.MapVLayer.prototype.moveTo |
no test coverage detected