Deploying your own Slippy Map
Deploying your own Slippy Map is a common way of Using OpenStreetMap.
| Please don't forget to credit OpenStreetMap. See Legal FAQ for details |
You can embed our existing map into your website, just as you might with Google or Yahoo! maps. This can be done using one of the following JavaScript map libraries:
- OpenLayers (openlayers.org) is a feature-rich free open source JavaScript library. This is the most popular way of presenting OSM maps.
- Leaflet (leaflet.cloudmade.com) is a new JavaScript library from CloudMade, lightweight and with an easy API. Beta version. Open source. Supports touch and drag events on mobile devices.
- Google Maps Example shows how to use the google maps API to present OSM maps.
- Mapstraction (mapstraction.com) is an open source javascript wrapper around the above libraries (and several others) allowing you to swap your choice of map library provider without re-coding anything.
Other less widely used alternatives:
- CloudMade Web Maps API ([1]) is CloudMade's early offering. They since launched leaflet.
- Zoom zoom zoom map has a nice smooth zoom feature
- Khtmlib also smooth zooms
- Ka-Map (ka-map.maptools.org)
- AFComponents UMap (afcomponents.com) embeddable Flash slippy map
- OpenScales (openscales.org) mapping framwork in ActionScript (flash), configurable by xml
- Modest Maps (modestmaps.com) in Flash and Python.
- Modestmaps-js is a lightweight, Javascript version of ModestMaps.
- BruTile (brutile.codeplex.com) a C# library for tile services (use online via silverlight)
- Polymaps (polymaps.org) JavaScript library from Stamen
Contents |
Embeding OSM in a CMS/framework
You can embed OSM in your favourite Content Management System:
See also:
- Cartaro is a framework for embedding maps in different CMS, especially Drupal.
Sources of tiles
| It is highly recommend to contact the operators before using their servers! Respect their Tile usage policy |
OpenStreetMap tile servers
Typically these examples show you how to use the OpenStreetMap tile servers. Your site serves up the HTML and the javascript (maybe) but the tile images of the map are still fetched by the browser from our servers. You must do this in accordance with the tile usage policy. The tile service comes with no guarantee as to availability or speed (if you expect particularly heavy demand, please contact the community to discuss your requirements first).
Alternative tile servers
Alternative tile providers (with their own usage policies) are available. Some of them are combining OSM data with their own imagery and/or applying different colours and styles of map details.
See Slippy map tilenames#Tile servers, TMS for a list of some tile providers.
Your own map tiles
For ultimate flexibility, OpenStreetMap also gives you the unique ability to generate your own map tiles — styled any way you like — from our data.
- See Switch2Osm.org for more information on serving your own tiles.
- Tiledrawer is a free, quick-start, out-of-the-box renderer and server using the standard OSM toolchain for Amazon EC2, other virtual servers, and fresh installs of Ubuntu on any hardware.