Linux 软件免费装
Banner图

Yandex Maps for Gutenberg

开发者 al5dy
更新时间 2026年10月29日 21:33
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv3 or later
版权网址: 版权信息

标签

gutenberg map block markers clustering yandex maps

下载

2.0.0 2.0.1 1.0.0

详情介绍:

Yandex Maps for Gutenberg adds interactive maps to WordPress without shortcodes or custom code. Insert the Yandex Map block, set its location and appearance in the inspector, and watch the live preview. This is an independent community plugin, not affiliated with, endorsed by, or sponsored by Yandex. It uses the Yandex Maps JavaScript API under Yandex's API terms. Made for WordPress editors Performance, privacy and accessibility Map assets load only where the block is used; maps initialize near the viewport or after a visitor clicks Activate map. Each map uses a Web Component with keyboard controls, reduced-motion handling, accessible errors and a Yandex Maps fallback. Map customization Create structured markers with coordinates, titles, descriptions, categories, addresses, safe links, colors, image icons, sizes and stacking order. Advanced users can apply validated Yandex customization JSON. Inline maps support up to 1,000 markers with client-side clustering; large store-locator datasets are not included. A Yandex Maps JavaScript API v3 browser key is required. Browser keys are public by design: restrict yours by HTTP Referer in the Yandex developer dashboard. How it works
  1. Add the Yandex Map block in Gutenberg.
  2. Configure the map in the block inspector while the preview updates.
  3. Publish. The frontend loads the shared Yandex SDK only when needed, with an independent controller per map.

安装:

  1. In WordPress, open Plugins > Add New, search for Yandex Maps for Gutenberg, then install and activate it, or upload the plugin ZIP.
  2. Create a Yandex Maps JavaScript API v3 key in the Yandex Developer Dashboard.
  3. Restrict the key to your site's HTTP Referers, and include staging domains only when they need maps.
  4. Open Settings > Yandex Maps, enter the key and select the map language. Use Check API key to verify it for this site.
  5. Add the Yandex Map block to a post or page and configure it in the inspector.

屏幕截图:

  • A responsive published map with markers and frontend controls.

升级注意事项:

2.0.1 This release updates the public plugin name, documentation and release infrastructure. Existing maps and block identifiers remain compatible. 2.0.0 Existing blocks retain their original block name and render through the legacy compatibility layer. Configure a Yandex Maps JavaScript API v3 key after upgrading.

常见问题:

Is an API key required?

Yes. A missing or rejected key produces an accessible error and fallback link rather than a blank map.

Why does the map say "The map could not be loaded."?

Administrators see the cause and a settings link. Common causes are a missing key, HTTP Referer restrictions that omit the current domain, network blockers, Content Security Policy, or a timeout. Use Check API key under Settings > Yandex Maps.

Why can I not drag or zoom the map in the editor?

The preview is intentionally gesture-locked so block editing remains predictable. Use the inspector; enabled behaviors still work on the published page.

Can I use several maps on one page?

Yes. The SDK is shared per document realm, while each block has independent settings and lifecycle.

Does it work with classic and block themes?

Yes. WordPress block supports control layout, and Shadow DOM isolates the map from theme CSS. A light-DOM fallback covers older environments.

Can I customize markers and loading?

Yes. Use the bundled icon catalog or a safe HTTP(S) image URL, and configure popup content and hints. Loading can be lazy or click-activated, with an optional spinner, dots or pulse preloader.

Can I add arbitrary marker HTML or JavaScript?

No. Marker content is rendered as text, URLs are restricted to safe HTTP(S) values, and executable code is never stored in block attributes.

Is this a large store-locator solution?

No. Inline markers are limited to 1,000 per block. Server-side viewport queries, large datasets and locator cards are not included.

更新日志:

2.0.1 2.0.0 1.0.1 1.0.0