stefansundin / traceroute-mapper

Map your traceroutes easily.
https://stefansundin.github.io/traceroute-mapper/
GNU Affero General Public License v3.0
286 stars 27 forks source link

Add back host number to map marker #10

Closed AmritasyaPutra closed 1 month ago

AmritasyaPutra commented 1 month ago

I have been using your tool for few days and I noticed that you have updated it recently. The earlier map used to show the number, now it doesn't. This makes the map less helpful.

stefansundin commented 1 month ago

Thanks.

I wrote the OpenLayers code a few years ago but I didn't ship it back then. Now that I did, I didn't look that closely on what was missing.

Okay, so I managed to get a pretty simple number rendered like this (53e5b3ba3cd173f0a82c9bf3623b548bf2caa2e9):

Screenshot 2024-09-17 at 22 26 22

But I wanted to try to get an icon that looked like the old Google Maps pins, and that was much harder since OpenLayers doesn't seem to have a corresponding icon, but I got a custom one working:

Screenshot 2024-09-17 at 22 29 13

I also tried white text but I decided to leave it with black text, like before:

Screenshot 2024-09-17 at 22 29 08

And then finally, for reference, this is what it used to look like:

Screenshot 2024-09-17 at 22 29 19

Anyway... hope that works for you. :)