
內容簡介
Out of the Block: OpenStreetMap 是一款專為 Gutenberg 設計的地圖外掛,使用 OpenStreetMap 和 Leaflet.js,無需 API 金鑰即可即裝即用。它提供簡單直觀的介面,讓使用者輕鬆地在地圖上添加和編輯標記,並支援多種功能以提升使用體驗。
【主要功能】
• 無需 API 金鑰,安裝後即可使用
• 支援多個標記及自訂圖示
• 支援多邊形和折線
• 標記聚合,將附近標記分組
• 簡單的介面,點擊地圖即可添加標記
• 支援地點搜尋,透過關鍵字查找位置
外掛標籤
開發者團隊
② 後台搜尋「Out of the Block: OpenStreetMap」→ 直接安裝(推薦)
📦 歷史版本下載
原文外掛簡介
A map block for Gutenberg which uses OpenStreetMap and Leaflet.js. It needs no API keys and works out of the box (or, out of the Block, if you prefer). Benefiting from Gutenberg’s potential, the plugin tries a different take on how to add your locations on the map and rethinks a few things, UX-wise.
Instead of manually adding coordinates for each one of your markers, just click-and-drop them directly on the map. You want to adjust their position? Just drag them wherever you want. And instead of filling-in custom fields to set each marker’s popup content, just open that popup and start writing in it, the Gutenberg way (it supports WYSIWYG editing, with links, images, and all). It even stores the map’s zoom level as you use it so that you don’t have to set it by hand.
Follow the project’s development on GitHub
Release history
Roadmap
Hooks🪝
Shortcodes
Features
No need for API keys. Just install and use it.
Support for multiple markers.
Support for a different icon per marker.
Support for polygons and polylines.
Marker clustering: group nearby markers into clusters that expand as you zoom in.
Dead-simple interface. Don’t search for coordinates and don’t get overwhelmed by too many fields when using multiple markers. Just point and click on the map to add your marker where you want it and edit it’s popup content directly from there.
Place search. Find locations by typing keywords.
Remembers the zoom that you set when adding the markers and stores it so that you don’t set it by hand (which you can do anyway if you prefer).
AI integration which allows you to add markers by using commands in natural language. Just say “please” to activate (e.g. “Please, show me where GOT was filmed”). Requires an API key from an AI Provider. Read more.
Query Maps: Supports creating a map out of maps added on other posts or post types. This can be quite powerful when, for example, you have a custom post type for “Places” with each place having its own map, and you want to dynamically gather-up all the places on a single map.
Shortcode support: You can use the shortcode [ootb_query] as an alternative way to use the aforementioned Query Maps feature (see the FAQ for more info).
Support for a location custom field, which can be used to store a post’s or post type’s location, following the Geodata guidelines. Read more in the v.2.8.0 release notes.
Adjust the map height.
Change the default marker icon with a custom one.
Enable or disable map dragging.
Enable or disable touch zoom.
Enable or disable double-click zoom.
Enable or disable scroll wheel zoom.
Set a minimum and maximum limit that the user can zoom on the frontend. Setting the same value to both fields will lock the zoom at that level.
Support for other Layer Providers: MapBox (using your own API key) and Stamen.
Option to export locations in a JSON file
Option to import locations from a JSON file
