Get heading and pitch from pixels on Street View

前端 未结 4 2081
-上瘾入骨i
-上瘾入骨i 2021-02-01 22:40

I think this is the best place for this question.

I am trying to get the heading and pitch of any clicked point on an embedded Google Street View.

The only piec

4条回答
  •  南旧
    南旧 (楼主)
    2021-02-01 23:27

    Martin Matysiak wrote a JS library that implements the inverse of this (placing a marker at a specific heading/pitch). I mention this as the various jsfiddle links in other answers are 404ing, the original requestor added a comment requesting this, and this SO page comes up near the top for related searches.

    The blog post discussing it is at https://martinmatysiak.de/blog/view/panomarker.

    The library itself is at https://github.com/marmat/google-maps-api-addons.

    There's documentation and demos at http://marmat.github.io/google-maps-api-addons/ (look at http://marmat.github.io/google-maps-api-addons/panomarker/examples/basic.html and http://marmat.github.io/google-maps-api-addons/panomarker/examples/fancy.html for the PanoMarker examples).

提交回复
热议问题