* @function GraphicLayer.prototype.addTo * @deprecated * @description 添加该图层,将在下个版本废弃,请使用 onAdd() 代替。 * @param {mapboxgl.Map} map - mapboxgl Map 对象。 * @returns this
(map)
| 48 | * @returns this |
| 49 | */ |
| 50 | addTo(map) { |
| 51 | this.onAdd(map); |
| 52 | return this; |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * @function GraphicLayer.prototype.onAdd |