Questions tagged [vue2-google-maps]

Google maps component for vue with 2-way data binding

54 questions
10
votes
2 answers

custom marker for vue2-google-maps

I am trying to add my own images for a custom marker in vue2-google-maps without success. I know this is a bug and when I add an :icon="{url:'../assets/my_image'}" in tag the marker disappears. Has anyone managed to make it work?
user10043909
8
votes
3 answers

VueJS: Google Maps loads before data is ready - how to make it wait? (Nuxt)

This is my first VueJS project and I've got vue2-google-maps up and running but I've come across an issue when I attempt to connect the map markers to my site's JSON feed (using the Wordpress REST API), the Lat and Lng values are returning undefined…
AlxTheRed
  • 505
  • 6
  • 23
5
votes
1 answer

Integrating Google Maps VueJS Components (vue2-google-maps) into a Laravel blade view

I am integrating a Google Maps Vue JS component into a Laravel application view using the vue2-google-maps npm package. As per the npm package documentation I am loading the vue components from the npm package using: import * as VueGoogleMaps from…
5
votes
1 answer

Cross-Origin Read Blocking (CORB) when get data from Directions API using axios with Nuxt js

In my Nuxt project, I use vue2-google-maps library to create map and axios to get data from Map API. I want to get distance between 2 location in google map, so i use Directions API:…
Michael
  • 1,806
  • 2
  • 11
  • 20
5
votes
1 answer

How to populate info window with html for google maps when using vue2-google-maps?

I'd like to make a custom Info Window for Google Maps when using vue2-google-maps. But so far, from what I know we can only add text to the info window. Is there any way to customize that with my custom HTML like below. I want this to be done using…
Lucifer
  • 1,069
  • 4
  • 16
  • 26
4
votes
1 answer

Problem with vue2-google-maps with custom marker and icon resize, misplaced on zoom out

Vue.use(VueGoogleMaps, { load: { key: '' }, }); new Vue({ el: '#root', computed:{ icon(){ if (this.resized) return { url:"https://i.ibb.co/bdykLz4/test.png", size: { width: 100, height:…
4
votes
3 answers

VueJS, ReferenceError: google is not defined

I have the following source code and I got also the following error when I try to instantiate a new var with google.maps ...: google' is not defined Many of the answers talked about loading the API script asyncronously before everything else, and…
Smix
  • 69
  • 1
  • 1
  • 7
4
votes
2 answers

Drawing a circle around a point in vue2-google-maps

I am using Vue to build a site that takes in some data and displays a google map with markers and circles around the points with the markers. So far I can create the map with markers perfectly fine, however I have no idea what the proper way to…
wjmccann
  • 502
  • 6
  • 18
4
votes
1 answer

Vue Router is duplicating entries in window.history in Safari

My App.vue has the following setup: // App.vue And Home.vue has link to Gmap.vue: // Home.vue