Plugin Author
tinuzz
(@tinuzz)
Hello!
I haven’t stated work on supporting multiple users’ live tracks in a single map. I’m not entirely sure how that should be implemented, I’ll have to experiment with that a little bit. Unfortunately, I haven’t had a lot of time to work on Trackserver lately.
Regarding turning off the track and only showing the latest location, that should be doable with little effort, so I’ll write it down as a feature request. Expect this to be possible in the next version.
Your third request is closely related to the first request. I think at some point, I will make the hover/title text of a marker templateable, so you can have it contain information from different variables. Time, username, coordinates, maybe reverse geocoding, are things that come to mind.
Regarding your final request, I could think of a mechanism where you can specify a Javascript callback function for a click event on the marker. I can make Trackserver execute the callback, but everything else (opening a window/overlay with a video stream) is up to you to implement.
Again, I am sorry I can’t give you any time frame for these requests. They are kind of outside my own use cases for Trackserver, and my time to work on Trackserver is really limited these days.
If you were to implement some of it yourself, you’re welcome to send me a pull request on Github.
Best regards,
Martijn.
Plugin Author
tinuzz
(@tinuzz)
Regarding turning off the track and only showing the last known location, this will be possible in the next release.
Use ‘markers=e’ to only show a marker at the END of the track.
Use ‘opacity=0.0’ to make the track transparent and therefore invisible.
Awesome, that is great man. Thanks for your hard work on this project. Looking forward to the update and the more to come after that. This plugin will make our storm chasing site a success.
First of all, awesome job on the latest release, I am digging the multiple users on the same map feature. I would like some help or see it as a FE in the future. I have been playing around with the latest version and I may be the only user that would want this, as I am using this plugin differently than what it was designed for. I understand this plugin was designed to show where you hiked or a path you took to get to a location and plot it on a map. I am using this as a GPS tracking for my storm chasing team. The FE would be to clear the markers off the map after the chaser stops broadcasting. So I could see the code being, “If marker last update time >15 min then remove marker”. This would not be a default setting but you would have to specify if you wanted this feature on or off by something in the shortcode like markertimeout=y.
The second thing I am running into is using more than 1 tile within the map. I can of course get my base of the google maps or open street maps, but like stated earlier we run a storm chasing website and would like to add a radar tile. Can you point me as how to input this in the code or add a field in the admin console to use multiple tiles? I have tried to modify this line of code but that doesn’t seem to work:
var map_layer0 = L.tileLayer(
trackserver_settings[’tile_url’],
{ attribution: trackserver_settings[‘attribution’], maxZoom: 18 }
L.tileLayer(‘https://maps.aerisapi.com/%5Bclient_id%5D_%5Bclient_key%5D/radar/{z}/{x}/{y}/current.png’, {
subdomains: ‘1234’,
attribution: ‘©AerisWeather’,
}).addTo(map);
);
I have also tried to make a new variable and do the new tile layer in there and call it in the next line where you have var options = {center : center, zoom : zoom, layers: [map_layer0], messagebox: true } I added [map_layer1](which is what I called the other variable)
Plugin Author
tinuzz
(@tinuzz)
Hi,
I am open to adding a ‘maxage’ attribute to work together with ‘user=…’, to limit the tracks shown on the map to the ones that have been updated in the last X time. It should be quite easy to add. Can you please open a new topic on this forum or an issue on GH for this feature request?
Regarding your second question: just create a new tile layer and add it to the ‘layers’ option. I tested with the following and it works as expected:
var map_layer0 = L.tileLayer(
trackserver_settings['tile_url'],
{ attribution: trackserver_settings['attribution'], maxZoom: 18 });
var clouds = L.tileLayer(
'http://{s}.tile.openweathermap.org/map/clouds/{z}/{x}/{y}.png', {
maxZoom: 19,
attribution: 'Map data © <a href="http://openweathermap.org">OpenWeatherMap</a>',
opacity: 0.5 });
var options = {center : center, zoom : zoom, layers: [map_layer0, clouds], messagebox: true };
Cheers,
Martijn.
-
This reply was modified 7 years, 1 month ago by tinuzz.
Martijn,
Thanks for the help on the layers, that worked great and if you want to check our site out to see what we are utilizing your wonderful plugin for it is wxscoop.net. I will open that other request for the FE in a few min.
VR,
Scott