Events
SquareBit Maps provides the following events which you can use to update or alter it's behaviour from your own plugins.
For more information about Craft events, read more about Craft's Hooks and Events.
Events List
squarebitmaps.onBeforeSave
- Fired just before a maps field value is saved
squarebitmaps.onBeforeSave
Fired just before a maps field value is saved. Recieves as SquareBitMaps model and the original data array as passed through on the request.
You might want to use this event to add your own external processing and logic to alter the point data, or hook up the geo data into external systems depending on your needs.
Parameters
map
SquareBit_MapModel- The full populated model for the map field. Includes all the properly validated and parsed lat/lng data.
data
Array- The original inbound array data from the field. Broken down and will include the original lat/lng points for the view, zoom level and lat/lng center point.