Linux 软件免费装
Banner图

Map Block for Yandex

开发者 al5dy
更新时间 2026年8月22日 01:48
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv3 or later
版权网址: 版权信息

标签

block gutenberg map markers yandex maps

下载

1.0.0 2.0.0

详情介绍:

Map Block for Yandex is a native WordPress block powered by Yandex Maps JavaScript API v3. Create independent, responsive maps and configure them from the block inspector with a live Gutenberg preview. Highlights The plugin does not enqueue the Yandex SDK site-wide. A shared loader is used per document and each block owns an independently disposable map instance. Optional clustering is loaded only when required. Inline marker data is normalized and limited to 1,000 markers and an approximately 1 MiB rendered configuration. You must supply a Yandex Maps JavaScript API v3 browser key and select a Yandex plan suitable for your use. Restrict the key by HTTP Referer in the Yandex developer dashboard. Browser API keys are necessarily visible to browsers and must not be treated as secrets.

安装:

  1. Install the plugin through Plugins > Add New, or upload it to /wp-content/plugins/.
  2. Activate Map Block for Yandex.
  3. Open Settings > Yandex Maps and enter a Yandex Maps JavaScript API v3 key.
  4. Restrict the key to your site's HTTP Referers in the Yandex developer dashboard.
  5. Add the Yandex Map block in the block editor.

屏幕截图:

  • A responsive published map with markers and frontend controls.

升级注意事项:

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. Yandex Maps JavaScript API v3 requires a browser API key. When a key is missing or the SDK fails, the block displays an accessible error and fallback link instead of a blank map.

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

The Gutenberg preview is intentionally non-interactive so block selection and editing remain predictable. Change the viewport and other settings in the inspector; the preview updates immediately without reloading the editor. The behaviors you enable remain available on the published frontend.

Can I disable or customize the loading animation?

Yes. In Loading and interaction, disable the frontend overlay to reveal the map surface immediately. When enabled, choose a spinner, bouncing dots or pulse and customize its colors, size, accessible text and reveal duration.

Can I use more than one map on a page?

Yes. The SDK loads once and each map maintains its own configuration and lifecycle.

Does it work with classic and block themes?

Yes. WordPress block supports control the outer layout, while the map surface is isolated in Shadow DOM. Full-width mode uses a viewport-safe layout and does not create horizontal page scrolling.

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.

Can the block hold a very large store-locator data set?

Inline markers are intended for normal editorial maps and are limited to 1,000 per block. Large locators require bounded server-side viewport queries and are not included in this plugin.

更新日志:

2.0.0 1.0.1 1.0.0