1

In the https://developers.google.com/maps/documentation/urls/get-started examples

But how can we have both a marker and terrain? I can't hack together a URL that will do it.

1 Answer 1

1

You can't do this with the offical api. This is not really documented by google maps, so it could change from time to time:

https://www.google.com/maps/place/47.5951518,-122.3316393/@47.5951518,-122.3316393,10z/data=!5m1!1e4

Scheme:

https://www.google.com/maps/place/{lat},{lng}/@{lat},{lng},{zoom}z/data={style}

Style:

  • Terrain: /data=!5m1!1e4
  • Earth: /data=!3m1!1e3

Zoom:

1-19z

This works in the desktop version / browser. Not in a mobile app.

1
  • OK! I'll take your warnings seriously, and not get burnt. Commented Mar 5 at 2:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.