(e: mapboxgl.MapMouseEvent)
| 243 | const map = mapRef.current; |
| 244 | if (!map || !mapLoaded) return; |
| 245 | if (!drawMode) { |
| 246 | map.getCanvas().style.cursor = ""; |
| 247 | try { |
| 248 | if (map.getLayer("draw-fill")) map.removeLayer("draw-fill"); |
| 249 | if (map.getLayer("draw-line")) map.removeLayer("draw-line"); |
| 250 | if (map.getLayer("draw-points")) map.removeLayer("draw-points"); |
| 251 | if (map.getSource("draw-preview")) map.removeSource("draw-preview"); |
| 252 | if (map.getSource("draw-points")) map.removeSource("draw-points"); |
| 253 | } catch {} |
| 254 | return; |
| 255 | } |
| 256 | map.getCanvas().style.cursor = "crosshair"; |
nothing calls this directly
no outgoing calls
no test coverage detected