zoom update

This commit is contained in:
Peter Cottle 2013-01-08 14:45:02 -08:00
parent d7bb4064dc
commit 1ea23f7b32
3 changed files with 12 additions and 6 deletions

View file

@ -439,9 +439,11 @@ var WindowSizeAlertWindow = ViewportAlert.extend({
var ZoomAlertWindow = ViewportAlert.extend({
initialize: function(options) {
if (!options || !options.level) { throw new Error('need level'); }
this.eventBatonName = 'zoomChange';
this.markdowns = [
'## That zoom level is not supported :-/',
'## That zoom level of ' + options.level + ' is not supported :-/',
'Please zoom back to a supported zoom level with Ctrl + and Ctrl -',
'',
'(and of course, pull requests to fix this are appreciated :D)'