[WordPress] 外掛分享: Geo Masala

首頁外掛目錄 › Geo Masala
WordPress 外掛 Geo Masala 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
10+
安裝啟用
★★★★★
5/5 分(1 則評價)
2292 天前
最後更新
問題解決
WordPress 4.9.6+ PHP 5.6+ v0.1.4 上架:2018-07-13

內容簡介

## 廢棄
此專案已不再活躍,不建議使用。
此外掛僅適用於WordPress版本<5.0和古騰堡外掛。但它不適用於任何目前的版本!
僅供參考

基於Leaflet的高度可定制的Gutenberg地圖區塊

直接在 Gutenberg 區塊內自訂地圖及其功能
繪製和編輯功能。標記、線條、多邊形......
自定義功能外觀。圖標/陰影,顏色,不透明度,類名......
使用所見即所得編輯器編輯彈出內容。在彈出內容中使用圖像/視頻/音訊
自訂地圖本身。尺寸、底圖層、控制項......
地圖功能可共用,可在用戶和帖子之間使用(取決於功能設置)

Geo Masala 在 GitHub 上。它是開源的,自由的,免費的,並將保持免費。

如何使用

使用Gutenberg編輯任何帖子,添加一個“Geo Masala地圖”區塊,保存後完成。您的帖子將顯示地圖。

繪製一些功能或從功能面板中選擇一些。

新功能的默認狀態為草稿,只顯示發布的功能。
要從其他帖子/用戶獲取功能,打開功能面板並調整篩選器。

編輯功能,更改狀態、圖標或顏色,更改彈出內容和標題。
打開地圖設置面板,自定義控件。
為單個功能更改功能共享設置,並在其他帖子中重複使用功能
……

在 WordPress 版本低於 5.0 的情況下需要安裝 Gutenberg 編輯器外掛,請參閱 要求

什麼是功能?

功能一詞用於制圖上下文。地圖上的現實世界物體的表示(要素|定義- Esri支持GIS詞典)。
在此外掛中,功能可以表示簡單的位置(標記)、路徑/軌迹(折線)或區域(多邊形/矩形)。
一些屬性與功能一起存儲,例如外觀和彈出內容數據。

外掛如何工作?

功能作為一種帖子類型保存,並且未保存到區塊中!

該外掛註冊了一個新的自定義帖子類型“geom_feature”。每個geom_feature用於存儲一個格式化為geoJSON的單個制圖功能。制圖功能和其他數據(外觀,彈出內容等)被存儲為帖子元數據。
geom_feature是在沒有WordPress UI(列表和編輯畫面)或出現在管理導航或管理工具欄中的情況下進行註冊的。
編輯任何帖子與古騰堡,Geo Masala地圖區塊會顯示一張Leaflet地圖和一些設置面板。所有geom_feature的CRUD操作(創建、讀取、更新、刪除)都在編輯區塊中使用wp rest api及其backbone客戶端進行處理。所有geom_feature的CRUD操作都立即保存(某些ui元素有重置/保存按鈕)。
geom_feature(s)的默認帖子狀態為“草稿”。
功能面板列出geom_features。 地圖上的功能會突出顯示。 如果從地圖中刪除了某個功能,geom_fea

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1.4) 或搜尋安裝

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

原文外掛簡介

