Zh-hant:Beginners Guide 1.5

From OpenStreetMap Wiki
Jump to navigation Jump to search

渲染地圖!(Render maps!)

在你添加了數據、加上了標籤,並上傳到了OSM之後,根據你的需要使用下面的步驟之一可以讓你看到你對地圖所作的改變。

1. 在電腦上使用渲染工具將上傳的數據 自行渲染 成圖像。OpenStreetMap 提供三種不同的渲染工具:

  1. Osmarender:一個基於可擴展樣式表語言轉換 (XSLT) 的渲染器,能夠創建可縮放矢量圖形(SVG),SVG可以用瀏覽器觀看或轉換成位圖。
  2. Mapnik:一個用C++寫的非常快的渲染器,可以生成位圖(png、jpeg)和矢量圖形(pdf, svg, postscript)。


2. 讓數據顯示在 OpenStreetMap 的主頁slippy map(濕滑地圖) 上。在主頁的右上方有一個「+」。點擊「+」後會出現一個包括「Mapnik」和「Osmarender」的基礎層的選項。分別顯示對應的渲染器生成的地圖。

  1. Mapnik:Mapnik 基礎層通常是一小時內更新。
  2. tiles@home/Osmarender:Osmarender 基礎層應該在數據上傳後自動更新。如果沒有自動更新或者你想看到快速的更新,請使用 Informationfreeway 主頁,放大圖像到 12 層然後在想更新的圖塊上按 ctrl+click。更多的資料在這裡:FAQ。更新請求會發送到 tiles@home/Osmarender。過段時間後你會發現更新的圖塊已經包括你的改動了。你可能必須刷新頁面才能看到它。


使用地圖

You're probably not only interested in making and extending the map, but using it for your own purposes, depending on the kind of interests you have and the envisaged application of the slippy map. Some of the options listed on this Wiki will get you going:

  • When you do not require dynamic maps, based on up-to-date OSM data, exporting an image and using it in your own work is the best option. This is also the option you'll have to choose if you're making static print media (e.g., brochures and posters).
  • Embedding the map on your website is likely to be the easiest and is likely to require the least technical knowledge. On the other hand, there are no direct advanced options for representing data and the interface.
  • Place the map on your own website by using JavaScript. This option allows you to customize the map, and the interface, to some extent.
  • Create your own map based on the OSM data. Possibly the most flexible option in terms of what you can do. It comes at the cost, however, of more specialised technical knowledge and additional requirements to hard- and software.

Developing your own applications is also possible by using and re-using OSM components. An overview of the components is a good place to start when you're interested in making your own advanced, OSM-based, applications.


返回上頁 下一頁