Hi Strainu,
as Michael already pointed out, the (currently hard-coded) zoom value
can be found in CachingKartographerEmbeddingHandler::getWikiText.
I guess we could try to derive the zoom from the precision of the
coordinate (GlobeCoordinateValue::getPrecision), but other than that, I
don't have a (nice and easy to implement) idea for improving this.
Cheers
Marius
On 5/9/20 12:42 AM, Michael Holloway wrote:
Hi Strainu,
It's probably best if a Wikibase dev confirms, but I think this is what
you're looking for:
https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/Wikibase/+/master/lib/includes/Formatters/CachingKartographerEmbeddingHandler.php#198
-mdh
On Fri, May 8, 2020 at 12:44 PM Strainu <strain...@gmail.com> wrote:
Hey folks,
Can someone point me to the code that decides which zoom to use for
the maps that are displayed in the items with coordinates?
Thanks,
Strainu
_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l