Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Convert to leaflet plugin #5

Open
rob42 opened this issue Nov 19, 2014 · 2 comments
Open

Convert to leaflet plugin #5

rob42 opened this issue Nov 19, 2014 · 2 comments

Comments

@rob42
Copy link

rob42 commented Nov 19, 2014

Teppo,
If this tracking from signalk data capability was a leaflet plugin then it could easily be added to any leaflet map....
Also overlay/tracking a single vessel (your own) must be very similar, so a simple chartplotter would just require the plugin + filter for 'self' ?
Rob

@tkurki
Copy link
Member

tkurki commented Nov 19, 2014

Apparently a Leaflet plugin isn't a big deal, it is just Javascript that uses the Leaflet API. In fact the home button is a L.EasyButton.

So the way to go about this would be to shovel all the code into L.maptracker and then provide the options to configure it the way you want. To make it play nice with other plugins jquery dependency should disappear, just use plain js, it is overkill anyway.

@rob42
Copy link
Author

rob42 commented Nov 19, 2014

Cool. I had the thought that the vessel tracking, waypoints, snail trails, wind, etc could all be plugin layers in leaflet. Then users could mix and match to make a map, show and hide layers, etc. Plus we could benefit from others developing plugins to complement them.
I will have a look at the freeboard code and see what I can extract.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants