| 开发者 | expressmaps |
|---|---|
| 更新时间 | 2026年11月26日 04:15 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.2 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[expressmaps] shortcode with latitude, longitude, zoom, style, size, marker and popup options.assets/vendor/maplibre-gl/. No scripts are loaded from third-party CDNs.
expressmaps folder to /wp-content/plugins/, or install the ZIP from Plugins > Add New.[expressmaps lat="51.5" lng="-0.12" zoom="13" style="standard" height="400px" marker="true" popup="Our office"]
Shortcode attributes
lat – latitude (-90 to 90). Default 51.5.lng – longitude (-180 to 180). Default -0.12.zoom – zoom level (0 to 22). Default 13.style – one of standard, basic, enhanced, darklands, greyscale, navigator, subtle, autobahn, lithium, mulberry, porcelain, chalk, silver, linen, moss, canvas, meadow, ink, pewter, carbon. Defaults to the style chosen in Settings.height – CSS height, e.g. 400px or 60vh. Default 400px.width – CSS width, e.g. 100% or 600px. Default 100%.marker – true/false, show a marker at the centre. Default true.popup – plain text shown when the marker is clicked.controls – true/false, show zoom/rotate controls. Default true.key – optional API key override for this map.No. The free plan includes 100,000 map loads per month with no card required.
Sign up at https://www.expressmaps.com/signup and create a key at https://www.expressmaps.com/console/keys. Restrict the key to your domain there.
It is sent to visitors' browsers as part of the map style URL, as with any client-side map service. Domain restriction in the console prevents it from being used on other sites. The plugin never prints the key anywhere else and makes no server-side requests.
Yes. Each shortcode or block creates its own map.
Yes, with the style attribute on the shortcode or the Style dropdown in the block.
No. MapLibre renders the map in the browser.
Yes. The plugin always adds the MapLibre attribution control, which displays the OpenStreetMap contributors credit from the style.
[expressmaps] shortcode, "ExpressMaps Map" block with live preview, ten styles.