Skip to content

Commit

Permalink
Sync default maxLevel with default ZoomButton.maxZoom (#1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro authored and mbarto committed Oct 3, 2016
1 parent 7ed438f commit e777e1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/client/components/mapcontrols/scale/ScaleBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var ScaleBox = React.createClass({
getDefaultProps() {
return {
id: 'mapstore-scalebox',
scales: mapUtils.getGoogleMercatorScales(0, 21),
scales: mapUtils.getGoogleMercatorScales(0, 28),
currentZoomLvl: 0,
onChange() {},
readOnly: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('ScaleBox', () => {
expect(domNode.id).toBe('mapstore-scalebox');

const comboItems = Array.prototype.slice.call(domNode.getElementsByTagName('option'), 0);
expect(comboItems.length).toBe(22);
expect(comboItems.length).toBe(29);

expect(comboItems.reduce((pre, cur, i) => {
const scale = parseInt(cur.innerHTML.replace(/1\s\:\s/i, ''), 10);
Expand Down

0 comments on commit e777e1a

Please sign in to comment.