GoMap icon indicating copy to clipboard operation
GoMap copied to clipboard

Custom data overlay

Open verhovsky opened this issue 1 year ago • 7 comments

iD lets you upload a custom data set which it visualizes in bright pink

Screenshot 2024-03-24 at 23 34 57

I use this with a government data set of property lines. I would like to be able to set a locally downloaded .geojson file and have it always visualised. A way to toggle showing it would be useful as well. You could also allow snapping points to points in the data.

verhovsky avatar Mar 25 '24 06:03 verhovsky

@verhovsky JFYI GoMap can display local GPX tracks since a few month ago. I started experimenting with encoding my custom data in GPX format to get it to show up in GoMap. That kind of worked but I never got around to finish my tests. — But if you know how to code some transformation, that might be a workaround for now…

tordans avatar Mar 25 '24 06:03 tordans

@tordans idea is a great workaround (though importing GPX tracks has been supported for years, not just a few months 😉).

Adding first-class support for custom data overlays is low priority, since that's probably more appropriate for a desktop editor. I'd prefer not to add clutter for features that aren't directly applicable to the mobile experience.

bryceco avatar Mar 26 '24 04:03 bryceco

when I am surveying it would be helpful to have the property lines because it would let me see what's private and public land. Instead I have to look at which areas I can and can't go on the desktop ahead of time and remember it or look on a government's website which isn't as nice and doesn't let me preload the data.

verhovsky avatar Mar 26 '24 04:03 verhovsky

What is your source for the property lines and what is the format?

bryceco avatar Mar 26 '24 05:03 bryceco

It's a shapefile. But GeoJSON would be good too (or both, iD supports 4 file types for custom data), there's a command line tool to convert them. I also edit it in JOSM to reduce the amount of data to just my area

https://www.rdn.bc.ca/sites/default/files/inline-files/Parcels_205.zip

verhovsky avatar Mar 27 '24 03:03 verhovsky

Just a quick note on a possible workaround we used for a while: You can use QGIS to set up multiple layer of data. Then export that as ZXY Tiles and put them on a simple FTP Webspace. And use those tiles as a custom map background in GoMap. — I cannot find the tiles URL anymore right now, but it it was based on https://strassenraumkarte.osm-berlin.org/?map=micromap#18/52.47347/13.44224

tordans avatar Mar 27 '24 08:03 tordans

More on the feature part of this: I would be great to be able to show 1 or more custom geojson files in GoMap and have them stored on a shared folder so I can update them from my Mac. The GPX Workaround only works well for points and not any area data and its also hard to get the data processed right. We have quite a bit of open data that I would like to use while on the go but don't because it's just too many steps ATM.

tordans avatar Mar 27 '24 09:03 tordans

dea8615202f546e4315e7a7408126a087f64d121 is a first step towards this. Also applies to #741

bryceco avatar Apr 28 '24 21:04 bryceco

I added rudimentary support for this:

  • You can now share a .geojson file to the app and it will display the contents.
  • There is no UI whatsoever, so you cannot hide/unhide the layer, add/delete geojsons, etc. All of that is future work.
  • If you want to handle other file types (shapefile or whatever) it should be pretty easy to duplicate the code for loadGeoJSON()

bryceco avatar May 01 '24 00:05 bryceco

9e42b76e4631630415f742310d949b3bbe708df4 adds first-class support for this.

bryceco avatar May 22 '24 02:05 bryceco