pietervdvn / MapComplete

An easy-to-use webapp to edit OpenStreetMap
https://mapcomplete.org
192 stars 89 forks source link

How to publish a layer? Add a title icon? And choose a marker icon (from a list)? #1972

Open sfkeller opened 1 month ago

sfkeller commented 1 month ago

I've created a layer "picnic sites" and have following help / newbie questions:

  1. How to publish this (as theme)?
  2. here's a broken image at left of the title: How to fix this?
  3. How do I see a list of available icons (e.g. ./.../icon.svg) for rendering a marker?
pietervdvn commented 1 month ago
  1. By asking me (via an issue) as you are doing now

What do you intend to do with this theme? Do you want it to be a stand-alone theme? Or do you want to have it included in e.g. the benches and picnictables-theme which already exists?

Second, I'm not very fond of the leisure=picnic_site-tag as it is often wrongly applied on a single picnic-table (which should be leisure=picnic_table instead) - also see https://github.com/openstreetmap/id-tagging-schema/issues/1240

I've often done a bit of cleanup of them, but that looks like a never-ending story.

  1. By complaining to me ;)

  2. The UI on seeing all icons isn't very good at the moment. Either pick one option from the (long) list or paste an URL to an SVG

sfkeller commented 1 month ago

What do you intend to do with this theme?

It's not about tables, it's really about picnic and bbq sites ("Feuerstellen"). See e.g. this Swiss German county site https://braetlistellen.ch/ . Therefore it's not fitting to e.g. the benches and picnictables theme.

In fact, there are several tagging aspects, and it may be a Swiss thing aside highway rest areas (see this Overpass Query https://osm.li/NQY ). I simply had to choose one main tag when creating new entries.

What I really don't understand how to turn this layer to a theme and how to publis it to the (Swiss) public.

pietervdvn commented 1 month ago

As long as you want to have only this single layer, you can just share the link as you did above. If you want to have multiple layers (e.g. also benches), then you can go via studio -> create a theme -> add some general information and add this layer and other layers you want.

If you want it to be included into the official MapComplete (so that it is shown for everyone on MapComplete.org), then I (or another maintainer) has to include this - e.g. via a pull request.

It seems like you are also interested in the barbeques. Personally, I prefer to have separate layers for those, e.g. a layer with barbeques (https://wiki.openstreetmap.org/wiki/Tag:amenity%3Dbbq), a layer with fire pits, one with picnic tables and/or shelters, and then one for picnic sites.

One can determine if a picnic site has a bbq/fire pit/... nearby by querying (although this is quite advanced to do)

sfkeller commented 1 month ago

It seems like you are also interested in the barbeques.

Exactly.

Personally, I prefer to have separate layers for those, e.g. a layer with barbeques (https://wiki.openstreetmap.org/wiki/Tag:amenity%3Dbbq), a layer with fire pits, one with picnic tables and/or shelters, and then one for picnic sites.

Ok. Let's make 4 layers.

I can't find the "the benches and picnictables theme" you referred to above, gives ERROR 404. So, there's one layer left to configure for barbeques (bbq), right?

One can determine if a picnic site has a bbq/fire pit/... with nearby by querying (although this is quite advanced to do)

I've seen some JavaScript in some layers/themes: What would the goal be to determine if a picnic site has a bbq nearby? To make a theme with all 4 OSM elements?

pietervdvn commented 1 month ago

I can't find the "the benches and picnictables theme" you referred to above, gives ERROR 404.

Fixed in the original comment

What would the goal be to determine if a picnic site has a bbq nearby?

This depends. It can be to set a flag to the bigger picnic site, that a bbq-area is nearby - which allows for filtering.