I would be Happy for Input on this Topic if someone knows a little about it or has some Idea. The solution should be Harbour compatible. All Input to steer my thoughts in a good direction are welcome!
I want to display the shapes of one or several GeoJSON-Files somehow in a scroll- and zoom-able component in a QML/Silica Application. On a click into a shape, I want to create an action, that displays for example more content for this shape.
Further I would like to display in the End an Indication of the current GPS position.
So in fact it is a really, really basic āMapsā application. But Iām not sure what are the best components to look into to realize that. I even thought about creating something that is feed to a browser view for that task. But Iām sure there are smarter ways to do that. Any Ideas welcome
I did this long ago for a parking ticket app, but never published this part.
Keep in mind, this was my first app I ever wrote so the style may be not exactly ābest practiceā ā¦and Iām not sure if the Map item is even still available on SailfishOS.
Iām not sure, if the Map item is from Silica (i donāt think soā¦) or from QtPositioning (which is available for Harbour) or QtLocation (which isnāt).
EDIT: It is from QtLocation, so no way for Harbour compliant Apps at the moment i think⦠QtLocation since 5.13 would have a GeoJSON component as well.
Yeah, Iām aware. I thought, as I donāt really need underlying āMapā with Map Tiles etc., there could be a smart and easy solution that I didnāt think about yet⦠At least I hope there is
I played around with it today. It works for ānon-harbourā applications with - qt5-qtdeclarative-import-location in the .yaml-file and import QtLocation in the .qml-file.
However, as expected, the rpm-validator does not accept that for harbour.
Thanks, @michfu for the Ideas so far!