From 6dc83ceb006b15f2c804d3f3ee85872a6f27df3e Mon Sep 17 00:00:00 2001 From: Eric Bidelman Date: Thu, 1 May 2014 23:20:45 -0700 Subject: [PATCH] Add docs --- google-map.html | 102 ++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 95 insertions(+), 7 deletions(-) diff --git a/google-map.html b/google-map.html index be150d9..75609ac 100644 --- a/google-map.html +++ b/google-map.html @@ -8,16 +8,41 @@ --> + @@ -50,13 +75,76 @@ Polymer('google-map', { - latitude: '37.77493', - longitude: '-122.41942', + /** + * A latitude to center the map on. + * + * @attribute latitude + * @type number + * @default 37.77493 + */ + latitude: 37.77493, + + /** + * A longitude to center the map on. + * + * @attribute longitude + * @type number + * @default -122.41942 + */ + longitude: -122.41942, + + /** + * A zoom level to set the map to. + * + * @attribute zoom + * @type number + * @default 10 + */ zoom: 10, + + /** + * When set, displays a map marker at the center point. + * + * @attribute showCenterMarker + * @type boolean + * @default false + */ showCenterMarker: false, + + /** + * Map type to display. One of 'roadmap', 'satellite', 'hybrid', 'terrain'. + * + * @attribute mapType + * @type string + * @default roadmap + */ mapType: 'roadmap', // roadmap, satellite, hybrid, terrain + + /** + * Version of the Google Maps API to use. + * + * @attribute version + * @type string + * @default 3.exp + */ version: '3.exp', + + /** + * If set, indicates a sensor (such as a GPS locator) was used to determine the user's location. + * + * @attribute sensor + * @type boolean + * @default false + */ sensor: false, + + /** + * If set, removes the map's default UI controls. + * + * @attribute disableDefaultUI + * @type boolean + * @default false + */ disableDefaultUI: false, observe: {