https://bugzilla.wikimedia.org/show_bug.cgi?id=36056
Web browser: ---
Bug #: 36056
Summary: SMW query printer ignores $egMapsGoogleMapsZoom
Product: MediaWiki extensions
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: SemanticMaps
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Mobile Platform: ---
When using Semantic Maps to return an #ask query result, it should use the
default zoom when there is only one location returned by the query. It does
not.
I tracked this to SM_MapPrinter.php line 158:
if ( $params['zoom'] === false && $locationAmount <= 1 ) {
$params['zoom'] = $this->service->getDefaultZoom();
}
At first glance the problem seems to be that $locationAmount reports *double*
the number of locations that are actually being returned by the query, which
prevents the default zoom from being assigned.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l