Map reorienting after load #68
-
First of all, thank you so much for making the community fork! I'm so glad someone has taken on this project. I'm not really a front-end dev, but happy to help contribute. I'm having an issue using this in the Quasar Framework where my map is reorienting after mounting. I'm setting the heading and tilt in the component and I see the map initially render in the correct position then rotate back to a North heading with 0 tilt. Has anyone run into this issue or know what's going on? Also, the rotate control isn't rendering. I wonder if that is related. I also can't access the map via I just subbed this code into the default Thank you for any help! I would really appreciate it Index.vue
boot/google-maps.js
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hello! Thanks for the message and the report! Do you see any error that might be occurring while you try rendering your map? |
Beta Was this translation helpful? Give feedback.
-
Hey! The console is quiet unless I add |
Beta Was this translation helpful? Give feedback.
-
I got it! It looks like tilt and orientation are only supported on vector maps. So I had to create a map in the gcloud console and pass that ID to the options parameter in the Map component! It is strange that the raster map was initially orienting and tilting but I guess it's something that google enforces?
|
Beta Was this translation helpful? Give feedback.
I got it! It looks like tilt and orientation are only supported on vector maps. So I had to create a map in the gcloud console and pass that ID to the options parameter in the Map component! It is strange that the raster map was initially orienting and tilting but I guess it's something that google enforces?