engaging-computing / phpSENSE

An educational data analytics platform.
http://isenseproject.org
14 stars 10 forks source link

map zooms in too much #555

Closed fgmart-zz closed 11 years ago

fgmart-zz commented 11 years ago

check out http://isenseproject.org/highvis.php?sessions=2905

it comes up with a default zoom so tight there is no image.

please fix.

jdalphond commented 11 years ago

I am not sure that there is a solution to this problem. Several people online have been complaining about this. There is a 404 error thrown for each of the tiles that it can not find. It may be possible to catch the 404 and reload the map, but that may be clunky

On Thu, Nov 29, 2012 at 7:30 PM, Fred Martin notifications@github.comwrote:

check out http://isenseproject.org/highvis.php?sessions=2905

it comes up with a default zoom so tight there is no image.

please fix.

— Reply to this email directly or view it on GitHubhttps://github.com/isenseDev/iSENSE/issues/555.


James Dalphond UML Computer Science Engaging Computing Group

mmcguinn commented 11 years ago

I'm going to start looking into this. Worst case solution is a check on the size of the bounding box (in lat lon) and to artificially enlarge it if it's too small.

mmcguinn commented 11 years ago

Okay, I've made a pretty lame fix, but unfortunately there's no way to tell when zoom stops working. Not only that, but zooming is asynchonous, so after you set the zoom bounds on the lat,lon points, its undefined when it actually finishes selecting the zoom level.

Basically, after the zoom is set, it waits 300 milliseconds and then sets the zoom level to 18 if its any higher than that.