ajaxmap freezed

Topics: SharpMap v2.0
Dec 10, 2007 at 6:01 AM
Hi All. I am newbie in sharpmap.Now I meet a problem.When I use my mousewheel in ajaxmap ,the map is freezed sometimes.How can I solve this problem?Somebody meeting same problem ?
Sorry for my bad English!
Dec 10, 2007 at 6:20 AM
HI, I solved this issue:
http://www.codeplex.com/SharpMap/WorkItem/View.aspx?WorkItemId=14165
Dec 21, 2007 at 4:57 PM
Edited Dec 21, 2007 at 4:58 PM
I found the solution to this problem was to set the event property before the src property in the SharpMap_GetCallbackResponse function of AjaxMap.js

It seems that IE7 prefers it that way.
http://www.thefutureoftheweb.com/blog/image-onload-isnt-being-called

So instead of

imgdnew.src = url;
imgdnew.onload = function(){ obj.mapReady=1; imgdnew.onload=''; if(obj.zoomEnded==1) { SharpMap_BeginFade(obj); } };

do ...

imgdnew.onload = function(){ obj.mapReady=1; imgdnew.onload=''; if(obj.zoomEnded==1) { SharpMap_BeginFade(obj); } };
imgdnew.src = url;