Please note — we have deprecated this plugin in favor of a new Mapbox-related plugin. Please migrate to https://wordpress.org/plugins/mapster-wp-maps as this plugin is no longer supported.
  1. Home
  2. Docs
  3. Shortcode
  4. Map Types

Map Types

Single Maps display one Mapbox Studio style at a time. You need only to specify a style.

Multi Maps accept multiple Mapbox Studio styles, and titles for those maps. These will appear on an overlay on your map with a simple radio button switcher.

Both Single and Multi Map shortcodes accept all other attributes, such as zoom, center, height, etc.

Example

Single Map

[wp_mapbox_gl_js 
   style="mapbox://styles/mapbox/streets-v10"]

Multi Map

[wp_mapbox_gl_js 
   styles="mapbox://styles/mapbox/outdoors-v10,mapbox://styles/mapbox/light-v9" 
   titles="Outdoors,Light"]
Was this article helpful to you? Yes No

How can we help?