Fix marker position logic and zoom range calculation on Kzed and Flat

This commit is contained in:
Mike Primm 2011-08-02 21:51:00 -05:00
parent 4bf9f9a978
commit ee790f86ed
4 changed files with 3 additions and 3 deletions

View file

@ -14,8 +14,7 @@ var FlatMapType = DynmapTileLayer.extend({
errorTileUrl: 'images/blank.png'
},
initialize: function(options) {
options.maxzoomout = options.mapzoomout || options.world.extrazoomout;
options.maxZoom = options.mapzoomin + options.maxzoomout;
options.maxZoom = options.mapzoomin + options.mapzoomout;
L.Util.setOptions(this, options);
this.projection = new FlatProjection({mapzoomout: options.mapzoomout});
},