Jump to Content

Objective HTML

Google Maps for ExpressionEngine

The complete geolocation and mapping toolkit

Street View Panorama

You can easily add a street view layer to any map, or create a stand-alone layer that is different than the map. Most of the parameters provided by the Street View Panorama API are permitted. If no location or coordinate is set, then the map's center is used.

Not all locations have Street View available. This method works best when plotting addresses along a street known to have Street View available. Unknown locations will result in a blank (or gray) picture. Reset stylesheets can also result in a blank (or gray) map. Notice the 'gmap' class is used to prevent this in the examples on this page.

View Documentation

Overlay

This example demonstrates how to include street view as an overlay. If no address or latitude and longitude is set in the exp:gmap:streetview tag, then the map's center will be used.

		
{exp:gmap:init id="map" class="gmap" zoom="15" address="Monument Circle" scrollwheel="false" style="width:100%;height:300px"}
{exp:gmap:streetview id="map" class="gmap" scrollwheel="false" style="width:100%;height:300px"}

Side by Side

This example demonstrates how to include street view as a separate entity. Notice the street view icon on the map.

		
{exp:gmap:init id="map" class="gmap" zoom="15" script_tag="false" address="Monument Circle" scrollwheel="false" style="width:100%;height:300px"}

{exp:gmap:streetview id="map" class="gmap" overlay="false" enableCloseButton="false" scrollwheel="false" style="width:100%;height:300px"}