Better-osm-org: a script that adds useful little things to osm.org

If you are interested in new features for iD, you can like this issue.

3 Likes

Hello. Is it possible to add a drop-down menu to the Communities option at the top of the osm.org homepage? Can such a feature be added to Better-osm-org? I haven’t created it on Github yet because I’m not entirely sure about this suggestion.

(The main inspiration for this suggestion is this: This forum is really hard to find actually! )

An example image that better illustrates the suggestion:

1 Like

Of course, I would like to see a link to the forum in the website header (this has been requested for a long time), but it is somewhat useless for the script — users of the script are likely to know about the forum. In other words, this feature is useful for beginners, but beginners do not know about the script.

Workarounds:

  • I go to the forum by typing com... in the address bar. To make sure this works, add a link to the forum to your browser bookmarks.

  • Or add it to your bookmarks bar.

  • Add a link to the forum in the Edit menu. Recently, you can add your own links there.

2 Likes

For the same reason, I am unlikely to make notifications about new comments to changesets (as was recently discussed in Slack). This is necessary for beginners, because they have no idea how cartographers interact.

Although this is not the only reason: osm.org doesn’t have a proper API for receiving comments. Although it is not difficult to make of a dirty hack to do this.

Can Better-osm-org be added to this page: Quality assurance - OpenStreetMap Wiki
If it can be added, which category on the page should it be added to?

1.5.0

:world_map: Custom map layers

shift + S or :gear: in right pane

p.s. it is better to use transparent layers together with vector styles

:artist_palette: Custom vector styles

Agree, ShortBread’s style is pretty boring. How about community-created styles?

Or… StreetComplete style?

You can open this menu with shift + V or the :artist_palette: button in the right pane.
(Chrome users, suffer. This menu may not work the first time:) upd: read this

If you know of any notable vector styles that are described via a JSON file, please share them.

:amphora: OpenHistoricalMap βββ

Some of the script’s features now work with OpenHistoricalMap, such as viewing changesets.

It is clear that OHM data has its own specifics and there is room for improvement, but let this be the first step.

(custom layers are currently only available for the OpenStreetMap/ShortBread layer)

If you are interested in further development, you can submit an comment on GitHub Support OpenHistoricalMap · Issue #515 · deevroman/better-osm-org · GitHub I don’t promise to add features quickly, but I’ll try to fix reports that the script breaks something.

Other

  • For the ESRI layer, the date of shooting is now displayed
  • Render light:direction=* and direction=* with intervals
  • Key V for switch between raster and vector layers

URL for force update

9 Likes

It appears there’s a workaround for Chrome users. In TamperMonkey’s settings, turn on advanced user mode and change the “Content Script API” setting to “Userscript API Dynamic.”


In short, it forces Chrome to run a script before the site’s scripts begin executing. This is necessary for the script to override the MapLibre source code, which downloads styles and vector tiles.
Documentation | Tampermonkey

1 Like

In 1.5.3, I added uploading photos to Panoramax for shop=*, amenity=* and tourism=*. So far, in my opinion, this feature is a bit raw, so you need “Enable debug and experimental features” in script settings.

panoramax

p.s. If you were also triggered by artifacts in the video → Allow to attach videos

Other:

  • Links in Edit can now be swapped
  • alt + shift + J — like alt + J, opens objects in Level0, but forces it to download all child objects (docs). This is useful if you want to see geometry on the map in Level0.
6 Likes

1.5.5:

  • in the members of the relations, you can view the child relation by hovering

rel

So far, this only works with nesting of 1. But I find it hard to remember a valid more nested relation

To search for such errors: overpass turbo

11 Likes

upd: Update ViolentMonkey to 2.34.0, If satellite images don’t work for you

One of the latest ViolentMonkey updates (probably v2.32) broke the satellite imagery functionality (maybe something else). I don’t know what’s wrong yet, but you can disable auto-updates for the extension in Firefox.

3 Likes

1.5.7

  • Added filters by note creation date:

  • Auto-completion of popular hashtags for notes is available under the experimental flag:

You can add your own ideas for developing this feature here: autocomplete hashtags when commenting notes? · Issue #517 · deevroman/better-osm-org · GitHub


I also collected most of the changes made during the year in my diary:

6 Likes

1.5.8.5

  • Fixed authorization in OsmCha
  • Quick bonus: now shows the date of routing data:

6 Likes

It is worth noting that all three engines provide the date used in three different ways. And only GraphHopper gives it immediately in the API response.

It would be cool if someone contacted Valhala (now you need to make an additional request to https://valhalla1.openstreetmap.de/status) and OSRM (need to be parsed https://map.project-osrm.org/timestamps/) with a suggestion to do it by analogy with GraphHopper. I think after that, this feature can be easily integrated into the OSM site itself.

Are there styles or vector layers that you think would be better to have as a featured layer?

1 Like

It depends on what you’re talking about. If we are talking about styles that use OSMF tiles, then I only remember one thing osmf_shortbread

I was told at Discord that someone are working on a style for Australia. I also remember a simple map style from the #30DayMapChallenge participant.

There are a lot of cartostyles that don’t use OSMF tiles. Some styles that are available as json are available in the script. However, I don’t believe in integrating. How long did we wait for MapTiler approval? And it will be needed because without relaxing the CSP, you will not be able to display data from other domains where it is usually located.


I see a vicious circle here. I don’t see any motivation from the community (other than personal enthusiasm or use in a personal project) to create cartostyles. Plus, Shortbread is data-poor tiles. They are only good as a background for other data. And if there are no styles, then no one will work on improving their integration into the website.

1 Like

By the way, I forgot to say that I added a map style to the examples that uses indoor= data.

I don’t like it yet because it uses Carto in the background, but it might be a good starting point for someone: better-osm-org/misc/assets/vector-styles/indoorequal-level0-style.json at master · deevroman/better-osm-org · GitHub

To prove that Shortbread is good as a background, I added this same overlay to the plugin for EveryDoor:

2 Likes

Shameless plug :grinning_face:

While that’s still limited by what’s in Shortbread 1.0, it inclides a lot more information (e.g. cuisine on restaurants, which is in the schema but ignored by Versatiles Colorful).

(and to be fair you did mention it already)

Part of the problem with lack of adoption of Shortbread 1.0 is the “obviously missing” stuff like barriers. I suspect that is why people are looking at other schemas instead.

1 Like

btw, do we even have a tutorial on how to play with Shortbread? For example, on Maputnik. The wiki page about OSMF tiles is criminally small:

I remember I had to work hard to get the tiles to display (if I remember correctly there were problems with glyphs), although it clearly begs to add Shortbread to the default templates:

2 Likes

Looking at this the other way around, which documentation is there around Maputnik? What do I need to do to use it with a vector style installed on a web server? “Open” has some text " Load from a URL. Note that the URL must have CORS enabled., but open what exactly?

Well, at least there is a button for uploading a JSON file from the computer :)

It’s worth noting that I’m not saying I like Maputnik. It’s just that it’s a recommended tool for MapLibre, so this is the first thing that came to my mind. Yes, when you figure out how to create OSMF tiles, the next step is to painstakingly configure the style.

Not to mention that many styles exist only in conjunction with JavaScript.