www.openstreetmap.org, Search function & Query nearby Topic is solved

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
User avatar
AndieM
Hobby Astronomer
Hobby Astronomer
Posts: 19
Joined: 2019-04-11, 14:49

www.openstreetmap.org, Search function & Query nearby

Post by AndieM » 2025-07-19, 20:15

OS: Debian 12; GNU/Linux
Palemoon 33.8.0, GTK3 (MX-Repo-Version)
(I tested it with a new pm profile..)

When I open https://www.openstreetmap.org/ neither the search function nor the function to show objects nearby ("Query features", last button on the right) work.

Code: Select all

Content Security Policy: Ignoring “'unsafe-inline'” within style-src: nonce-source or hash-source specified  
(unknown)

TypeError: Intl.DisplayNames is not a constructor[Learn More]  
index-aeea405eb7ba8ab2634b26502c1f924bd9e9961b4d93bb4a300694529c793926.js:5834:22
	<anonymous> https://www.openstreetmap.org/assets/index-aeea405eb7ba8ab2634b26502c1f924bd9e9961b4d93bb4a300694529c793926.js:5834:22
	<anonymous> https://www.openstreetmap.org/assets/index-aeea405eb7ba8ab2634b26502c1f924bd9e9961b4d93bb4a300694529c793926.js:6048:2

jQuery.Deferred exception: OSM.MappedElement is not a function @https://www.openstreetmap.org/assets/index-aeea405eb7ba8ab2634b26502c1f924bd9e9961b4d93bb4a300694529c793926.js:302:32
mightThrow@https://www.openstreetmap.org/assets/application-323a1d4c70f60c001e06f8ec1838293c3233f41de6920e95d2479e03187ad8d4.js:3479:29
resolve/</process<@https://www.openstreetmap.org/assets/application-323a1d4c70f60c001e06f8ec1838293c3233f41de6920e95d2479e03187ad8d4.js:3547:12
 undefined  
application-323a1d4c70f60c001e06f8ec1838293c3233f41de6920e95d2479e03187ad8d4.js:3773:18

TypeError: OSM.MappedElement is not a function[Learn More]  
index-aeea405eb7ba8ab2634b26502c1f924bd9e9961b4d93bb4a300694529c793926.js:302:32
	<anonymous> https://www.openstreetmap.org/assets/index-aeea405eb7ba8ab2634b26502c1f924bd9e9961b4d93bb4a300694529c793926.js:302:32
	mightThrow https://www.openstreetmap.org/assets/application-323a1d4c70f60c001e06f8ec1838293c3233f41de6920e95d2479e03187ad8d4.js:3479:29
	resolve/</process< https://www.openstreetmap.org/assets/application-323a1d4c70f60c001e06f8ec1838293c3233f41de6920e95d2479e03187ad8d4.js:3547:12
Every time the search is submitted (by Enter or clicking on the "magnifying glass"-button) this Exception is triggered (Nothing happens on the site):

Code: Select all

TypeError: OSM.router is undefined[Learn More]  
index-aeea405eb7ba8ab2634b26502c1f924bd9e9961b4d93bb4a300694529c793926.js:2836:5
	OSM.Search/< https://www.openstreetmap.org/assets/index-aeea405eb7ba8ab2634b26502c1f924bd9e9961b4d93bb4a300694529c793926.js:2836:5
	dispatch https://www.openstreetmap.org/assets/application-323a1d4c70f60c001e06f8ec1838293c3233f41de6920e95d2479e03187ad8d4.js:5135:27
	add/elemData.handle https://www.openstreetmap.org/assets/application-323a1d4c70f60c001e06f8ec1838293c3233f41de6920e95d2479e03187ad8d4.js:4939:28
"Query features" doesn't shows any reaction in the error console. (You need to zoom in, if the button says so, that's normal.) - Before the problems appeared, clicking the button changed the cursor to a question mark and you could create a query by clicking in the map.

Any ideas what causes this? And/or how to fix?

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2548
Joined: 2018-05-05, 13:29

Re: www.openstreetmap.org, Search function & Query nearby

Post by vannilla » 2025-07-19, 20:22

Code: Select all

TypeError: Intl.DisplayNames is not a constructor
UXP does not support this feature at the moment.
You have to use something else until all this Intl stuff is implemented.

User avatar
Moonchild
Project founder
Project founder
Posts: 39110
Joined: 2011-08-28, 17:27
Location: Sweden

Re: www.openstreetmap.org, Search function & Query nearby

Post by Moonchild » 2025-07-19, 20:56

vannilla wrote:
2025-07-19, 20:22
until all this Intl stuff is implemented.
Until enough of it is implemented anyway. As is the "norm" these days, everything is now a "living standard" i.e. it's never standardized and constantly changes.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
AndieM
Hobby Astronomer
Hobby Astronomer
Posts: 19
Joined: 2019-04-11, 14:49

