Deploying your own Slippy Map
Deploying your own Slippy Map is a common way of Using OpenStreetMap. It usually means integrating a slippy map which shows map tiles into your web page by using some JavaScript code.
![]() | 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:
- Leaflet (leafletjs.com) is a free open source JavaScript library with a light, easy to use API, with many plugins.
- OpenLayers (openlayers.org) is a feature-rich free open source JavaScript library.
- Google Maps Example shows how to use the Google Maps API to present OSM maps.
Alternatives:
- Jawg Widgets ([1]) are state-of-the-art open-source html/js widgets for a seamless integration of maps and services (routes, geocoding...).
- 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.
- YCanvas (ycanvas.yoz.sk) Flash/AIR library for web and mobile deployment.
- Zoom zoom zoom map has a nice smooth zoom feature
- Khtmlib also smooth zooms
- Ka-Map (ka-map.maptools.org)
- AFComponents UMap (umapper.com) embeddable Flash slippy map
- OpenScales (openscales.org) mapping framework in ActionScript (flash), configurable by xml
- Modest Maps (modestmaps.com) in Actionscript3, Python, JavaScript, PHP, Processing, Cinder.
- Modestmaps-js is a lightweight, Javascript version of ModestMaps.
- Mapsui (github.com/pauldendulk/mapsui) a C# map component that accesses tile services through BruTile
- Polymaps (polymaps.org) JavaScript library from Stamen
Contents
Embedding 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.
- TileLauncher is a free out-of-the-box styled-tileserver for Amazon EC2. In a few clicks, choose your theme colours, your Amazon Instance type, your region, enter your credentials and press "Launch". [10]