[openstreetmap/openstreetmap-website] Integrate human-readable wikidata browser plugin (PR #6127)
Anton Khorev
notifications at github.com
Sun Jun 29 15:10:07 UTC 2025
@AntonKhorev commented on this pull request.
> @@ -23,6 +23,90 @@
};
OSM.MappedElement = function (map, type) {
+ let abortController = null;
+
+ function markWikidataLinkAsExplainable(i, link) {
Why is all of this wikidata code inside `OSM.MappedElement`? The idea behind `OSM.Element` vs `OSM.MappedElement` is that `OSM.MappedElement` has enough data to be displayed on the map. For wikidata you need access to tags, both `OSM.Element` and `OSM.MappedElement` have it.
A consequence of putting wikidata code inside `OSM.MappedElement` is that it won't run if you open an old version of a way or a relation, those don't fetch the data necessary for map rendering. But it will run for an old node.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6127#pullrequestreview-2969290389
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6127/review/2969290389 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250629/cd2abf6b/attachment.htm>
More information about the rails-dev
mailing list