Tour API Demos Download Tests
Aperture version 1.0
Generated by: JsDoc Toolkit 2.4.0

Class aperture.geo.MapTileLayer.Google

A Google Maps service. Use of this layer requires the inclusion of the Google Maps v3 API script and is subject to its terms of use. Map options include dynamically styled maps.

Class Summary
Constructor Attributes Constructor Name and Description
 
MapTileLayers may be configured as base layers in Map construction, or later added as overlay layers by calling addLayer on a parent layer.

Method Summary

Class Detail

aperture.geo.MapTileLayer.Google(spec)
MapTileLayers may be configured as base layers in Map construction, or later added as overlay layers by calling addLayer on a parent layer. This layer constructor is never called directly.
var spec = {
    name: 'My Layer',
    options: {
         type: google.maps.MapTypeId.TERRAIN
    }
};

// EXAMPLE ONE: create a map and explicitly set the base tile layer
var map = new Map({
     baseLayer : {
         Google: spec
     }
});

// EXAMPLE TWO: overlay a layer on a map with an existing base layer
map.addLayer( aperture.geo.MapTileLayer.Google, {}, spec );

// EXAMPLE THREE: create a styled map
var map = new Map({
     baseLayer : {
         Google: {
             name: 'My Layer',
             options: {
                 type: 'styled',
                 style: [{
                     stylers: [
                         { saturation: -80 }
                     ]
                 }]
             }
         }
     }
});
Parameters:
{Object} spec
a specification object
{String} spec.name
the local name to give the layer.
{Object} spec.options
implementation specific options.
{google.maps.MapTypeId|'styled'} spec.options.type
a Google defined layer type to request.
{Array} spec.options.style
a list of Google defined style rules.