Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Clustering QtLocation markers technique
Qt 6.11 is out! See what's new in the release blog

Clustering QtLocation markers technique

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 3 Posters 1.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    deleted343
    wrote on last edited by
    #1

    Hi,

    Currently, I'm using this project https://github.com/OpenGeoscience/vtkMap based on the VTK framework to have a slippy map in which I can add markers and group them in clusters. I have already contributed to that project but there's still bugs in it and it does not fit my requirements (on the visual aspect).

    So, I want to use Qt maps instead of vtkMap, but I didn't find a way/an example to create marker clusters. Apparently, it's a complex task to achieve (as I already fixed some bugs in vtkMap clustering system) and I want to know how people deal with that problem with QtLocation/QML.

    I found this bugreports.qt.io/browse/QTBUG-52301?attachmentOrder=desc but the guy removed his clustering algorithm from the source code that he attached (in void ClusterableModel::doRecalculation()).

    So, I want to know if there's already an exisiting solution to achieve marker clustering. Otherwise, I will create a solution based on the link above and the technique used in vtkMap and share it on my github account !

    Thanks.

    T 1 Reply Last reply
    0
    • D deleted343

      Hi,

      Currently, I'm using this project https://github.com/OpenGeoscience/vtkMap based on the VTK framework to have a slippy map in which I can add markers and group them in clusters. I have already contributed to that project but there's still bugs in it and it does not fit my requirements (on the visual aspect).

      So, I want to use Qt maps instead of vtkMap, but I didn't find a way/an example to create marker clusters. Apparently, it's a complex task to achieve (as I already fixed some bugs in vtkMap clustering system) and I want to know how people deal with that problem with QtLocation/QML.

      I found this bugreports.qt.io/browse/QTBUG-52301?attachmentOrder=desc but the guy removed his clustering algorithm from the source code that he attached (in void ClusterableModel::doRecalculation()).

      So, I want to know if there's already an exisiting solution to achieve marker clustering. Otherwise, I will create a solution based on the link above and the technique used in vtkMap and share it on my github account !

      Thanks.

      T Offline
      T Offline
      tomaslov
      wrote on last edited by
      #2

      @embeddedmz Did you get any further on this? I'm also looking for a way to cluster features using C++ model for the items and QML Map for the view.

      E 1 Reply Last reply
      0
      • D Offline
        D Offline
        deleted343
        wrote on last edited by
        #3

        Hi Tomaslov,

        No, I have not advanced in that subject because I changed my job (essentially C# dev.), but yeah I'm still interested if someone could provide us a solution, on Android this feature already exists.

        1 Reply Last reply
        0
        • T tomaslov

          @embeddedmz Did you get any further on this? I'm also looking for a way to cluster features using C++ model for the items and QML Map for the view.

          E Offline
          E Offline
          embeddedmz_2
          wrote on last edited by
          #4

          @tomaslov I found QGeoView, an interesting and small/simple slippy map for Qt (No qml BS).

          I have forked the project and made a class (in a branch called draft) that manages a set of POIs and support clustering : https://github.com/embeddedmz/QGeoView/tree/draft it's in the "demo" directory.

          In 2022, I will continue working on that project.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved