How to use the QML/QtLocation module for displaying a large amount of offline data on a map?

断了今生、忘了曾经 提交于 2019-12-19 04:44:50

问题


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



来源:https://stackoverflow.com/questions/28935206/how-to-use-the-qml-qtlocation-module-for-displaying-a-large-amount-of-offline-da

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!