[WordPress] 外掛分享: FF Communitymap

首頁外掛目錄 › FF Communitymap
WordPress 外掛 FF Communitymap 的封面圖片
全新外掛
安裝啟用
尚無評分
1882 天前
最後更新
問題解決
WordPress 3.6+ v4.3 上架:2015-11-01

內容簡介

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 腳本。

外掛標籤

開發者團隊

⬇ 下載最新版 (v4.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「FF Communitymap」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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"]

延伸相關外掛

文章
Filter
Mastodon