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. [SOLVED] Display a large amount of MapQuickItem (MapPolyline QML) on a QML Map
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Display a large amount of MapQuickItem (MapPolyline QML) on a QML Map

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 2 Posters 1.3k Views 1 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.
  • M Offline
    M Offline
    MaGiC LeTuR
    wrote on last edited by MaGiC LeTuR
    #1

    Hello,

    In the context of a company project, I need to display a large network with mostly points and lines on a map. Every items need to be displayed at the same time on QML Map. My idea is to use the QML map module. However, there is more than a million of lines and points to display. How can I manage properly the performances ? Is there any better option than MapPolyline QML for the lines or better way to use it ? Is there any other way to create an overlay with MapQuickItem ?

    Thanks,
    ML

    raven-worxR 1 Reply Last reply
    0
    • M MaGiC LeTuR

      Hello,

      In the context of a company project, I need to display a large network with mostly points and lines on a map. Every items need to be displayed at the same time on QML Map. My idea is to use the QML map module. However, there is more than a million of lines and points to display. How can I manage properly the performances ? Is there any better option than MapPolyline QML for the lines or better way to use it ? Is there any other way to create an overlay with MapQuickItem ?

      Thanks,
      ML

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @MaGiC-LeTuR said in Display a large amount of MapQuickItem (MapPolyline QML) on a QML Map:

      However, there is more than a million of lines and points to display. How can I manage properly the performances ?

      You need to make sure only to add the items currently really need to be visible for the given geo rect and zoom level.
      Adding all items at once would be definitely the worst idea.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      M 1 Reply Last reply
      3
      • raven-worxR raven-worx

        @MaGiC-LeTuR said in Display a large amount of MapQuickItem (MapPolyline QML) on a QML Map:

        However, there is more than a million of lines and points to display. How can I manage properly the performances ?

        You need to make sure only to add the items currently really need to be visible for the given geo rect and zoom level.
        Adding all items at once would be definitely the worst idea.

        M Offline
        M Offline
        MaGiC LeTuR
        wrote on last edited by
        #3

        Thanks for the quick answer @raven-worx. Therefore if want to see all the lines/points at once, it is impossible to have good performances ? Should I go toward another tech ?

        raven-worxR 1 Reply Last reply
        0
        • M MaGiC LeTuR

          Thanks for the quick answer @raven-worx. Therefore if want to see all the lines/points at once, it is impossible to have good performances ? Should I go toward another tech ?

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @MaGiC-LeTuR said in Display a large amount of MapQuickItem (MapPolyline QML) on a QML Map:

          Therefore if want to see all the lines/points at once, it is impossible to have good performances ? Should I go toward another tech ?

          i doubt you will have success with this approach in any other framework (unless it is designed for this specific case).

          1. showing millions of items on a map is highly waste of memory/performance, since a large amount of items are simply overlapping anyway and result in the same drawn pixel on the screen
          2. many maps group/combine nearby items ... depending what you want to achieve in the end
          3. you will need to group/store your items efficiently which enables you to search in the big amount of data quickly. (B-tree, etc...) There is a lot of material on the web (mostly related to navigation in maps) which are applicable for you

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          2
          • M Offline
            M Offline
            MaGiC LeTuR
            wrote on last edited by
            #5

            @raven-worx said in Display a large amount of MapQuickItem (MapPolyline QML) on a QML Map:

            you will need to group/s

            Okay I understand, thanks.

            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