Zh-hans:Deploying your own Slippy Map

部署网络地图使用OSM地图的通常办法。通常这意味着使用一些JavaScript代码整合一张展示地图瓦片的网络地图到你的网页上。

你可以嵌入我们存在的地图,就像嵌入Google或Yahoo!地图一样。这使用下列JavaScript地图库之一可以被完成:

这些也可用:

Embedding OSM in a CMS/framework

You can embed OSM in your favourite content management system (CMS):

CMS/frameworkModule/pluginNoteSourcesTutorialExample
with OSM map embedded
CMS Made SimpleOsm TagModule based on OpenLayersGitHubDocumentation in manpage
CMS Made SimpleLeaflet TagModule based on LeafletGitHubDocumentation in manpage
DjangoGeoDjangoA world-class geographic web frameworkIncluded in the Django frameworkA world-class geographic web frameworkgeodjango-basic-apps
DjangoOSMEditorold! from year 2009Editors/Django#Installation
Django-CMSdjango-cms-osm
DrupalDrupalMappingKitCollection of Drupal modules to support custom mappingDrupal tutorial from MapBox MapBox
DrupalLeaflet moduleLeaflet module
DrupalOpenLayers moduleOpenLayers module
Joomlainjooosm
JoomlaOSModulModule based on Leaflet and supports markers
Java Server FacesJSF2LeafPowered by Leaflet
MediawikiMultiMapsUses Leaflet or Google Maps API (configurable)Wikimedia GerritThis wiki!In the tutorial
MediaWikiSimple imageDepends on a reliable map image provider like StaticMapLite used to beThis wiki!
MediaWikiSlippy MapPowered by OpenLayersThis wiki!This wiki!
MediaWikiKartographerPowered by LeafletMediaWiki wikiWikivoyage
MediaWikiMapsPowered by OpenLayersManual
MediaWikiSemantic MapsRequires Semantic MediaWikiManual
MoinMoinmoinmoinosmMacro for MoinMoinFlisol
Novius OSOunziw OSMiframe style OSM mapGitHub
Tiki Wiki CMS Groupwarebuilt-inVia OpenLayers
Typo3DE:Typo3
WordPressOSM WordPress PluginAlso adds gpx and kml filesDownloadSimple sample

See also:

  • Cartaro is a framework for embedding maps in different CMSes, especially Drupal.

Sources of tiles


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".
This article is issued from Openstreetmap. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.