Skip to content

Commit

Permalink
'fitExtent' is deprecated in OL 3.7 and up, changed to using 'fit' now.
Browse files Browse the repository at this point in the history
  • Loading branch information
richard3d committed Feb 27, 2016
1 parent 3e3459a commit 548edfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/map/MapService.js
Expand Up @@ -254,7 +254,7 @@
map.beforeRender(pan, zoom);
}

view.fitExtent(extent, map.getSize());
view.fit(extent, map.getSize());
};

this.zoomToLayerFeatures = function(layer) {
Expand Down

0 comments on commit 548edfb

Please sign in to comment.