Home

Awesome

CMB2 Roadway Segments

CMB2 Roadway Segments Banner

This plugin adds a new CMB2 fieldtype for drawing roadway segments onto a map and provides a shortcode for display.

In Action

Description

This plugin extends CMB2 by adding a new fieldtype called 'snapmap' that allows the user to highlight segments of roadway using Google's snap-to-road API. It also allows the user to drop a map pin in the same field. This data can then be displayed on the front-end using the [snapmap] shortcode.

This plugin requires CMB2 and a Google Maps API key.

The Google Maps API key must have access to the Google Maps JavaScript API.

Unless you disable the associated features during plugin configutation, you will also need to enable:

Features

Usage

Visit the wiki for documentation about adding the field to CMB2 and displaying maps on your site.

Screenshots

  1. Plugin settings.
  2. The CMB2 field.
  3. Front-end display via shortcode.

Installation

  1. Upload the cmb2-roadway-segments folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Add a snapmap field to a CMB2 metabox.
  4. Place [snapmap] anywhere in a post's content to render a map.

Frequently Asked Questions

Does this plugin support custom map markers?

Yes, but only by using the template tag.

Can I display a map of all map markers?

Also yes, but only by using the template tag.

Changelog

1.0.0-beta5

Changes:

1.0.0-beta4

Changes:

0.9.11

This release includes tweaks to circle geometry opacity and adds support to hide the map marker's tooltip field via a field argument.

0.9.10

This release includes an early release of the CMB2_RS_Map class, which can be used to better build complex maps.

0.9.9

Changes:

0.9.81

Added the capability of attaching content to the map by CSS ID using the snapmap_build_single() function.

0.9.8

Added the capability to display multiple maps on one page using the snapmap_build_single() function by passing a unique ID for additional maps.

0.9.71

Added the ability to enable the terrain overlay for maps generated by the snapmap_build_single() function.

0.9.7

0.9.61

GeoJSON copy-and-paste:

0.9.6

0.9.5

0.9.4

0.9.3

0.9.2

0.9.0