## Deprecated
This project is no longer active and not recommended for use.
It works with WordPress version < 5.0 and the gutenberg plugin. But it doesn’t work with any current version! It is left here for reference Highly customizable Map Block for Gutenberg, based on Leaflet Customize the Map and its Features directly from within the Gutenberg Block Draw and edit Features. Markers, Lines, Polygons … Customize Feature-Appearance. Icon/Shadow, Color, Opacity, Class-Names … A Wysiwyg Editor to Edit the Popup-Content. Use Images/Videos/Audios inside the Popup-Content Customize the Map itself. Dimensions, Baselayers, Controls … Map Features are shareable and can be used between users and posts (depending on Features settings) Geo Masala on GitHub.It’s open-source, free as freedom, free of cost and it will remain free. How to use Edit any Post with gutenberg and add a ‘Geo Masala Map’ block, save post and done. Your post will display a map. Draw some Features or select some from the Feature-Panel. The default Status for a new Feature is draft, only published ones are displayed in frontend. To get Features from other posts/users, open Feature-Panel and adjust the Filters. Edit the Feature, change status, icon or color, change the popup content and title. Open the Map Settings Panel and customize the controls. Change the Feature sharing settings for a single Feature, and reuse the Feature in other Posts … The Gutenberg Editor Plugin is required for WordPress versions prior to 5.0, see requirements What is a Feature? The term “Feature” is used in the cartographic context. A representation of a real-world object on a map (feature|Definition – Esri Support GIS Dictionary). Within this plugin, a Feature can represent a simple location (Marker), a way/route/track (Polyline) or an Area (Polygon/Rectangle). A couple of properties are stored with the Feature, eg. appereance and popup-content data. How does the Plugin work? A Feature is saved as a post type, and not saved to the Block! The Plugin registered a new custom-post-type ‘geom_feature’. Each geom_feature is used to store a single cartographic Feature, formatted in geoJSON. The cartographic Feature and other data (appearance, popup-content …) are stored as post-meta. The geom_feature is registered without wordpress ui (List table and editing screen) or appearance in admin-navigation or admin-bar. When editing any post with gutenberg, the ‘Geo Masala Map’ block displays a leaflet map and some settings-panels beneath it. All crud actions (create, read, update, delete) for geom_feature(s) are handled within the editor block using the wp rest api and its backbone client. All geom_feature crud actions are saved immediately (Some ui elements have reset/save buttons). default post_status for geom_feature(s) is ‘draft’. The Features-Panel lists geom_features. Features on Map are highlighted. If a Feature gets removed from map, the geom_feature is still saved and available to use. Therefor a Feature created by one post can be used in another post as well (depending on the individual feature settings). All changes made to a geom_feature are saved immediately and will effect all posts where the Feature is displayed. All attributes related to the map (and not to its features) are stored as block attributes. In Development The Plugin is in early development (and needs a sponsor to go on). Some ui will change and more options will be added. Coming soon hopefully: wiki and tutorials Possibility to draw routes on a map. Import for gpx/geoJSON/kml Method to add altitude and slope values for features Elevation profile for line/routes Color line/routes by z value or slope … Known issues: Currently there is a maximum for hundred Features, will be changed in future. Feature Sharing: The popover control controls if the Feature appears in a Feature-Pool. If it is already in use somwhere, it will still be used, but just not displayed in Feature-Panel. Contribute Most welcome 🙂 Geo-Masala is free and open source. The source is hosted on GitHub. So dig the code as you like. For support, to request new plugin-features or inform me about issues and bugs create a new issue on Github or add a new topic to WP’s support forum Love to get your feedback, Create a new review and rate this Plugin, write a tutorial and tell your friends. Tell me your wishes, maybe get me a bowl of rice and some masala: Donate I’m hungry, cycling around the world and Geo-Masala is coded while sitting wet in a tent during Monsoon somwhere in south himalaya. I appreaciate any kind of donation or sponsorship. Thanks for beautiful ressoucres WordPress, the WP REST API, the Backbone JavaScript Client and the Gutenberg Editor and its components. Backbone, Backbone Marionette, Backbone Deep Model and Backbone Cocktail. React, react-virtualized and react-multi-select Leaflet and Plugins: Leaflet Draw Leaflet Draw Toolbar Leaflet Geosearch Leaflet Loading Leaflet Providers Leaflet Fullscreen Leaflet Toolbar This Plugin is generated with generator-pluginboilerplate version 1.2.3 Background for plugin banner and icon OpenTopoMap …

延伸相關外掛

文章
Filter
Apply Filters
Mastodon