Skip to content

Map reorienting after load #68

Answered by estenssoros
estenssoros asked this question in Q&A
Discussion options

You must be logged in to vote

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?

<GMapMap
        :center="center"
        :zoom="15"
        map-type-id="hybrid"
        style="
          width: 100%;
          height: 900px;
          margin: 10px;
          padding: 10px;
        "
        :options="{
          heading: 220,
          tilt: 53,
          zoomControl: true,
          scaleControl: false,
          streetViewControl: false,
          rotateContro…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by estenssoros
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
advise or question Seeking for advise or question
2 participants