MediaWiki talk:Wikiminiatlas.js

Latest comment: 1 year ago by Arlolra in topic Prepare for T314318
Please consider reporting bugs and wishlist items at the WikiMiniAtlas Issue Tracker on GitHub.


<div/>? <span/>? <iframe/>? edit

Hey folks, I recently found 2 <span/>s, 3 <div/>s, and an <iframe/> in this js page, what should we do for em? --Liuxinyu970226 (talk) 14:11, 15 February 2017 (UTC)Reply

Hey Liuxinyu970226, can you elaborate a bit more what you think is the issue here? --Dschwen (talk) 18:36, 6 March 2017 (UTC)Reply
Oh I see those wrong tags are already resolved by Krinkle. So just close this section. --Liuxinyu970226 (talk) 10:24, 7 March 2017 (UTC)Reply
Ah, I see what you meant! Hmm, yeah I added them years ago as I noticed that it fixed a browser crash. That bug is probably long gone though. --Dschwen (talk) 16:38, 7 March 2017 (UTC)Reply

Bhojpuri wikipedia (bh.wiki) edit

  buttonTooltip : {
    bh:'इंटरैक्टिव नक्सा पर लोकेशन देखल जाय',

  map : {
   bh:'नक्सा',

  close : {
   bh:'बंद करीं',

  resize : {
   bh: 'साइज बदलीं',

Please add these translation. Thanks.--SM7 --talk-- 11:58, 27 February 2017 (UTC)Reply

Created <https://github.com/dschwen/wikiminiatlas/issues/23>. —MarcoAurelio 19:06, 5 March 2017 (UTC)Reply
  Done, thanks! --Dschwen (talk) 01:57, 6 March 2017 (UTC)Reply
User:SM7, could you please use the meta version of the script and not make a copy? Did you need some customization? I just spent half an hour adding labels for bh, and trying to figure out why they don't show up on bhwiki :-). --Dschwen (talk) 03:18, 6 March 2017 (UTC)Reply
Dschwen I am sorry. I have removed local copy now. I created locale version because we have some issue regarding bh/bho as language code. In the preferences for language settings one has to choose either bh-Bhojpuri or bho-Bhojpuri for the same language and I was confused which one would work. Thus. I translated for both. Now when I have removed local copy, Can you please guide me - Do we need to add translations for both the codes (i.e. "bh" as well as "bho")?--SM7 --talk-- 05:02, 6 March 2017 (UTC)Reply
I have added an exception, where bho is internally treated as bh. Is there a difference between the two? I might need to add that exception in another place. --Dschwen (talk) 13:50, 6 March 2017 (UTC)Reply
Dschwen I am not sure about diff but yes for localisation on translatewiki all we translate are bho vaersions. --SM7 --talk-- 14:14, 6 March 2017 (UTC)Reply

Screw up.. edit

I just screwed something up during the addition of two more languages that caused a few languages to get jumbled up. Fixing it right now. --Dschwen (talk) 17:33, 6 March 2017 (UTC)Reply

The label database is versioned, so I was able to roll back the screwed up languages. An update is running now. --Dschwen (talk) 18:37, 6 March 2017 (UTC)Reply
Ok, worse than I thought. Languages are mixed together now (rollback doesn't help). I am rebuilding all languages with a new revision number that is not occupied by any other language. Until the update is finished expect to see seemingly random labels on the map :-( --Dschwen (talk) 19:34, 6 March 2017 (UTC)Reply
Making some progress. It turns out the Catalan table in the GHEL coordinate database, which I use to generate my label database, was polluted with coordinate-page_id pairs from some random different language (Ukrainian maybe?). Of course those page_ids lead to seemingly random pages on the Catalan wikipedia. I wonder if there are further such cases. I may have to purge and rebuild other GHEL tables. --Dschwen (talk) 23:08, 6 March 2017 (UTC)Reply
This should be   Done. Please let me know if anything is still off. --Dschwen (talk) 12:59, 15 March 2017 (UTC)Reply
A bit too late, but I've been running the GHEL parser again with dumps accessible from the old URLs and the database name is now u2815__p. Working on getting Commons dumped without getting "Out of memory" errors on the 6+ million coordinates. Dispenser (talk) 15:49, 16 March 2017 (UTC)Reply
Neat and not too late. I'll look into using your project and dropping my GHEL copy. --Dschwen (talk) 16:27, 20 March 2017 (UTC)Reply

Uncaught TypeError: V.csca is undefined edit

I hit this exception on a slow connection: ``` Uncaught TypeError: V.csca is undefined

   D https://wma.wmflabs.org/wikiminiatlas_extern.php:2293
   aW https://wma.wmflabs.org/wikiminiatlas_extern.php:2293
   dispatch https://wma.wmflabs.org/wikiminiatlas_extern.php:20
   handle https://wma.wmflabs.org/wikiminiatlas_extern.php:20
   add https://wma.wmflabs.org/wikiminiatlas_extern.php:20
   on https://wma.wmflabs.org/wikiminiatlas_extern.php:20
   each https://wma.wmflabs.org/wikiminiatlas_extern.php:19
   each https://wma.wmflabs.org/wikiminiatlas_extern.php:19
   on https://wma.wmflabs.org/wikiminiatlas_extern.php:20
   t https://wma.wmflabs.org/wikiminiatlas_extern.php:20
   ae https://wma.wmflabs.org/wikiminiatlas_extern.php:2293
   S https://wma.wmflabs.org/wikiminiatlas_extern.php:2293
   aQ https://wma.wmflabs.org/wikiminiatlas_extern.php:2293
   wikiminiatlasInstall https://wma.wmflabs.org/wikiminiatlas_extern.php:2293
   <anonymous> https://wma.wmflabs.org/iframe.html?wma=36.445873_28.223958_600_400_commons_19.931568569324178_en&globe=Earth&lang=commons&page=&awt=0:78
   f https://wma.wmflabs.org/wikiminiatlas_extern.php:19
   fireWith https://wma.wmflabs.org/wikiminiatlas_extern.php:19
   ready https://wma.wmflabs.org/wikiminiatlas_extern.php:19
   xt https://wma.wmflabs.org/wikiminiatlas_extern.php:19
   promise https://wma.wmflabs.org/wikiminiatlas_extern.php:19
   ready https://wma.wmflabs.org/wikiminiatlas_extern.php:19
   init https://wma.wmflabs.org/wikiminiatlas_extern.php:19
   st https://wma.wmflabs.org/wikiminiatlas_extern.php:19
   support https://wma.wmflabs.org/wikiminiatlas_extern.php:19
   <anonymous> https://wma.wmflabs.org/wikiminiatlas_extern.php:19
   <anonymous> https://wma.wmflabs.org/wikiminiatlas_extern.php:21

wikiminiatlas_extern.php:2293:7157

   D https://wma.wmflabs.org/wikiminiatlas_extern.php:2293
   aW https://wma.wmflabs.org/wikiminiatlas_extern.php:2293
   dispatch https://wma.wmflabs.org/wikiminiatlas_extern.php:20
   handle https://wma.wmflabs.org/wikiminiatlas_extern.php:20
   (Async: EventListener.handleEvent)
   add https://wma.wmflabs.org/wikiminiatlas_extern.php:20
   on https://wma.wmflabs.org/wikiminiatlas_extern.php:20
   each https://wma.wmflabs.org/wikiminiatlas_extern.php:19
   each https://wma.wmflabs.org/wikiminiatlas_extern.php:19
   on https://wma.wmflabs.org/wikiminiatlas_extern.php:20
   t https://wma.wmflabs.org/wikiminiatlas_extern.php:20
   ae https://wma.wmflabs.org/wikiminiatlas_extern.php:2293
   S https://wma.wmflabs.org/wikiminiatlas_extern.php:2293
   aQ https://wma.wmflabs.org/wikiminiatlas_extern.php:2293
   wikiminiatlasInstall https://wma.wmflabs.org/wikiminiatlas_extern.php:2293
   <anonymous> https://wma.wmflabs.org/iframe.html?wma=36.445873_28.223958_600_400_commons_19.931568569324178_en&globe=Earth&lang=commons&page=&awt=0:78
   f https://wma.wmflabs.org/wikiminiatlas_extern.php:19
   fireWith https://wma.wmflabs.org/wikiminiatlas_extern.php:19
   ready https://wma.wmflabs.org/wikiminiatlas_extern.php:19
   xt https://wma.wmflabs.org/wikiminiatlas_extern.php:19
   (Async: EventListener.handleEvent)
   promise https://wma.wmflabs.org/wikiminiatlas_extern.php:19
   ready https://wma.wmflabs.org/wikiminiatlas_extern.php:19
   init https://wma.wmflabs.org/wikiminiatlas_extern.php:19
   st https://wma.wmflabs.org/wikiminiatlas_extern.php:19
   support https://wma.wmflabs.org/wikiminiatlas_extern.php:19
   <anonymous> https://wma.wmflabs.org/wikiminiatlas_extern.php:19
   <anonymous> https://wma.wmflabs.org/wikiminiatlas_extern.php:21

```

Note we are seeing around 146 errors a day from WikiMiniAtlas in our production error logs, I wonder if it's this the culprit. Jon (WMF) (talk) 16:32, 18 September 2020 (UTC)Reply

I'll look into it. --Dschwen (talk) 17:29, 6 January 2021 (UTC)Reply
Hmmmm, I think I either need to figure out how to incorporate proper source mapping in my minification process, or switch WMA over to use the unminified version for a little bit. The error is related to the client side tile rendering code, that much I can see. --Dschwen (talk) 17:49, 6 January 2021 (UTC)Reply

I have resumed work on WMA. My first priority is to get the database adapted to the new cloud restrictions (no user DBs on replicas, no cross db joins). --Dschwen (talk) 17:21, 16 January 2021 (UTC)Reply

In the meantime I have updated the WMA VM and have data extraction running again (for a year now). Is this still an issue Jon (WMF)? If so then I can start debugging this, with throttling enabled in the Chrome dev tools. By the way on https://wma.wmcloud.org/ you can access a version that is not minified (except for dependencies). --Dschwen (talk) 22:50, 22 January 2022 (UTC)Reply


Prepare for T314318 edit

Tracked in Phabricator:
Task T297447

Hi,

Can someone make this forward / backwards compatible edit in preparation for enabling changes to how media is rendered?

https://meta.wikimedia.org/wiki/Special:ComparePages?page1=MediaWiki%3AWikiminiatlas.js&rev1=&page2=User%3AArlolra%2Fsandbox%2FWikiminiatlas.js&rev2=&action=&unhide=&diffmode=source

There's some explanation of the reason for this change at mw:Parsoid/Parser_Unification/Media_structure/FAQ#The_|class=_media_option_is_now_applied_to_the_wrapper

As an aside, I'm not sure these icons are even emitted anymore by Template:Coord, but cleaning that up can be a separate change, if necessary.

Thanks, Arlolra (talk) 18:14, 20 September 2022 (UTC)Reply

Done. Kind regards, — Tulsi 24x7 04:11, 21 September 2022 (UTC)Reply
Also requested at https://github.com/dschwen/wikiminiatlas/pull/39 Arlolra (talk) 18:23, 20 September 2022 (UTC)Reply
Thank you Arlolra (talk) 13:15, 21 September 2022 (UTC)Reply
Return to "Wikiminiatlas.js" page.