Google Street View

From MediaWiki Widgets

Google Street View widget
Description:Allows you to add a Google Street View.
Author:Sergey Chernyshev
Provider:Google Street View
Code:Widget:Google Street View
Updated:December 5, 2016
If you use code on your wiki which is older than this date you may want to update since your widget may be insecure or broken.
Inv-Icon tools.svg.png

To copy this widget to your wiki, cut and paste the entire source of the Google Street View widget code page into a page called Widget:Google Street View on your wiki.

If you don't have the Widget extension set up on your wiki, go to its description page on and follow the installation instructions.

This widget allows you to add Google Street View widget to your wiki page.

Created by Sergey Chernyshev

To insert this widget, use the following code:

{{#widget:Google Street View


  • lat - lattitude of street view location
  • lng - longitude of street view location
  • height and width define view dimensions. Defaults: width=420; height=350
  • 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). And for some reason, for static maps, this value must be negated, e.g. negative values look down and positive look up (don't ask me why the discrepancy).
  • 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. Works only for interactive street views - for static use fov parameter instead.
  • fov - field of view, similar to zoom, but expressed in degrees for a field of view, default is 90 and maximum is 120. Works only for static street views - for interactive use zoom parameter instead.
  • static - if present, indicates that static image should be inserted instead of an interactive map. Note: some differences between static and interactive maps:
    • use fov parameter instead of zoom
    • make sure that you revert the value of pitch as negative values point down for static street views
    • positioning does not necessarily match on the two - converting from interactive to static will give close enough position, but not perfect, manual correction might be required


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 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 into your wiki using Google Maps bookmarklet widget.

Related widgets

Sample result

New York Times Square

Interactive version:

Static Image:

San Francisco Chinatown gates


blog comments powered by Disqus