Package Exports
- freeboard-leaflet-realtime
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (freeboard-leaflet-realtime) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
freeboard-leaflet-realtime
Richard Wen
rrwen.dev@gmail.com
Freeboard plugin for real time Leaflet web maps
Install
git clone https://github.com/Freeboard/freeboard.git
cd freeboardFor the latest developer version, see Developer Install.
Usage
After cloning freeboard, edit head.js in freeboard/index.html to include the freeboard-leaflet-realtime plugin:
head.js(...,
'https://cdn.rawgit.com/rrwen/freeboard-leaflet-realtime/b84f99f8/index.js',
...)Open freeboard/index.html to use the new plugin.
Contributions
- Reports for issues and suggestions can be made using the issue submission interface.
- Code contributions are submitted via pull requests
See CONTRIBUTING.md for more details.
Developer Notes
Developer Install
Install from npm:
- Install Node.js
- Install freeboard-leaflet-realtime via
npm
npm install --save freeboard-leaflet-realtimeInstall the latest developer version with npm from github:
npm install git+https://github.com/rrwen/freeboard-leaflet-realtimeInstall from git cloned source:
- Ensure git is installed
- Clone into current path
- Install via
npm
git clone https://github.com/rrwen/freeboard-leaflet-realtime
cd freeboard-leaflet-realtime
npm installUpload to Github
- Ensure git is installed
- Inside the
freeboard-leaflet-realtimefolder, add all files and commit changes - Push to github
git add .
git commit -a -m "Generic update"
git pushUpload to npm
- Update the version in
package.json - Login to npm
- Publish to npm
npm login
npm publishImplementation
The module freeboard-leaflet-realtime uses the following npm packages for its implementation:
| npm | Purpose |
|---|---|
| freeboard | Base dashboard that accepts this plugin |
| leaflet | Web map providing tiles and layers |
| leaflet-realtime | Real time layers for leaflet |
freeboard <-- base dashboard
|
leaflet <-- Add leaflet webmap to dashboard pane
|
leaflet-realtime <-- Add realtime layer to leaflet