Re: www.openstreetmap.org, Search function & Query nearby

Post by AndieM » 2025-07-19, 23:31

Hm, tried to fix it, but without success.

After some research in MDN I tried to include the content of [https://polyfill-fastly.io/v3/polyfill. ... ~locale.en] (while sending PM-Useragent, with FF-compat it's empty…) by writing it's content into a script-tag in the site head by a userscript (Using "Greasemonkey for Pale Moon").

Sadly the polyfill had no chance to help. My "done"-Debug-Console-Message (Written directly after inserting the code) appears after the intl-error :-(

Code: Select all

Content Security Policy: Ignoriere “'unsafe-inline'” innerhalb von style-src: nonce-source oder hash-source angegeben  
(unbekannt)
TypeError: Intl.DisplayNames is not a constructor[Weitere Informationen]  
index-aeea405eb7ba8ab2634b26502c1f924bd9e9961b4d93bb4a300694529c793926.js:5834:22
done  
osmIntl_fix.user.js:15:9
[…]
Userscript-Metadata:

Code: Select all

// ==UserScript==
// @name        osmIntl_fix
// @namespace   localhost
// @include     https://www.openstreetmap.org/*
// @version     1
// @grant       none
// @run-at      documentStart
// ==/UserScript==
Any ideas how I can get it inserted earlier? Or other ideas to solve it client-side? (osm is really usefull…)

User avatar
adoxa
Astronaut
Astronaut
Posts: 616
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: www.openstreetmap.org, Search function & Query nearby

Post by adoxa » 2025-07-20, 00:22

Here's a Modify HTTP Response filter to remove it (I believe it's only used for the language labels).

Code: Select all

[["www.openstreetmap.org",["/index-.*\\.js$/",["new Intl.DisplayNames(OSM.preferred_languages, { type: \"language\" })","{of: a => a}"]]]]

damjang
Fanatic
Fanatic
Posts: 115
Joined: 2012-01-14, 11:22

Re: www.openstreetmap.org, Search function & Query nearby

Post by damjang » 2025-07-20, 11:31


User avatar
Moonchild
Project founder
Project founder
Posts: 39110
Joined: 2011-08-28, 17:27
Location: Sweden

Re: www.openstreetmap.org, Search function & Query nearby

Post by Moonchild » 2025-07-20, 12:22

It's astonishing to me that developers of all people don't understand that "forked from Firefox 52" is not the same as "based on" (i.e. almost equal).
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Gemmaugr
Astronaut
Astronaut
Posts: 547
Joined: 2025-02-03, 07:55

Re: www.openstreetmap.org, Search function & Query nearby

Post by Gemmaugr » 2025-07-20, 17:48

Moonchild wrote:
2025-07-20, 12:22
It's astonishing to me that developers of all people don't understand that "forked from Firefox 52" is not the same as "based on" (i.e. almost equal).
Indeed, it's exhausting. I advocate for Pale Moon on a few sites, and whenever this is brought up, I just compare it to saying that chromium is not old Safari, and Firefox is not old Netscape. They usually become quiet after that.
If not, they say that it's barely updated, and I point them to the Release Notes. A few recalcitrant ones then go on about how it can't even run modern sites like Youtube. To which point I list the almost complete vertical web integration that is the google open prison garden. Despite all that, you still can't convince everyone.
"Judge a person not by their superficial identity attributes, but by the content of their character."
"Organized Identity Politics are the bane of civilized society."
"Cognitive dissonance hypocrisy is a pandemic."
"Capitalism is the worst form of economic system, except for all the others."

Lucio Chiappetti
Keeps coming back
Keeps coming back
Posts: 911
Joined: 2014-09-01, 15:11
Location: Milan Italy

Re: www.openstreetmap.org, Search function & Query nearby

Post by Lucio Chiappetti » 2025-07-20, 19:39

AndieM wrote:
2025-07-19, 20:15
When I open https://www.openstreetmap.org/ neither the search function nor the function to show objects nearby ("Query features", last button on the right) work.
For me (regular OSM user) the search function works normally. I never used the "Query features" button you mention, usually I use mouse MB3 and do query features from there, but it appears both are working for me.
There should be OSM support mailing lists or other support tools to report problems (I used one for umap, which is an OSM collateral, and they finally entered my notice in their bug tracker and fixed the problem(.
The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. (G.B. Shaw)

User avatar
AndieM
Hobby Astronomer
Hobby Astronomer
Posts: 19
Joined: 2019-04-11, 14:49

Re: www.openstreetmap.org, Search function & Query nearby

Post by AndieM » 2025-07-20, 20:16

Thanks for your efforts fixing it on the osm-side! :thumbup:

Can confirm, it now also works for me again :-)

(Thought I successfully tested the Modify-HTTP-Response-snipped, before I checked it works without again…)