WP Manifestindependent plugin directory
manifest / content / cmb2-image-map

CMB2 image map field

Add image map field to CMB2

by Igor Honhoff · github.com/dutchigor/cmb2-image-map · website

0stars
25release downloads
7composer installs
0forks

Install

The author publishes release zips, so WP-CLI can install straight from GitHub:

wp plugin install https://github.com/dutchigor/cmb2-image-map/releases/download/v0.4.0/CMB2-image-map.zip

Also on Packagist as dutchigor/cmb2-image-map:

composer require dutchigor/cmb2-image-map

From the readme

CMB2-Image-Map Note: This plugin is still under development Adds image map field to CMB2, This allows a marker to be set on each field on top of a pre-defined image or map layer. Requires CMB2 to be added to WordPress seperately. Each field can contain one marker and will store the coordinates of that marker. Clicking anywhere on the map will place or move the marker there. How to install Option one - Download the latest release (CMB2-image-map.zip from releases assets) and Install as a standard WordPress plugin Option two - Add dutchigor/cmb2-image-map to required packages in composer and require CMB2-image-map.php in your code How to use Creating a field Create a field with type 'imagemap' and give it the following properties: - baselayer: String / Int - If basetype is 'map, The url template for the basemap you wish to use. If basetype is 'image', the id of the attachment to use as the image layer. (manditory) - basetype: String - 'image' to use an image overlay or map to use a geographical basemap. Defaults to 'map'. (optional) - baselat: Int - The latitute to center the map on if no marker is set yet. (optional) - baselng: Int - The longitude to center the map on if no m

Read the full README on GitHub →

Releases

TagPublishedAssetDownloads
v0.4.0 Apr 1, 2020 CMB2-image-map.zip 17
v0.3.0 Mar 31, 2020 CMB2-image-map.zip 4
V0.1.1 Mar 31, 2020 CMB2-image-map.zip 4