Drawing a large number of objects

Hello
I want to draw a large number of polygons, circles and labels on the map (about 1000-10000)
How can I better optimize the drawing functions?

  1. Does the FNCGoogleMaps TMS component automatically clip objects only in the visible area when the visible area is shifted or scaled?
    Or do I need to manually check whether the coordinates of objects fall into the visible area of the map before drawing polygons and labels?
    As far as I know, when I try to display labels with GoogleMaps functions,
    the google map server checks whether the label is visible or not and does not load it if label not it visible viewport. This way the google map works very fast.
    Does this function work when I draw polygons on the Polygons and Label layer of the TMS FNCGoogleMaps component?
  2. I noticed that the label layer works much slower than the polygon layer when a lot of labels are displayed on it. Map with 200 labels already works very slowly.
    When you try to move the map viewport, labels are moving with a delay. How can I optimize the display of labels?

Best regards, Eugene

Hi,

  1. There is currently no automatic clipping support in TMS FNC Maps. You can try to manually toggle objects on the map based on the map viewport.

  2. There can indeed be slowdowns when placing a high number of labels on the map.
    If the behavior is problematic please provide the following information so we can further investigate this:

  • Which version of Windows are you using?
  • Which version of Delphi are you using?
  • Which framework(s) are you using? (VCL, FMX, WEB Core)
  • Which platform(s) are you deploying to? (Windows, Android, Mac, iOS)
  • A ready to run sample project that demonstrates the issue