Ran
|
Files
53
|
Run time
–
|
Badge
Embed ▾
README BADGES
|
push
travis-ci
Rescale map after adding markers with labels Markers with labels are added through callback to mw.loader. Which means that they are not available when the map is scaled to show all markers. Therefore I have extracted the rescaling code into two functions (getBounds and setZoom) which can be called at the original location for this code and after adding marker with label. Split into two functions as code for centering the map also needs the bounds object. This commit was merged in Oct 2012, but for some reason it doesn't exist on master (or 3.0.x), so I'm submitting it again Fixes bug 40791 Change-Id: I61dbd4984
765 of 1971 relevant lines covered (38.81%)
4.46 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|