Re: Show points on the map.



Hi Román,

I don't think there's anything in libchamplain itself that would solve the issue. But if your issue is that you want to display too many points and the map becomes too slow because of this, I'd suggest pre-filtering your points and adding e.g. just every 10th point to the layer.

Best regards,

Jiri

On Sun, Apr 10, 2022 at 6:36 PM Román Martínez via libchamplain-list <libchamplain-list gnome org> wrote:
Hi folks,

I'd like to show a path on a map that hightlight all points like in the
attached screenshot.

When I create a layer and add ChamplaintPoint the app consumes a lot of
memory, and it makes not possible to use it.

I've coded something like this:

for tp in track_points:
    champlain_point = Champlain.Point.new()
    champlain_point.set_location(tp.latitude, tp.longitude)
    layer.add_marker(champlain_point)

Is a way to achieve what you can see on the screenshot in an optimal
option?

Regards!
_______________________________________________
libchamplain-list mailing list
libchamplain-list gnome org
https://mail.gnome.org/mailman/listinfo/libchamplain-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]