MapOf

From OpenStreetMap Wiki
Jump to: navigation, search
Help
Available languages
English Italiano

MapOf (http://tah.openstreetmap.org/MapOf/) is a static map images generating service. Specify centering and zoom, and MapOf stitches together tile images to generate the requested larger (or smaller) map image. MapOf fetches tiles from the local filesystem on the tiles@home server, and so only osmarender layer tiles are available.

Created by User:Ojw


Image URL parameters

Image URLs are parameterised, so you can reference a particular map image directly e.g.:

http://tah.openstreetmap.org/MapOf/?lat=55.25&long=-3.845&z=5&w=300&h=460&format=jpeg

Direct urls can be used in <img> tags in HTML.

Problems to note on using direct image URLS

This builds a direct dependency between your website and this MapOf service, which has been known to have periods of unavailability (which would mean no image appearing on your site)

Also the MapOf service may not scale well to many websites using it in this way. So far there aren't really any websites doing this. You'll need to discuss usage particularly if you are running a high traffic website. This "service" is not something openstreetmap offers as a core high-availability thing. To discuss service stability / scaleability with someone you'd need to contact people involved in running the tiles@home server

The firefishy proxy is set up to cache images generated by this service, so using URLs like this is better:

http://osm-tah-cache.firefishy.com/MapOf/?lat=55.25&long=-3.845&z=5&w=300&h=460&format=jpeg

This is what the Simple image MediaWiki Extension uses. Even then you're hitting the tiles@home server and User:Firefishy's proxy. Discuss first.

Other static map options

See static map images for a list alternative implementations of this idea.

Although MapOf is still running it since evolved into GetMap (no longer available) and now the new StaticMap. This is a more advanced system including a web interface for designing your desired map image, and offering Mapnik and many other layer choices.

Personal tools
Namespaces
Variants
Actions
site
Toolbox