diff --git a/README.md b/README.md index 7f86129..c86c19b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ google-map ========== +If you are seeking a smaller, simplified version of `google-map`, we recommend using +[`good-map`](https://www.webcomponents.org/element/keanulee/good-map) + + [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://beta.webcomponents.org/element/GoogleWebComponents/google-map) ```html - + ``` Breaking changes: - * Markers added to `` must now specify `slot="markers"` to be added correctly. \ No newline at end of file + * Markers added to `` must now specify `slot="markers"` to be added correctly. diff --git a/bower.json b/bower.json index 46cb779..ac446cd 100644 --- a/bower.json +++ b/bower.json @@ -1,13 +1,10 @@ { "name": "google-map", - "version": "1.2.0", + "version": "2.0.5", "description": "Google Maps web components", "homepage": "https://elements.polymer-project.org/elements/google-map", "main": [ - "google-map.html", - "google-map-search.html", - "google-map-marker.html", - "google-map-directions.html" + "google-map-elements.html" ], "authors": [ "Frankie Fu ", @@ -29,13 +26,13 @@ ], "dependencies": { "polymer": "Polymer/polymer#1.9 - 2", - "google-apis": "GoogleWebComponents/google-apis#^2.0.0", + "google-apis": "GoogleWebComponents/google-apis#1 - 2", "iron-resizable-behavior": "PolymerElements/iron-resizable-behavior#1 - 2", "iron-selector": "PolymerElements/iron-selector#1 - 2" }, "devDependencies": { "web-component-tester": "^6.0.0", - "iron-component-page": "PolymerElements/iron-component-page#^1 - 2" + "iron-component-page": "PolymerElements/iron-component-page#1 - 2" }, "variants": { "1.x": { diff --git a/google-map-directions.html b/google-map-directions.html index c55af11..47e1ebd 100644 --- a/google-map-directions.html +++ b/google-map-directions.html @@ -40,174 +40,178 @@ diff --git a/google-map-marker.html b/google-map-marker.html index fb789a3..1900fa3 100644 --- a/google-map-marker.html +++ b/google-map-marker.html @@ -45,6 +45,11 @@ diff --git a/google-map-poly.html b/google-map-poly.html index f613855..905c26c 100644 --- a/google-map-poly.html +++ b/google-map-poly.html @@ -49,7 +49,7 @@ * initially or when they are changed. * * @event google-map-poly-path-built - * @param {google.maps.MVCArray.} path The poly path. + * @param {google.maps.MVCArray.} path The poly path. */ /** @@ -57,7 +57,7 @@ * provided path to rebuild its list of points. * * @event google-map-poly-path-updated - * @param {google.maps.MVCArray.} path The poly path. + * @param {google.maps.MVCArray.} path The poly path. */ /** @@ -159,7 +159,7 @@ /** * An array of the Google Maps LatLng objects that define the poly shape. * - * @type google.maps.MVCArray. + * @type google.maps.MVCArray. */ path: { type: Object, @@ -487,8 +487,15 @@ this._building = true; this.path.clear(); for (var i = 0, point; point = this._points[i]; ++i) { - if (point.tagName == 'google-map-point') - this.path.push(point.getPosition()); + var tagName = point.tagName; + + if (tagName) { + tagName = tagName.toLowerCase(); + + if (tagName == 'google-map-point') { + this.path.push(point.getPosition()); + } + } } this._building = false; diff --git a/google-map-search.html b/google-map-search.html index daf1832..a2f374a 100644 --- a/google-map-search.html +++ b/google-map-search.html @@ -27,188 +27,192 @@

{{marker.name}}

--> diff --git a/google-map.html b/google-map.html index 833897a..5049fb6 100644 --- a/google-map.html +++ b/google-map.html @@ -103,757 +103,761 @@