Skip to content

Adds a Mapbox GL map field on which you can add/remove multiple markers

Notifications You must be signed in to change notification settings

aesqe/fieldmanager-mapboxgl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fieldmanager Mapbox GL

A plugin for Fieldmanager

Adds a Fieldmanager_MapboxGL field which renders a Mapbox GL map on which you can place multiple markers

Example use

'locations' => new Fieldmanager_MapboxGL('Geographical locations', array(
	'index' => 'locations',
	'accesstoken' => 'YOUR MAPBOX GL TOKEN',
	// 'style' => 'YOUR CUSTOM STYLE LINK',
	// 'markersymbol' => 'YOUR CUSTOM MARKER',
	'center' => array(16.2917462418651, 43.4381888676707),
	'zoom' => 7
))

Changelog

0.1.3

  • May 13th, 2016.
  • bugfix: wrong field name in element html

0.1.2

  • May 13th, 2016.
  • implemented a better check for the closest marker

0.1.1

  • May 10th, 2016.
  • minor cosmetic modifications to better follow Fieldmanager standards

0.1.0

  • May 9th, 2016.
  • initial release

About

Adds a Mapbox GL map field on which you can add/remove multiple markers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published