()
| 399 | setShowNewFieldDialog(false); |
| 400 | setDrawVertices([]); |
| 401 | const map = mapRef.current; |
| 402 | if (map) { |
| 403 | try { |
| 404 | if (map.getLayer("draw-fill")) map.removeLayer("draw-fill"); |
| 405 | if (map.getLayer("draw-line")) map.removeLayer("draw-line"); |
| 406 | if (map.getLayer("draw-points")) map.removeLayer("draw-points"); |
| 407 | if (map.getSource("draw-preview")) map.removeSource("draw-preview"); |
| 408 | if (map.getSource("draw-points")) map.removeSource("draw-points"); |
| 409 | } catch {} |
| 410 | } |
nothing calls this directly
no outgoing calls
no test coverage detected