thiemowmde added a comment.

  There is a highly relevant piece of code in the #Kartographer 
<https://phabricator.wikimedia.org/tag/kartographer/> extension that does the 
opposite: The input is a zoom factor from 0 to 19 and the output a precision. 
You "just" need to turn the formula around.
  
  
https://phabricator.wikimedia.org/diffusion/EKAR/browse/master/modules/box/Map.js$782
  
  I also suggest to limit the zoom factor, i.e. never go to 19 but stop much 
earlier. Maybe just keep using the current 13 as a limit. I find this 
reasonable. Such a limit is relevant because many coordinates on Wikidata 
appear to have an unreasonably high precision because of conversion artifacts.
  
  I'm not sure to what "Marius lined out a solution" refers to. Do you have a 
link?

TASK DETAIL
  https://phabricator.wikimedia.org/T211676

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: thiemowmde
Cc: Nikki, LennardHofmann, Ainali, Ayack, Aklapper, Lucas_Werkmeister_WMDE, 
Sjoerddebruin, Lydia_Pintscher, aude, thiemowmde, hoo, TheDJ, mrephabricator, 
Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, Akuckartz, 
Alilje, Nabetaro, Nandana, MSantos, lucamauri, Lahi, Gq86, Looniverse, 
GoranSMilovanovic, Sturm, QZanden, Orienteerix, LawExplorer, Ddproxy, _jensen, 
rosalieper, JGirault, Scott_WUaS, phabyogi, GAllegre, Susannaanas, ferdbold, 
lxbarth, Planemad, Wikidata-bugs, awight, Yurik, Mbch331, Jay8g
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to