Get a picture from google maps



  • I want to do this:

    1. User opens the window
    2. Choose a place on the map.
    3. He's pushing.
    4. There's a picture that the user saw on the server. maps (as well as others)

    I'm downloading the map. iframe Okay.

    <iframe name="mapframe" width="600" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=ru&amp;geocode=&amp;q=&amp;aq=&amp;sll=0&amp;sspn=0&amp;t=m&amp;ie=UTF8&amp;hq=&amp;hnear=&amp;z=12&amp;ll=0&amp;output=embed"></iframe>
    


  • In your case, it's easier for the server to send coordinates and zoom-a levels, and then with help. https://developers.google.com/maps/documentation/static-maps/ request a statistical picture for the chosen user area.

    The screening of the page in canvas, as indicated by Alexander in the commentaries, will not take place because of security constraints (cross origin).


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2