Welcome to Radarspotting. Please login or sign up.

April 28, 2025, 08:00:11 PM

Login with username, password and session length

New Members

New Members

You should get an activation email when you join.  If not, please use the Contact option.

Waypoint labels

Started by Faramir, August 27, 2022, 12:07:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Faramir

With the help of the Custom Content plugin I'm able to plot waypoints on the map (with the vrs-waypoint-master add-on). While the name of the waypoints can be seen as tooltips I'm not able to set the labels so I can see them all of the time. Perhaps there's someone that knows how to enable a permanent label to the waypoints?

rikgale

#1
Yes - there is a way. I will post up something after I have had my dinner.

I have been trying to do the same thing with another add on ;)


-------------------

Added - ok may be not. Having looked that GH repo for this add on - it does not appear to use Leaflet layers which is what I have been looking at and handles things in a different way. I am wondering if the data on the repo could be converted to a GeoJSON format, which I am learning to work with and should be able to make it so the tooltip show up.

Auto updated daily ZIP files on GitHub

Faramir

No idea how to do what you say, I'm an end-user on VRS and it's plug-ins. I'll wait patiently what you can find out. Thanks for the reply!

rikgale

#3
Did you mean something like the attached?

Waypoint icon and text formatting can be altered. I just stole the style from another part of the code I am playing with to try it out.. Please let me know what you would to see and I'll see what I can do.

I tried converting the data from the vrs-waypoint-master add-on Github repo, but 120000 lines of data was FAR to much the browser to swallow.

I should be able to produce an up to date list of reporting points for Netherlands from OpenAIP and surroundings if you like?

[attachment deleted reduce file load]

Auto updated daily ZIP files on GitHub

rikgale

#4
I've had a bit of a fiddle, got hold of a list of waypoints for just NL (I can do others)

I have added NL waypoints under the layers icon (bottom left) of my VRS map -  so you can see for real, rather than a pic.



[attachment deleted reduce file load]

Auto updated daily ZIP files on GitHub

Faramir

That's exactly what I was trying to get. As said earlier, I'm a newbie on VRS but looking at your layout I hope to get something similar. It will take a lot of reading so it may take a while but I'll be patient. Well done!!

rikgale

I'll pull you some files together and post them so you can try them out. Give me a couple of days

Auto updated daily ZIP files on GitHub

rikgale

Put the contents of the VRSRootFolder into whereever you have the root of VRS set in the custom content plugin. The .png and the .geojson files must be on the top level and not in a folder.

Then inject NLEndOfHead.html at the end of Head for *
and inject NLEndOfBody.html at the end of Body for *

You can tweak the size / colour of the text in NLEndofHead in the CSS section - just use CSS.

Fingers crossed - it should work and be auto added to the map.

[attachment deleted reduce file load]

Auto updated daily ZIP files on GitHub

Faramir

Works like a charm Rick, thank you very very much!
Perhaps if it is possible, is such a scheme possible for lines (from coordinate to coordinate and so on) too? If that's the case the air routes from the AIP could be visualized  in VRS.

rikgale

Great that it works :)

Do you mean something that looks a bit like the A2A refueling areas on my VRS? Currently this is handled as an array of co-ordinates in the script which then uses these to form a ploygon - therefore a pain to manually add / update etc, but I am trying to move all data over into geoJson format files which can be downloaded from OpenAIP. In which case the airoute info could be downloaded from OpenAIP and passed to VRS to display. I will look into this when I get a chance.

Are the air routes not already displayed on the OpenAIP layer already?

Auto updated daily ZIP files on GitHub

Faramir

The OpenAIP is a bit to cluttered for me so I don't use that.
The A2A refueling area's are indeed area's and I'm hoping to draw (straight) lines on the map more like the lines on this page.

rikgale

If you know, or are able to work out the co-ordinates of the lines (startpoints / end point / bend points) then YES, it is dooable. Bit like an NL sized dot-to-dot.

I'll try and pull together a working example for you to build on.

Watch this space.


Auto updated daily ZIP files on GitHub