WP Manifestindependent plugin directory
manifest / editor / vsge-mapbox-block

vsge-mapbox-block WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

The Mapbox Gutenberg Block is a powerful WordPress block that allows you to easily integrate Mapbox maps into your content with extensive customization options. You can create interactive maps with features like custom markers, popups, filters, and more.

★ 3stars
24release downloads
≈10active sites
v1.1.1latest · 2 years ago

Install

Download vsge-mapbox-block.zip From the v1.1.1 release on GitHub, Jul 4, 2024

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/vsg-emea/vsge-mapbox-block/releases/download/v1.1.1/vsge-mapbox-block.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Mapbox Gutenberg Block for WordPress

The Mapbox Gutenberg Block is a powerful WordPress block that allows you to easily integrate Mapbox maps into your content with extensive customization options. You can create interactive maps with features like custom markers, popups, filters, and more.

image

Features

  • Interactive Maps: Display beautiful Mapbox maps on your WordPress site.
  • Custom Markers: Add custom markers with icons and colors of your choice.
  • Popup Listings: Clicking on a marker shows a popup with listing data.
  • Filtering: Add custom tags and terms to each marker listing and filter the map items by those tags or terms.
  • Geocoder: Easily locate places using the geocoding feature.
  • Camera Control: Fine-tune camera settings, including Latitude, Longitude, Pitch, Bearing, Zoom, and more.
  • 3D Rotation: Rotate the map for a 3D perspective.
  • Zoom Control: Zoom in and out with the mouse wheel.
  • Map Styles: Choose from various map styles.
  • Map Projection: Select the projection type.
  • Map Height: Customize the height of the map.
  • Non blocking plugin load: This block takes advantage of webpack's dynamic loading to minimise the impact of mapbox plugin loading times on the pages of your site

Installation

  1. Clone or download this repository.
  2. Upload the plugin folder to the wp-content/plugins/ directory of your WordPress site.
  3. Run npm ci and npm run build from the plugin directory when building source assets.
  4. Activate the plugin from the WordPress admin panel.

Usage

  1. Create or edit a post or page in the WordPress block editor.
  2. Add a new block and search for "Mapbox Map" or similar.
  3. Configure the map settings, including markers, filters, camera settings, and more.
  4. Publish or update your post/page to display the interactive map.

Obtaining a Mapbox Token

To use Mapbox GL in your project, you'll need a Mapbox Token. Mapbox offers a pay-as-you-go plan that allows you to use Mapbox for free up to a certain limit (please refer to the price page of mapbox).

Here's how to get your Mapbox Token:

  1. Create a Mapbox Account: If you don't already have one, you can create a free Mapbox account by visiting Mapbox Account Creation Page. Sign up and log in here.
  2. Access Token Management: After logging in, you'll be directed to your Mapbox Account Landing Page. Here, you'll find options for managing your Mapbox tokens.
  3. Create a New Token or Use Default Public Token: You can either create a new token by following the on-screen instructions or use your Default Public Token. Remember to keep your token safe and confidential.

Configuration

Configure the public browser token in Settings → VSGE Mapbox, or keep the existing MAPBOX_TOKEN constant in wp-config.php. The constant takes precedence over the admin setting.

The block keeps its established mapboxOptions listing, tag, filter, and icon data contract. Existing blocks require no migration. For large datasets, the editor uses a searchable, country-filtered dealer list with 25-item pages and opens one selected dealer editor at a time; the frontend behavior remains separate.

Dev (wp-env)

You can use wp-env to develop with mapbox-block, all you have to do is create a .wp-env file and add this (remember to add your key)

{
  "plugins": ["."],
  "core": null,
  "config": {
    "MAPBOX_TOKEN": "MYKEY-MYKEY1MYKEY2MYKEY3MYKEY4MYKEY5MYKEY6"
  }
}

License

LICENSE DECISION REQUIRED: LICENSE.md is GPL-3.0 while the plugin header and package metadata declare GPL-2.0-or-later. This modernization does not relicense the plugin; Erik must choose the canonical license before release.

Acknowledgments

  • This Gutenberg block is powered by Mapbox, an amazing mapping platform.
  • Special thanks to the WordPress community for their support and contributions.

Contributing

Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.

Screenshots

image image

Support

If you have any questions or need assistance, please open an issue in this repository, and we'll be happy to help.

Releases

4 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
v1.1.1 latest
Jul 4, 2024 2 years ago
vsge-mapbox-block.zip
10
Feb 22, 2024 2 years ago
vsge-mapbox-block.zip
4
Nov 17, 2023 2 years ago
vsge-mapbox-block.zip
5
Oct 25, 2023 3 years ago
vsge-mapbox-block.zip
5

Active-site estimate ≈10 comes from the median of recent superseded releases. Method.

A grade

Security

vsge-mapbox-block 1.0.2 · audited by WP Registry

No security issues found.

Audited release
1.0.2
Findings
none
Worst severity
—
Content hash
0d1e7cf9cb84242a927f5e1f…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.