surfrock66 / torque

A set of tools used with the Torque app for Android to store OBD2 data in MySQL, view GPS data from Torque on a map in real time using the Google Maps JavaScript API, plot OBD2 data in time series charts, and export the data to CSV or JSON.
Other
43 stars 23 forks source link

Several modifications to Leaflet map provider and added a new filter to the plot selector #52

Closed JauminaKape closed 1 year ago

JauminaKape commented 1 year ago

Moved all the Leaflet code to the js static file, ported the trim without reloading and marker on chart hover to the Leaflet map provider and added a new map init so all the libraries use the same parameter data and format, also the map script elements are now added to the html head instead of the body.

Moved the slider js code to the static file.

Added a new filter so the plot selector only shows the variables that have min or max different than 0 in the current session, the sql that I wrote to do this is kind of limited in perfomance cause of the amount of columns in the log table. I can code it so the variable list is loaded asynchronously but don't think it's necessary.

Adding the ability to change the map library and base layer without reloading with a select control would be trivial at this point but don't know if it's necessary either since the openlayers implementation already has a select control to change the base layer that I made after I added it as map provider.