This object is in archive! 

Automatic update of map elements when local kml/gpx file changes

joeloc shared this idea 11 years ago
Completed

Locus can directly display any gpx/kml/kmz/whatever from /sdcard/locus/mapItems/. Very good! It would be even better if Locus would automatically update whenever one of those (enabled) files changes.


Why? Because I might have other apps running on my phone that will dynamically create these files. Eg a simple cron job doing wget blabla >/sdcard/locus/mapItems/fancystuff.kml

Replies (9)

photo
1

This would also help for the current (poor) integration of brouter into Locus.

photo
0

It would help all sorts of automatic "advanced" usage cases. Unfortunately, i fear it us "too advanced" to get many votes here :).

photo
1

But fortunately, implementation of a tiny little file notification should be rather simple for menion, so maybe he doesnt need to wait for 50+ votes :). Who knows how many cool helper apps and new funny things might turn up when locus simply auto-updates the contents.

photo
1

I like your technical features ideas.

photo
0

One more thing: If I open a gpx/kml with a file explorer that is actually inside Locus mapItems folder, I would expect Locus to NOT show the usual import window.


Instead, it should simply enable the file as mapItem and center on it.

photo
2

good idea!

create a separate topic for it.

photo
1

I hope this idea will be implemented, it would be interesting to test it. Instead of connecting to the remote server, it would be possible to use an external local app to do stuff. Great for implementing Buddy Tracker:P

photo
1

Is it just me or was this file notification feature implemented at one point and now stopped working?

Or was I just dreaming? I really thought it worked already... but not anymore.

photo
1

Hello joeloc,

I've completely forget to notify here about this feature implementation ... done.


And now you write it do not work? Have to check it ... (after some extra work) ... hmm interesting it worked before. No change in source code for quite a long time. Seems that is should work correctly for some direct editing of data file on device, but not for overwrite by different file. I did some improvements, so it should be fine in next version. Thanks!

photo
1

Thanks for fixing... I tested it by having the mapItems drawer synced with some google drive folder with an app called "FolderSync". Locus wouldnt update after sync... I believe FolderSync operates by copying some temp files over in the end. Maybe it works now.


Btw... Locus has some sort of cloud support already for exporting (google drive etc). Locus can also change the place for its data folders via settings/misc/defauldirectories. Would it maybe be easy for you to allow configuring default directories directly into cloud drives?


Me and my buddies could then set mapItems directly to a shared cloud directory and have the same mapItems on a multi-person-trip. Would get us a bit closer to point & track & data sharing and reduce the need for separate and clumsy folder sync app solutions.

photo
1

Obviously... in an ideal world... Locus would simply offer sharing of any Tracks/Points folder with others... with a simple option and a simple tap... :-)

Replies have been locked on this page!