Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Save to Google Maps" Widget #73

Open
aemkei opened this issue Nov 18, 2015 · 2 comments
Open

"Save to Google Maps" Widget #73

aemkei opened this issue Nov 18, 2015 · 2 comments

Comments

@aemkei
Copy link
Contributor

aemkei commented Nov 18, 2015

How about adding a "Save to Google Maps" widget to the bottom of the info window?

We need to add ?signed_in=true to the Google Maps API.

Learn more here: https://developers.google.com/maps/documentation/javascript/signedin#save_to_google_maps_with_the_savewidget

Sample code:

google.maps.SaveWidget(widgetDiv, {
  place: {
    placeId: 'ChIJN1t_tDeuEmsRUsoyG83frY4',
    location: {lat: -33.866647, lng: 151.195886}
  },
  attribution: {
    source: 'RefugeeMaps.eu',
    webUrl: 'http://refugeemaps.eu'
  }
});
@ro-ka
Copy link
Contributor

ro-ka commented Nov 18, 2015

Do we have the placeId’s?

@aemkei
Copy link
Contributor Author

aemkei commented Nov 18, 2015

We can use a query with the address instead of the ID.

  {
    query: 'Bei der Schilleroper 1, 22767 Hamburg, Germany',
    location: {lat: 53.55813, lng: 9.96277}
  }

Or store the Place ID together with the geocode in the sheet via App Script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants