Google街景视图从网址转换

时间:2016-02-22 08:46:22

标签: javascript google-maps

我正在尝试将google街道网址转换为javascript api。

var mapStreet = new google.maps.Map(document.getElementById('map-street'), {
    center: LatLon,
    zoom: 14,
});

var panorama = mapStreet.getStreetView();
    panorama.setPosition(LatLon);
    panorama.setPov({
    heading: heading,
    pitch: pitch,
    zoom: zoom,
});
panorama.setVisible(true);

我正在尝试从以下链接转换:https://www.google.co.uk/maps/place/Christ+the+Redeemer/@-22.9506869,-43.2036711,3a,75y,72.8h,71.92t/data=!3m8!1e1!3m6!1s-VvJvKOwHTPo%2FU_gKf85BVCI%2FAAAAAAAAClI%2FFKD57685CHA!2e4!3e11!6s%2F%2Flh3.googleusercontent.com%2F-VvJvKOwHTPo%2FU_gKf85BVCI%2FAAAAAAAAClI%2FFKD57685CHA%2Fw203-h101-n-k-no%2F!7i7760!8i3880!4m2!3m1!1s0x997fd5984aa13f:0x9dc984d7019502de!6m1!1e1

价值观:
-22.9506869, - > lat
-43.2036711, - > lon
3a, - > ?
90y, - > ?
66.62h, - >何去何从?
72.18t - > ?

这是一个Photo Sphere照片。 我的问题是如何从这个值转换为js api?

0 个答案:

没有答案