traccar / traccar-web

Traccar GPS Tracking System
https://www.traccar.org
Apache License 2.0
814 stars 1.12k forks source link

Limit number of markers on the map #1222

Closed juniormelo26 closed 7 months ago

juniormelo26 commented 7 months ago

The functionality would help the administrator user's vision, reducing the number of markers on the map and thus making it lighter. If you're interested, I've already implemented and tested it and it worked well.

All Icons

One Icons

Other

tananaev commented 7 months ago

Is this a feature request? I don't understand how the limit supposed to work.

juniormelo26 commented 7 months ago

It is a resource request/contribution. This would filter the number of markers/devices to be displayed on the map. Would you like me to post the code here?

tananaev commented 7 months ago

How do you decide which devices to filter?

juniormelo26 commented 7 months ago

The filter would be random, it would not be filtering a specific device but rather the quantity of them. The first one that was rendered/updated would be displayed.

tananaev commented 7 months ago

This makes no sense to me.

juniormelo26 commented 7 months ago

It would help to reduce the load by redefining the icons on the map. It's okay Anton, it's just a suggestion. I will be closing then. thanks!

tananaev commented 7 months ago

We have clustering that solves this problem. Just hiding devices randomly makes no sense in my opinion.