Hi all, I started to play with umap and i must say that it feeds almost my needs and my co-workers's. I wonder if there are some tools to create umap format from scratch ? I use php as script langage. If not, do you think, it's possible to export as umap format then update the file (how?) then re-import the file in umap. By instance, what is the best practice if i want to change the background color of some polygons ? I don't want to and I can't use the remote-data functionnality because all my data can't be accessed from the internet. It seems this same type of question has already been asked with no success: https://help.openstreetmap.org/questions/65319/umap-programmatically-updating-layer-content Thank-you and regards, fabrice. asked 16 Oct '18, 14:18 Fabrice Régnier |
Is the following working for you? Create an example map, similar to the one you want. Export the full data of the map (click on the share icon, in the right tab, in the lower part, titled Download data, select Full map data and press Download data). To get a similar map, edit or create a new file, in the umap format, then use import data to upload your file Use the saved example map as a template for the new one. I do not know it the syntax used in this format is somewhere available answered 26 Oct '18, 10:30 AnyFile |
Thank you AnyFile for your answer. Yes, what you describe is merely what i've done to create maps from scratch: Here are the steps:
And i'm done. I guess i should (could ? shall?) create a php library to make it easier for me and for others who want to create such maps... regards, f. answered 26 Oct '18, 10:44 Fabrice Régnier |
Do you mean that you'd like your uMap to use data that you're storing locally? Kind of like using Leaflet.js but with PHP?
No, i don't mean this. I'd like to create umap files format from scratch with php langage. Then, i'd import these files in umap web interface.
I hope i'm clearer this time in my request ;)
By the way, this is what i started to do. A big php array with json_encode magic command. I could import the created file into umap we interface with success.
I guess, i could provide a small php library to allow others to deal with php and umap. I have to think harder ;)