[WordPress] 外掛分享: SALT Map

前言介紹

  • 這款 WordPress 外掛「SALT Map」是 2014-01-09 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2015-01-07,距離現在已有 3770 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.8.0 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

samuelerdtman |

外掛標籤

map | SALT | locations | Google Maps |

內容簡介

此外掛可使用 Google 地圖來將位置在地圖上視覺化,並建立一個針對位置的自訂文章類型,並具有像地址和其他資訊等自訂欄位的可能性,該資訊將會在模板的幫助下格式化為資訊窗格。通過在地圖外放置資訊窗口,可以為小屏幕的裝置適當地運作。

除了顯示位置外,它還支援搜尋位置和自動完成。搜尋將在所有關於位置的資訊中進行,但不是所有資訊都需要按照模板顯示。

可以使用簡碼在任何頁面或文章上放置地圖。透過給簡碼參數提供全局值,可以覆寫位置並對每個地圖進行篩選。有關詳細信息,請參閱下面的簡碼部分。

模板

資訊窗格按照在全局設置中設置的模板進行格式化,它基於 mustache.js 模板框架。在外掛分發版本中有一個名為 template_example.html 的示例模板,該模板引用的是 ID 。

樣式設置

此掛件添加了 salt_map.css,可用於添加風格到信息窗格。

API 金鑰

目前此掛件仍可在未向 Google 註冊 API 金鑰的情況下運作,但為保證其可靠性,建議您註冊自己的金鑰。這裡有一些關於如何從 Google 獲得 API 金鑰的說明。

簡碼

此 salt 地圖已整合了簡碼“salt_map”。它有幾個參數。所有設置資料都可以透過簡碼參數進行覆蓋,請參閱下方的“可用參數”列表。如果要在一個頁面上有多個地圖,則instanceName參數是必需的。

可用參數

height,此地圖實例的高度。
lat,中心緯度。
lng,中心經度。
zoom,初始縮放級別。
gridSize,位置分組的限制
maxWidth,信息窗格的最大寬度
includeSearch,設置為true後,添加搜尋欄位
largeScreenLimit,顯示資訊窗格在地圖內或外的螢幕大小限制。
filterAttribute,指定要篩選位置的屬性。此參數的filterValue必須設置為才能運作。
filterValue,指定要篩選屬性的值,使用LIKE進行比較。此參數的filterAttribute必須設置才能運作。

範例
[salt_map height=500px instanceName=First]

依賴

Markercluster
Google 地圖 API
mustache.js

已知限制

我們所知道的限制。

原文外掛簡介

Uses google maps to visualise locations on a map. Creates a custom post type for locations and the possibility to have custom fields like address and other information. Then the information is formated for the info window with help of a template. By having the possibility to place the info window outside the map for small screens it functions well for mobile device too.
In addition to displaying the Locations it has support for search among locations with auto completion. The search will be one in all information about the location but all information does not have to be displayed by the template.
The map can be placed on whatever page or post you like with a short code. By giving the short code parameters global values can be override and locations can be filtered for each map. see short code section below for more details.
Templating
The info window is formated according to a template that is set in the global settings it is based on mustache.js tempting framework. There is an example template in the distribution of the plugin named template_example.html. It is the id that is refereed in the template.
Styling
The plugin adds the salt_map.css which can be used to add style to the info window.
API Key
The plugin will work for now without registering a API key with google since mine still is active but for reliability it is recommended to register your own. Here are some instructions on how to get an API key from Google.
Short Code
The salt map is integrated with the short code ‘salt_map’. It has several parameters. All
settings data can be override through the short code parameters, for a list of parameters
se “Available parameters” here below.
If you want to have several maps on one page then the instanceName parameter is mandatory.
Available parameters

height, hight of this map instance.
lat, inital center latetude.
lng, inital center longitude.
zoom, inital zoom.
gridSize, limit for when to group locations
maxWidth, max width of infowindow
includeSearch, Add the search field by setting to true
largeScreenLimit, screen size limit for when to display infowindow insode or outside map.
filterAttribute, specifies an attribute to filter locations on. filterValue has to be set for this parameter to function.
filterValue, specifies the value to filter attribute on, comarisone is made with LIKE. filterAttribute has to be set for this parameter to function.

Example
[salt_map height=500px instanceName=First]

Dependencies

Markercluster
Google maps API
mustache.js

Known Limitations

None that we know of

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「SALT Map」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


最新版本

延伸相關外掛(你可能也想知道)

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon