[WordPress] 外掛分享: FF Communitymap

WordPress 外掛 FF Communitymap 的封面圖片。

前言介紹

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

外掛協作開發者

andibraeu |

外掛標籤

wifi | freifunk | community map |

內容簡介

d the jQuery FreeControl API script for the FreiFunk community map.

這個外掛提供一個簡碼來顯示著名的 Freifunk 社區地圖:[ffcommunitymap]

它可以完全設定以嵌入自己的來源。下列選項可用:

geojsonurl

預設值:“//api.freifunk.net/map/ffGeoJsonp.php?callback=?”
說明:帶有 API 數據的 URL,我們在那裡需要 jsonp

hidelocationbutton

預設值:0
說明:

hidelayercontrol

預設值:0
說明:隱藏或顯示圖層框

hideinfobox

預設值:0
說明:隱藏或顯示信息框

feedurl

預設值:“//api.freifunk.net/feed/feed.php”
說明:由 https://github.com/freifunk/feed.api.freifunk.net 提供的一個提要

newscontentlimit

預設值:3
說明:新聞條目數量

eventscontentlimit

預設值:2
說明:活動條目數量

postcontentlength

預設值:30
說明:活動標題長度

zoomlevel

預設值:5
說明:頁面加載時的默認縮放等級

scrollandzoom

預設值:1
僅供鼠標滾輪或一指觸控啟用滾動和縮放

center

預設值:[51.5,10.5]
說明:地圖的初始中心

divid

預設值:“map”
說明:顯示地圖的 div ID

showevents

預設值:0
說明:在社區彈出窗口中顯示活動

shownews

預設值:0
說明:在社區彈出窗口中顯示新聞

mapboxid

預設值:“mapbox.streets”
說明:您的 Mapbox 圖塊的 ID

mapjs

預設值:“//api.freifunk.net/map/community_map.js”
說明:到社區 js 文件的鏈接

popuptype

預設值:“community”
說明:用於不同用途的彈出窗口類型

另一個簡碼是用於顯示社區表格:[ffcommunitytable]

可用選項包括:

summaryurl

預設值:“//api.freifunk.net/map/ffApiJsonp.php?mode=summary&callback=?”
說明:帶有 API 數據的 URL,我們在那裡需要 jsonp

columns

預設值:“city,name,firmware,routing,nodes,contact”
說明:選擇可用列,逗號分隔

number_communities

預設值:“3”
說明:在搜索中顯示的社區數量

enable_zip_search

預設值:“1”
說明:啟用郵政編碼/城市搜尋

nominatim_email

預設值:“[email protected]
說明:提供給 nominatim 查詢以避免濫用的電子郵件

[ffapijs] 簡碼只需加載 FreiFunk 社區地圖的 jQuery FreeControl API 腳本。

原文外掛簡介

This plugin provides a shortcode to display the well known freifunk community map: [ffcommunitymap]
It is fully configurable to embed your own sources. These options are available:

geojsonurl

Default: “//api.freifunk.net/map/ffGeoJsonp.php?callback=?”
Description: URL with API data, we need jsonp there

hidelocationbutton

Default: 0
Description:

hidelayercontrol

Default: 0
Description: hide or show layer box

hideinfobox

Default: 0
Description: hide or show info box

feedurl

Default: “//api.freifunk.net/feed/feed.php”
Description: a feed provided by https://github.com/freifunk/feed.api.freifunk.net

newscontentlimit

Default: 3
Description: number of news entries

eventscontentlimit

Default: 2
Description: number of event entries

postcontentlength

Default: 30
Description: length event headlines

zoomlevel

Default: 5
Description: default zoom level on page load

scrollandzoom

Default: 1
Enable scroll and zooming by mouse wheel or one-finger-touch

center

Default: [51.5,10.5]
Description: initial center of map

divid

Default: “map”
Description: div id where map should be displayed

showevents

Default: 0
Description: show events in community popup

shownews

Default: 0
Description: show news in community popup

mapboxid

Default: “mapbox.streets”
Description: id for your mapbox tiles

mapjs

Default: “//api.freifunk.net/map/community_map.js”
Description: link to community js files

popuptype

Default: “community”
Description: type for popups for different purposes

Another shortcode is for displaying a community table: [ffcommunitytable]
Available options are:

summaryurl

Default: “//api.freifunk.net/map/ffApiJsonp.php?mode=summary&callback=?”
Description: URL with API data, we need jsonp there

columns

Default: “city,name,firmware,routing,nodes,contact”
Description: select available columns comma separated

number_communities

Default: “3”
Description: number of communities displayed in search

enable_zip_search

Default: “1”
Description: enable zip/city search

nominatim_email

Default: “[email protected]
Description: email provided to nominatim queries to avoid abuse

The shortcode [ffapijs] simply loads ffctable.js and dependencies for use API data in pages and posts.
Example code to embed a selction of email addresses of communities:

Adresse
* [text* your-street placeholder "Straße"]
* [text your-location id:zipinput placeholder "Postleitzahl und Ort"]

Communities
* [select your-communities id:mycommunities multiple]

[submit "Senden"]

各版本下載點

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

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


2.1 | 3.0 | 3.1 | 4.0 | 4.1 | 4.2 | 4.3 | trunk |

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

  • WP MAPGrip 》建立您的社群地圖,並從其他人分享的地圖中發現地點, 任意部分。

文章
Filter
Mastodon