Last modified: 2013-02-12 05:55:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42791, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40791 - Markers with labels not taken into account when scaling the map (googlemaps3)
Markers with labels not taken into account when scaling the map (googlemaps3)
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Maps (Other open bugs)
master
All All
: Normal normal (vote)
: ---
Assigned To: Jeroen De Dauw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-05 11:20 UTC by Mathias Lidal
Modified: 2013-02-12 05:55 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Mathias Lidal 2012-10-05 11:20:59 UTC
When using markers with labels these labels are not taken into account when scaling the map (e.g. if you have one marker with labels and one without, the map will be centered on the second one and scaled all the way in)

The reason is that markers with labels are added in a callback to mw.loader (jquery.googlemaps.js, line 110), so they are not added until after the map has been zoomed (line 460)
Comment 1 Mathias Lidal 2012-10-05 11:27:59 UTC
Have commited a possible fix: https://gerrit.wikimedia.org/r/26772

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links