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

Embed component Google Maps #2283

Closed
mrtysn opened this issue Nov 2, 2017 · 1 comment
Closed

Embed component Google Maps #2283

mrtysn opened this issue Nov 2, 2017 · 1 comment
Labels

Comments

@mrtysn
Copy link

mrtysn commented Nov 2, 2017

There isn't any example of how to use google maps in an component although the docs mention that you can.

An embed displays content from other websites like YouTube videos or Google Maps.

Additionally, the source prop only accepts 'youtube' or 'vimeo'. Providing the src of iframe doesn't work out.

@brianespinosa
Copy link
Member

@mrtysn the url prop is what you should use for embed sources other than YouTube or Vimeo.

<Embed
    placeholder='your_placeholder.png'
    url='https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d25354.94046166276!2d-121.97574860000002!3d37.40478635!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x808fc9c6db85b8ab%3A0x72af1434e8036575!2sCalifornia&#39;s+Great+America!5e0!3m2!1sen!2sus!4v1509633245458'
  />

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

No branches or pull requests

2 participants