Closed cullenmarcels closed 2 years ago
You should wait until the map is ready
@cullenmarcels . See Advanced Usage.
Example:
const icon = computed(() => mapRef.value?.ready
? {
path: XXX ,
fillColor: "#fefefe",
fillOpacity: 1,
strokeWeight: 0,
rotation: 0,
scale: 0.01,
anchor: new mapRef.value.api.Point(500, 900) // or new google.maps.Point(500, 900)
}
: null)
const options = computed(() => ({
path: [xxx, xxx, xxx],
icons: [{
icon: icon.value,
repeat: "150px"
}
...
tks!
error: google is not defined i can't find a way to customize setting icon at < Polyline >