/google-map

Google Maps web components

Primary LanguageHTMLOtherNOASSERTION

google-map

This fork is using v2.0.3 with the fix for #407.

    _clearListener: function(name) {
      // Fixes TypeError: Cannot read property of undefined
      if (this._listeners && this._listeners[name]) {
             google.maps.event.removeListener(this._listeners[name]);
             this._listeners[name] = null;
           }
    }

Published on webcomponents.org

<google-map fit-to-markers api-key="AIzaSyD3E1D9b-Z7ekrT3tbhl_dy8DCXuIuDDRc">
  <google-map-marker latitude="37.78" longitude="-122.4" draggable="true"></google-map-marker>
</google-map>

Breaking changes:

  • Markers added to <google-map> must now specify slot="markers" to be added correctly.