MCPcopy Create free account
hub / github.com/ImGoodBai/MapGoGoGo / removeOverlays

Function removeOverlays

frontend/src/maps.tsx:140–149  ·  view source on GitHub ↗
(map: any, overlays: any[])

Source from the content-addressed store, hash-verified

138}
139
140function removeOverlays(map: any, overlays: any[]) {
141 for (const overlay of overlays) {
142 if (!overlay) continue;
143 try {
144 map.remove(overlay);
145 } catch {
146 overlay.setMap?.(null);
147 }
148 }
149}
150
151function applyOverlayOptions(overlay: any, options: Record<string, unknown>) {
152 if (overlay?.setOptions) {

Callers 1

AmapViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected