GlobalCarbonAtlas / bobcat

Interactive, dynamic, zoomable, synchroneaously connected to each other, and exportable to Google Earth maps
http://www.globalcarbonatlas.org/?q=flux_maps
Other
4 stars 0 forks source link

More progressive zoom #29

Open PBrockmann opened 9 years ago

PBrockmann commented 9 years ago

Actually the numbers of zoom are set to 8 according to a resolutions array and the relation this.wms1.resolutions[i] = this.resolutions[i] / this.width_map;

// About definition of resolutions, read http://trac.osgeo.org/openlayers/wiki/SettingZoomLevels this.resolutions = [deltaX, deltaX / 2, deltaX / 4, deltaX / 8, deltaX / 16, deltaX / 32, deltaX / 64, deltaX / 128];

Could this be changed to a more progressive zoom 1, 0.9, 0.8, 0.7, ... ?

PBrockmann commented 9 years ago

Have tried this.resolutions = [deltaX, deltaX / 2, deltaX / 3, deltaX / 4, deltaX / 6, deltaX / 8, deltaX / 32, deltaX / 64];

Seems better... To try from http://webportals.ipsl.jussieu.fr/ScientificApps/dev/forge_patrick/wildBobcat/