Put pin on Google Map

2020-04-07 05:39发布

问题:

I need to redirect user to Google Maps page and put some pin on defined location. The problem is that you could easily center map on some point with simple request:

http://maps.google.com/maps?hl=en&ll=49.901711,32.508545&spn=5.959342,16.907959&z=7

But how to set a pin with such request ?

回答1:

You can do this with My Maps.

  1. Create or open a map.
  2. Click Edit to enter editing mode.
  3. Click the blue marker. Your cursor changes into a placemark icon with an "X" crosshairs. The crosshairs indicate where the placemark will fall.
  4. Move the cursor to the appropriate location. If you want to dismiss this placemark, press the Escape key.
  5. Click your mouse button to place your placemark. It should bounce into place.
  6. Add a title and description.
  7. You can also change the icon for your placemark by clicking the icon in the top right corner of the info window. You can also add your own icon.
  8. Click OK to save your placemark.

http://maps.google.com/support/bin/static.py?page=guide.cs&guide=21670&topic=21676&answer=144363#placemark