Link to plugin page: https://zeroqode.com/plugin/mapbox-maps-1528977923342x484968448273940500
Show your own MapBox map styles & 3D buildings inside your bubble app. Live user tracking, Markers, FlyTo, Pitch, Bearing, Zoom & Coordinate Control. MapBox Direction, Scale & Movement Controls + Much More!
Use the MapBox element to show your maps in your own styles. Then give your map life using the element actions. On mouse click the plugin returns states that contain Latitude & Longitude as well as address. The plugin also returns states with a list of markers, map's center address and you can trigger workflows when a marker is clicked.
API Key (register and get key at https://www.mapbox.com/)
Place the MapBox Element on the page and then you have access to its actions and states.
Set Style - you can choose the preferred style from the dropdown. Dropdown values are: Streets,Outdoors,Light,Dark,Satellite,Satellite Streets,Custom.
Turn 3D Building On - turn the 3D view on if the location has a 3D representation.
Add Marker - let you add a marker to the map. Fields with you can operate are Latitude, Longitude, Icon, Icon Size, Marker ID.
Fly To - let you go to another location with a flying effect. Fields with you can operate are Latitude, Longitude, Zoom Speed, Fly Speed, Zoom Level, Bearing, Pitch.
Turn 3D Buildings Off - turns 3D view off.
Remove Marker - let you remove any marker from the map. Field with you can operate is Marker ID.
Start Location Tracking - turns on live location tracking.
Stop Location Tracking - turns off live location tracking.
Set Center - centers the map at the given coordinates (latitude and longitude).
Set Zoom - set the map zoom dynamically. Field - Zoom Level.
Set Pitch - set the map pitch.
Set Direction - display a route on the map. Fields - Origin and Destination, both should be geographical addresses. 12.1. Added new field Waypoints - To add waypoints in the route, you should paste coordinates in the same field in the properties of the element in the format below:
In coordinates, longitude and latitude must be separated by a comma and each pair of coordinates must be separated by ";" (e.g. longitude, latitude; longitude, latitude; longitude, latitude )
Remove Directions - removes set directions from the map.
Create Line - used to draw geoJSON line and polygon by coordinates
GPS Current Position Lat - number. Available when live tracking is on.
GPS Current Position Lng - number. Available when live tracking is on.
GPS Accuracy - number. Available when live tracking is on.
GPS Altitude - number. Available when live tracking is on.
Mouse Lng - number. Available when clicked on the map.
Mouse Lat - number. Available when clicked on the map.
GPS Enabled - yes/no. GPS permission on or off.
Tracking - yes/no. Live tracking on or off.
Heading Supported - yes/no.
Heading Character - text.
Marker Lat - number. Clicked marker latitude.
Marker Lng - number. Clicked marker longitude.
Map Center Lat - number. Center of map latitude.
Map Center Lng - number. Center of map longitude.
New action added
Add List of Markers - will let you add list of markers to the map from database values
New plugin propriety
Marker Cluster ID - this ID can be used to delete a list of markers with Remove Marker action
Return Data as API Call and New States
Improvements - expose now speed state, added API call for retrieving route details.
Improvements - Remove Route action, Zoom parameter, on Track Location action, don't show popup if marker description is empty, clicked marker id state.
Improvements - were added real geographical addresses states, for Live Tracking address, Map center address, Clicked marker address
Improvements and changes:
Added Marker Rotation propriety field for Add Marker Action
For Map Element added new propriety which Navigation Controls and it’s position on Map
Also added possibility to Create a Route on Map click, (see the demo for workflow setup).
Added possibility to choose the Language for Route Instructions
Added GeoJSON Lines creation feature
Added GeoJSON Polygon creation feature
New action Create Line A MapBox
Added new feature - the ability to add waypoints to the route in the set direction action
Changed type of property 'type' in the Create Line Action"
Added the possibility at action "add markers" with data source from API.
Added new features. You can now add various icons for the marker list, add a heatmap layer, add a description for any marker, and more. See the documentation for details.