开发者

Google Street View

开发者_JS百科

How do I embed google street view to my site I want to show a user location upon visiting my site.

Updated: Is there any clear tutorials or links for Google Maps


You can do it with Google Maps API2

and here is the Google Maps API2 Documention on Street View

Just keep in mind it needs Flash.

update: and to get the user location, you can use 'The Geolocation API Specification [which] is [a] part of the W3 Consortium’s standards But be warned: it hasn’t been finalized as yet.' consider looking at this question for an example code and more details.


Besides of using the latest Google Maps API version, you Can embed any panoramic view of Google Street View very easily. Being in Google Maps while browsing in Street View, you will find on the left page upper corner the street name and next to the marker a 3 dots vertical line.

You need to click on the 3 dots which are shown next to the street name info and then a form will pop up to give you the option to embed a html iframe with size options on the panoramic view wanted.

I hope it helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