We have moved to a new Sailfish OS Forum. Please start new discussions there.
3

How to integrate maps into my application? [answered]

asked 2015-04-02 20:51:10 +0300

Ósanwe gravatar image

updated 2015-04-03 11:29:24 +0300

chemist gravatar image

Hi guys!

I'm developing an application and a user can receive gps-coordinates. How can I show the part of the map or open the standard application?

Upd: I found that it's possible to use links like this <a href="geo:number,number">text</a> but how can I integrate the part of the map into my application?

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by VDVsx
close date 2015-04-07 11:14:04.702392

1 Answer

Sort by » oldest newest most voted
2

answered 2015-04-03 03:48:08 +0300

To include a map component in your application, you'll probably want to use QtLocation. It's not the same as sailfish-maps, but the it's the lower level map component that sailfish-maps uses as well. You'll need to implement whatever UI, controls etc. yourself. QtLocation is not yet considered stable by Qt and not allowed in Harbour applications, but there's nothing better available either.

As you note, you can use geo-links to open the default map application (sailfish-maps), but that only works for single points and it's a separate application with its own startup delay.

edit flag offensive delete publish link more

Comments

Thus I should use geo-link if I want to share an application with Harbour, shouldn't I? And I can share rpm with QtLocation component separately as well.

Ósanwe ( 2015-04-03 12:14:27 +0300 )edit
2

@Ósanwe: Yes, use geo-links in Harbour. If you want to provide a separate version with a QtLocation map, put the RPM at openrepos.net.

otsaloma ( 2015-04-03 17:23:52 +0300 )edit

Question tools

Follow
1 follower

Stats

Asked: 2015-04-02 20:51:10 +0300

Seen: 326 times

Last updated: Apr 03 '15