前言介紹
- 這款 WordPress 外掛「OS DataHub Maps」是 2020-09-06 上架。
- 目前有 200 個安裝啟用數。
- 上一次更新是 2025-04-25,距離現在已有 9 天。
- 外掛最低要求 WordPress 4.5 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.6.0 以上。
- 有 14 人給過評分。
- 論壇上目前有 2 個提問,問題解答率 100% ,不低,算是個很有心解決問題的開發者團隊了!
外掛協作開發者
外掛標籤
map | Riding | cycling | walking | ordnance survey |
內容簡介
這個外掛可以使用在 2020 年推出的新 Ordnance Survey Data Hub 平台中插入地圖到網頁或文章中。它能以傳說中的精細地形細節,顯示英國的 Ordnance Survey 地圖,非常適合用來做步行、騎腳踏車、騎馬或其他戶外活動。此外,你可以加入 GPX 檔案的路線、高度配置和標示有趣地點的標記。
使用這個外掛是接續之前的 OS OpenSpace Maps。透過新的 OS Data Hub 和其套件的 APIs,你現在可以使用 1:25,000 Explorer 地圖和 1:50,000 Landranger 系列。另外免費允許的使用次數更加優渥,通常每月可使用 2,000,000 次。
此外,本外掛使用 Leaflet.js 顯示地圖,提供乾淨的介面和共鳴滑動感受,且具備簡單的縮放控制、全屏顯示和列印功能。在文章、頁面或自訂文章類型中的任意位置加入 [osmap] 的詞句即可顯示地圖。
地圖是透過 shortcode attributes 來設定的,而這些屬性已經多到無法在此 Readme 檔案中描述所有。如需完整的說明,請查看外掛主頁面。
其他 Shortcodes
使用 [osmap_marker color=red] 直接內嵌標記圖示來說明地圖內容並與您的文字內容連結。
使用 [osmap_link marker=1 zoom=8] 連結中加入 marker_link=link 屬性與文字搭配使用,當點選連結時,頁面會滾動到相同位置、縮放到標記位置並且開啟標記。
範例
[osmap] 在預設高度和縮放率下顯示一張地圖,中心點設在南安普敦的 OS 總部。這是最簡單的方法來測試此外掛是否運行正確。
[osmap height="300" width="300" color="blue" gpx="http://www.example.co.uk/myfile.gpx"] 開啟一個 300 像素乘 300 像素大小的視窗,其中包含一條藍色的跟踪路徑。
[osmap markers="NY2000008000;Wasdale"] 顯示預設大小和縮放率的視窗並在其上標示"Wasdale"的地點。
從 OS OpenSpace Maps 遷移
Ordnance Survey 已將 OpenSpace Maps 服務遷移,現在改以 Data Hub Maps 服務為主。本外掛的作用是提供一個無縫的升級體驗,並且可以使用相同的 shortcode,支持所有相同的屬性
Data Hub 服務是 OpenSpace 的大幅升級版,允許使用優秀的 1:25,000 Explorer 地圖。而且免費使用次數更加寬廣,通常每月可使用 2 百萬次。
此外,本外掛本身也是一個重大的更新,比最初的 OpenSpace 外掛提供了更多功能。
原文外掛簡介
This plugin allows maps to be inserted into a page or post using the new Ordnance Survey Data Hub platform which launched in 2020. It displays UK Ordnance Survey maps with their legendary level of topographical detail, making them ideal for walking, cycling, riding, and just about anything outdoors-related. You can add routes from GPX files, elevation profiles, and markers for points of interest.
The plugin takes over where the previous plugin, OS OpenSpace Maps, left off. Using the new OS Data Hub and its suite of APIs, you now have access to the full 1:25,000 Explorer mapping as well as the 1:50,000 Landranger series. And the free allowances are a lot more generous, offering typically 2,000,000 map views per month.
This plugin uses Leaflet.js to display the maps, giving a clean interface and a responsive feel with easy zoom control, full screen view and even printing. Insert the [osmap] shortcode anywhere in your post, page or custom post type content to display a map.
The map is set up using shortcode attributes, and there are now more of these than can be described in this Readme file. For full details, please check the plugin homepage.
Additional Shortcodes
Display one of the marker icons inline with your text using [osmap_marker color=red]. This may be used to add annotation to your maps.
Use [osmap_link marker=1 zoom=8] in conjunction with marker_link=link attribute to embedded a link within text on the page. When clicked, the map will be scrolled into view, zoomed onto the marker position and the marker opened.
Examples
[osmap] displays a map at the default height and zoom level, centred on OS headquarters in Southampton. This is the simplest way to test that the plugin is working.
[osmap height="300" width="300" color="blue" gpx="http://www.example.co.uk/myfile.gpx"] displays a 300px by 300px window containing a blue track from the file specified.
[osmap markers="NY2000008000;Wasdale"]shows a default size and zoom window with a marker placed and the popup text “Wasdale”
Migration from OS OpenSpace Maps
Ordnance Survey has now shut down the OpenSpace Maps service. This plugin aims to give a seamless upgrade to use the new Data Hub Maps service instead. It uses the same shortcode and all the same attributes are supported.
The Data Hub service is a significant upgrade from OpenSpace, allowing use of the excellent 1:25,000 Explorer mapping. It also has a much more generous free data allowance, typically 2 million map views per month.
The plugin itself is also a major upgrade, with many more features than the original OpenSpace plugin.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「OS DataHub Maps」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.0 | 1.0.1 | 1.0.2 | 1.0.3 | 1.0.4 | 1.0.5 | 1.0.6 | 1.0.7 | 1.0.8 | 1.0.9 | 1.1.0 | 1.1.1 | 1.1.2 | 1.1.3 | 1.2.0 | 1.2.1 | 1.2.2 | 1.3.0 | 1.3.1 | 1.4.0 | 1.4.1 | 1.4.2 | 1.4.3 | 1.4.4 | 1.4.5 | 1.5.0 | 1.6.0 | 1.6.1 | 1.6.2 | 1.7.0 | 1.7.1 | 1.8.0 | 1.8.1 | 1.8.2 | trunk | 1.0.10 | 1.0.11 |
延伸相關外掛(你可能也想知道)
WP-Strava 》本外掛使用 Strava API 在您的 WordPress 網站上嵌入運動員的地圖和活動。包括數個小工具和簡碼,可顯示地圖和活動摘要。, , 區塊:, , 在 WordPress 5.0 及...。
WP-Routes Plugin 》WP-Routes 外掛可讓您將路線嵌入 WordPress 文章和頁面中。這是為了專門為自行車手、山地車手、慢跑者、散步者、徒步者、游泳者、划船者、帆船者、摩托車手和...。
Simply Strava 》一個 WordPress 外掛,可以在側邊欄中顯示 Strava 活動(里程)的最近幾週數據。。
RunPress 》您是否想在自己的網站上顯示您在 Runtastic.com 上的運動活動?這不再是問題。, RunPress 讓您能夠使用您的 Runtastic 帳戶名稱和密碼查詢 Runtastic 網站。...。
CycloPress 》CycloPress 是一個 WordPress 外掛,可讓你從自行車電腦追蹤你的自行車騎行統計數據。, 你甚至可以在你的部落格中建立一個專頁,以展示你的自行車統計數據和...。
Bike Events 》透過在側邊欄上列出未來的自行車騎乘、競賽和活動的全面清單,並附上更多資訊的連結。, 選擇美國的郵遞區號,此外掛將在搜尋半徑內找到附近的活動。, 挑選要...。