You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2020-06-07 15:50:23

Rodrigo Butzke
New Member
Registered: 2020-06-07
Posts: 1

URL parameters to custom map

Warning: I'm not sure if I'm writing in the right place.

Hello guys, nice work you all have been doing with this amazing tool.
Anyway, my father started a genealogy study, and he is mapping the differences about Rio Grande do Sul (Brazilian state) along the years, and he made a map with it, you can check it in this link.

Later he asked me to develop some way to display information about the cities, and we are preparing a simple website to do so. Not only maps, but other informations.
He also wanted to show a "specific map for a period of time", so, what i want to know is: Is there a way that we can "pre-open" or "pre-close" some of this variables that have checkboxes to hide or show?
I thought it would be an URL option to do that, but couldn't find anything.

Anyway, thanks for everything.

Offline

#2 2020-06-11 12:02:56

Tordanik
Moderator
From: Germany
Registered: 2008-06-17
Posts: 2,840
Website

Re: URL parameters to custom map

For the most part, umap is a user-friendly wrapper around the Leaflet JavaScript library: https://leafletjs.com/  So if you're limited by what functionality umap has built in, and able to do some web programming, that might be an option.

(Note that it's possible that umap itself might have the option you're looking for, I don't know it well enough to say. Sorry that I don't have a more helpful answer!)


OSM in 3D: OSM2World

Offline

#3 2020-06-11 20:22:05

Brian de Ford
Member
From: Cardigan, Ceredigion, UK
Registered: 2017-08-30
Posts: 138

Re: URL parameters to custom map

Rodrigo Butzke wrote:

Later he asked me to develop some way to display information about the cities, and we are preparing a simple website to do so. Not only maps, but other informations.
He also wanted to show a "specific map for a period of time", so, what i want to know is: Is there a way that we can "pre-open" or "pre-close" some of this variables that have checkboxes to hide or show?
I thought it would be an URL option to do that, but couldn't find anything.

If you use the iframe exporter to embed a umap into another web page then it is possible to add URL parameters.  So you could have a series of pages each of which embed the same base umap but passing different parameters.  It's not documented that you can do this, but you should be able to figure out what to do when you use the exporter.

Doing what you want on a map hosted by umap themselves is not currently possible.  It's been requested by at least two people on github and is marked as an enhancement issue: https://github.com/umap-project/umap/issues/705.  It may be a long time, if ever, before it's implemented as there's not much development effort on umap these days.

Offline

Board footer

Powered by FluxBB