Ask / Submit
23

A map component for Sailfish apps

asked 2014-07-22 18:11:03 +0300

tadzik gravatar image

updated 2014-08-26 15:29:55 +0300

jiit gravatar image

I noticed that every available 3rdparty app using maps (PoorMaps, modRana) is implementing their own maps for some reason, rather than using some common QML component. I looked around the sailfish-maps code, and they seem to be using something called QDeclarativeGeoMap, which seems to be coming from the QtLocation module, although it's borderline impossible to find any information on it on the internet, which makes me thing that perhaps it's a Sailfish-specific thing of sorts.

I'm planning to write an app that's going to use maps in the near future, and I'd much rather use something that's already out there and works well (especially if it can share cache with the stock Maps app) rather than rolling out something myself for no good reason. Did anyone ever try to use the same thing as Maps is using? What would be the best way to reuse as much Maps code as possible when writing something map-related myself?

edit retag flag offensive close delete

2 Answers

Sort by » oldest newest most voted
5

answered 2014-07-22 22:34:49 +0300

updated 2014-07-22 22:37:37 +0300

QtLocation has a QML component called "Map". This is probably the closest to what you're looking for. It's (somewhat) a part of Qt, uses QtPositioning data types and has a QML interface and as such fits well in the Sailfish environment. Unfortunately, the Map component and the rest of QtLocation is a bit rough, lacking features and doesn't seem to be very actively maintained.

There's no official documentation, but see Ubuntu SDK, all of it should apply to Sailfish as well: http://developer.ubuntu.com/api/qml/sdk-1.0/QtLocation.Map/

Poor Maps uses QtLocation's Map, but adds hacks and custom stuff to overcome its deficiencies.

edit flag offensive delete publish link more

Comments

There is little information on Qt Location on the Internet because its documentation is not generated and published on qt-project.org. This is because it has not been official released by the Qt Project. The Ubuntu documentation linked above should be substantially similar to what is in Sailfish OS. Our version has some patches backported from the upstream dev branch.

The Qt Location module sees sporadic commits with the goal of getting it released as an official Qt module. Getting official released by the Qt Project is a prerequisite for its use in applications publish in Harbour.

The Sailfish Maps application uses Qt Location.

@osmo-salomaa have those deficiencies been reported in the Qt bug tracker?

Aaron McCarthy ( 2014-07-24 07:32:43 +0300 )edit

@aaron-mccarthy: So far, I've reported the ones I've had to work around: for tile-loading QTBUG-36581 (see also QTBUG-32937, which I had failed to notice) and for polyline display QTBUG-38459. There's a couple more yet to file, lesser ones and ones I need to investigate a bit before filing.

otsaloma ( 2014-07-24 15:46:25 +0300 )edit
1

answered 2014-08-06 15:02:56 +0300

flerro gravatar image

This looks like a promising alternative:

https://github.com/unsanded/harbour-mapp/

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2014-07-22 18:11:03 +0300

Seen: 827 times

Last updated: Aug 06 '14