Skip to content

Commit

Permalink
issue yurykorzun#35; using map.setView instead of zoom and pan separa…
Browse files Browse the repository at this point in the history
…tely to fix a bug in safari
  • Loading branch information
Dan Grebb committed Aug 14, 2016
1 parent 8f93455 commit 24261a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/app/components/mapService/mapService.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,7 @@

var nhoodCenter = layerBounds.getCenter();
nhoodCenter.lng = nhoodCenter.lng - 0.001;
map.panTo(nhoodCenter);
map.setZoom(16, { animate: false });
map.setView( nhoodCenter, 16, { animate: true });
map.invalidateSize();

loadStreets(properties.id, map);
Expand Down

0 comments on commit 24261a7

Please sign in to comment.