Skip to content

Commit

Permalink
Merge pull request #34 from kavrillon/master
Browse files Browse the repository at this point in the history
fix(yandex): change zoom level when one marker
  • Loading branch information
dpellier authored Feb 15, 2017
2 parents 8120f8b + 4d8ab25 commit e58636f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/providers/yandex/Yandex.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ class Yandex extends Map {

// Center the map
this.map.setBounds(bounds);

// If one marker: readjust zoom because bounds are too small to show tiles
if (this.points && this.points.length === 1) {
this.setZoom(16);
}
}

load(callback, loadingMask) {
Expand Down

0 comments on commit e58636f

Please sign in to comment.