檢視 微件:Google Street View 的原始碼
←
微件:Google Street View
跳至導覽
跳至搜尋
由於下列原因,您沒有權限進行編輯此頁面的動作:
您請求的操作只有這個群組的使用者能使用:
用戶
您沒有權限編輯在命名空間
微件
的頁面。
您可以檢視並複製此頁面的原始碼。
__NOTOC__ This widget allows you to add '''[http://maps.google.com/help/maps/streetview/ Google Street View]''' widget to your wiki page. Created by [[mediawikiwiki:User:Sergey Chernyshev|Sergey Chernyshev]] To insert this widget, use the following code: <nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki> |key=ABQIAAAAq_i4aTseMGLic8bgu1NQHRRuMGSDM4hOrlKevQrS9qsdJ_NOCxRsXLLNmhAg5xMn9btyuqHxCavIxw |lat=40.758153 |lng=-73.985355 |yaw=370.64659986187695 |pitch=-20 |zoom=0 }}</nowiki> == Parameters == * '''key''' - Google developer key for your site (you must [http://code.google.com/apis/ajaxsearch/signup.html get your own] or it will not work). * '''lat''' - lattitude of street view location * '''lng''' - longitude of street view location * '''height''' and '''width''' define view dimensions, 420x350 is default * '''yaw''' - defines the rotation angle around the camera locus in degrees relative from true north. Yaw angles are measured clockwise (90 degrees is true east) * '''pitch''' - defines the angle variance "up" or "down" from the camera's initial default pitch, which is often (but not always) flat horizontal. (For example, an image taken on a hill will likely exhibit a default pitch that is not horizontal.) Pitch angles are measured with negative values looking up (to -90 degrees straight up and orthogonal to the default pitch) and positive values looking down (to +90 degrees straight down and orthogonal to the default pitch) * '''zoom''' - defines the zoom level of this view (effectively proscribing the "field of view") with 0 being fully zoomed-out. Different Street View locations may provide higher or lower zoom levels. == Bookmarklet == Sometimes it's hard to get all the parameters you need for a Street View to display - coming up with longitude and latitude, direction (yaw), pitch, correct zoom levels and so on might take too much time. To help with this problem, we created a bookmarklet that you can use on Google Maps site to grab Street View widget code for current location with just one click. Drag this bookmarklet {{#widget:Bookmarklets/Google Maps|key=ABQIAAAAq_i4aTseMGLic8bgu1NQHRRuMGSDM4hOrlKevQrS9qsdJ_NOCxRsXLLNmhAg5xMn9btyuqHxCavIxw|text=Maps Widget Code}} to your links toolbar and just click it when you want to post a location on the map to your wiki. You can insert this bookmarklet (with your Google Maps developer key preset) into your wiki using [[Widget:Bookmarklets/Google Maps|Google Maps bookmarklet widget]]. == Related widgets == * [[Google Maps]] == Sample result == {{#Widget:{{PAGENAME}} |key=ABQIAAAAq_i4aTseMGLic8bgu1NQHRRuMGSDM4hOrlKevQrS9qsdJ_NOCxRsXLLNmhAg5xMn9btyuqHxCavIxw |lat=40.758153 |lng=-73.985355 |yaw=370.64659986187695 |pitch=-20 |zoom=0 }} {{Widget |author=Sergey Chernyshev |provider=Google Street View |providerurl=http://maps.google.com/help/maps/streetview/ |addedon=June 10, 2008 }}
返回到「
微件:Google Street View
」。
導覽菜單
個人工具
建立賬號
登入
命名空間
微件
討論
香港繁體
視圖
閱讀
檢視原始碼
檢視歷史
更多
搜尋
導覽
首頁
最新修改
編輯指南
Facebook群組
隨機頁面
工具
連結至此的頁面
相關變更
特殊頁面
頁面資訊