-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding maps to db #32
Comments
I stopped writing the self host documentation because adding maps was a pain :( for me it's been a long time so I don't remember, but you'll have to create a collection with the right name and the right fields, with a KML Some of the collection/table and field names are here: https://github.com/RuurdBijlsma/locationestimatr2/blob/master/firestore.rules and here: For example this 2nd file get a map with db.collection('maps').doc(mapId) The fields used on this mapData that it returns should also be created, they are 'kml', 'user', 'realUser', 'image', 'maps', etc. A lot of info on the maps db here also: that file looks like a json cache version of the db to me so probably very useful for reverse engineering the db tables/fields sorry for not being able to help more, I don't have the original database anymore and I don't remember the structure |
Thanks for the reply. I was already doing some digging around in the source code, but I hadn't yet looked at the files you listed, also the initialCache file should be a big help. In addition, I hadn't looked at the json files in the "data" folder which just look like direct dumps of the "maps" and "home-maps" collections. With the help of some json importing scripts from google, it should be easy to add those in. If I get it working, I'll leave another reply here. |
Hey there, I recently got this project working for my own personal use following the steps listed in selfhost.md, but now I'm wondering how to upload maps permanently to the firestore db. Any help would be great, thank you.
The text was updated successfully, but these errors were encountered: