I am looking for a web-based mapping service that allows linking to:

  • a (geographical world) map
  • at a custom zoom level on a custom location
  • with a custom amount of simple overlays that must include
    • placemarks at custom locations
    • arrows between any two locations

Zoom level, zoom focus location, locations of any displayed placemarks, and location pairs of any displayed arrows must be specified by HTTP-GET parameters (i.e. as a part of the URL).

(for an example of what this could look like, see below)


  • The ability to specify a human-readable name for each specified location is not required, but is a plus.
  • It is sufficient if locations can simply be specified in geo coordinates. The service can, in addition, support named locations (e.g. city names), but that is not a requirement.
  • Alternatively to the zoom level and the location, specifying a rectangle of geo-coordinates that must be visible would be fine, too.
  • A web-based form to input coordinates and generate the link is nice, but by no means necessary.

Use case: Frequently, when describing something geographical (in chat, in forums, on Travel SE, ...), I feel the desire to support the explanations with a link that, when clicked, shows exactly the location, locations, or displacement I am talking about.

As far as I could find out, the common map services such as Google Maps, Bing Maps, or OpenStreetMap usually offer embeddable widgets, to which placemarks can be added by means of scripts, and also sometimes customizeable map layers so you can pre-configure your placemarks, save them on the server, and then link to that saved map. I am looking for a service that provides a very simple version of this, but "ad-hoc", in a way that nothing is stored, prepared, or procedurally modified by user scripts, but just displayed based on the information provided in a single link.

An example of what I imagine: When writing a text like

When travelling from Shanghai to Bangkok, Beijing and Ulaanbaatar both mean a significant detour.

I would like to add a link like


or alternatively


This link should then lead to a marked map, somewhat like this:

marked map based on URL arguments

(This map uses OpenStreetMap data. As far as I understood the legal requirements, I need to declare this image to be public domain to be on the safe side - so be it, I hereby do.)

Finally, of course, this service should be available for free. Otherwise, it would not make much sense, as anyone who sees the link should be able to follow it, and a link in a public place cannot contain any confidential credentials.


Are you looking for this: https://maps.googleapis.com/maps/api/staticmap?size=400x300&markers=Bangkok|Shanghai|Beijing|Ulaanbaatar


For further references please read the section on Marker Locations from Googles Static Map API. Multiple variations of this URL can be given, i.e. centering on a given point, or changing labels, but the version above seems to be the simplest one available, and it does automatically zoom in so that every marker is visible.

If you want to have paths as well as custom characters on far away places, that can also be done: https://maps.googleapis.com/maps/api/staticmap?size=400x300&path=Bangkok|Shanghai&markers=label:B|Beijing&markers=label:U|Ulaanbaatar


  • Wow, that's exactly what I was hoping for! Why is that so hidden?! I even searched specifically for showing markers in Google Maps defined by URLs, but somehow, I could only find resources describing the JavaScript API (and also a few that describe how to use a placemark as a link ...). – O. R. Mapper Jul 6 '15 at 14:34
  • It looks like this service has been discontinued - or rather, restricted to getting used with an API key. Like this, it has become useless for integrating a map graphic in a public website such as a StackOverflow post :( Unaccepted (because the answer is not useful anymore to future visitors) but upvoted (to somewhat make up for your loss in rep, sorry). – O. R. Mapper Jan 31 '20 at 10:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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