Skip to content
Discussion options

You must be logged in to vote

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"
  }
 ...

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by HusamElbashir
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #92 on March 28, 2024 23:40.