- Download the latest release from the release page https://github.com/Geotab/real-time-map/releases.
Or
- Download the repo and ensure you have Node V10.16 and npm V6.9.
- Execute
npm install
to install all dependencies. - Execute
npm run build
, to build the add-in. - After the build succeeds, you can find the MyGeotab compatible add-in inside the "dist" folder!
- Navigate to MyGeotab/systemSettings/Add-Ins, and click new Add-in.
- Fill in the configuration field, or copy the values from configuration.json from this project.
- Proceed to click the "add" button in files, and upload the entire dist folder to MyGeotab.
- Navigate to the Real Time Map addin page (which should be on the sidebar if you used the provided configuration file)
- Execute
npm install
to install all dependencies. - Execute
npm run devBuild && npm run devServer
to start the dev server (or execute dev.sh).
This creates a local server (http://localhost:9000/) that can be ran and tested locally, as long as you have an account with MyGeotab API access and can login.
Upon starting the map, you will be greeted with the following landing page:
On the top left hand side is the zoom controls.
The arrow icon on the right will expand to open the configuration panel on click.
The three tabs in the panel allow users to search Exceptions, Statuses and filter the map by Vehicle/Groups.
The selected configuration is applied immediately upon click.
Users may toggle the visibility of the configuration selection by clicking on the eye-icon in the tab and remove the configuration by clicking on the clear button.
Configuration settings persist along sessions with the same user name, they're loaded and applied upon login.
Clicking on the Vehicle Icon in the Vehicle Tab will set the view to the car on the Map.
On the bottom of the page is the control bar, with the following features:
Two sliders on top, the rectangular slider can be dragged to select a new time onwards from which the Vehicle Paths are shown on the Map.
The arrow shaped slider can be dragged to set the Current Time.
A play/pause button to the bottom left.
Playback Speed menu to the right of the play/pause button allowing users to Fast Forward on the Map.
A live button to the bottom right that bring users to the latest feed data.
A date at bottom center, that also functions as an input, allowing users to select a specific date in the past.
Two time inputs on the bottom center. The Start Time input allows users to set the start time for the Vehicle Paths and the Current time input sets the Current Time on the Map.
Every vehicle marker, path and exception path will have a popup that is opened on click. It will look similar to this:
On clicking the black vehicle icon near the the top right of the pop up, the map will zoom into the vehicle and add it to the list of filtered vehicles:
If get exception data is enabled, then upon clicking an exception path, a popup will display the exception rule name, duration, as well as driver name.
If get status feed is enabled, then diagnostic status data would be displayed in the popup as well:
https://my.geotab.com/sdk/api/apiReference.html
https://leafletjs.com/index.html
For more information or inquiries please contact [email protected]