Powiadomienia
Wyczyść wszystko
BugOverflow
1
Wpisy
1
Użytkownicy
0
Reactions
937
Widoki
0
23/06/2022 11:38 pm
Rozpoczynający temat
- setMap(null) not removing any makers or lines using vue
- setMap(null) on polyline does not remove it from map until zoom change
1 odpowiedź
0
23/06/2022 11:41 pm
Rozpoczynający temat
1. do not define any markers or polylines inside data { }
2. define variables inside setup { } and remove reactivity (do not use ref(var)). Example below.
setup() { let marker = null; let gmap = null; let currentPolygon = null; return { marker, gmap, currentPolygon } },
problem with reactivity has been confirmed with
import {Loader} from "@googlemaps/js-api-loader";