-
Notifications
You must be signed in to change notification settings - Fork 64
Description
Hi,
I am trying to use google-map element with Angular 2: the display is correct, and all the google-map properties work well, but the properties of google-maps-api. For example:
<google-map api-key="AIzaSyCqrVHpM_zlUEPtxJPQiFYIqwfKcOctB_M" language="en" latitude="37.77493" longitude="-122.41942"></google-map>
I see the following error twice, once for each property that belongs to the google-maps-api (language
and api-key
):
You have included the Google Maps API multiple times on this page. This may cause unexpected errors.
In fact, in the browser Sources, I see three loads of Google Maps Api: one with no parameters, one with the API key and finally one with the API key and the language.
If I set directly into the google-map the properties, the error does not occur:
<google-maps-api id="api" api-key="AIzaSyCqrVHpM_zlUEPtxJPQiFYIqwfKcOctB_M" client-id="[[clientId]]" version="[[version]]" signed-in="[[signedIn]]" language="en" on-api-load="_mapApiLoaded"></google-maps-api>
I have seen that this error occurs in other cases, such as: #22
Is there an explanation? Thanks.