How to use the QML/QtLocation module for displayin

2019-02-15 16:46发布

问题:

I'm in the process of creating an offline Slippy Map using QML and their new QtLocation module (>=Qt5.4). I managed quite easily to display the tiles with an offline cache. Now I would like to add custom data to this map (a list of ~7000 airports). This huge list would have to be clustered depending on the zoom level (for performance and readability reasons, unless the QtLocation has built-in "optimizations"..?.

What would be to most elegant/best way to achieve this, staying as close as possible to the Qt/QML APIs?

I saw some interesting stuff about a similar approach here: How to handle large amounts of data on iOS Maps. But it's for native iOS.

Any advice is very welcome ;)

回答1:

You might want to take a look at the new ESRI QT Api. It is made to deal with huge datasets, you might find something suitable. It is a commercial option, so its viability really depends on your use case and budget. The "Basic" license, which is free, might be enough for you.

https://developers.arcgis.com/qt/



回答2:

You need a custom model for that, which updates on zoomLevel changes, center changes and map size (width and height) changes