[ka-Map-dev] [Bug 1363] New: Change map function doesn't work right in IE

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Wed Mar 15 15:18:11 EST 2006


http://bugzilla.maptools.org/show_bug.cgi?id=1363

           Summary: Change map function doesn't work right in IE
           Product: ka-Map
           Version: 0.2
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: core
        AssignedTo: ka-map-dev at lists.maptools.org
        ReportedBy: krassovskimb at ornl.gov


When map is changed function mySetMap(name) is called:
function mySetMap( name )
{
 myKaMap.selectMap( name );
}
Now if we want to execute some other JavaScript function immidiately after the 
map was changed:
function mySetMap( name )
{
 myKaMap.selectMap( name );
 alert ("I've done something!");
}
This code will work in Firefox (v. 1.5.0.1), but doesn't work IE (v.6.0.2900).
I started to check what is going and found the following flow of calls (please, 
correct me if I’m wrong): mySetMap(…) -> myKaMap.selectMap(…) -> 
kaMap.prototype.selectMap -> this.zoomToExtents(…) -> this.triggerEvent
(KAMAP_EXTENTS_CHANGED, this.getGeoExtents) -> kaMap.prototype.getGeoExtents . 
It looks like the last function getGeoExtents return values (return [minx, 
miny, maxx, maxy];), but then everything stops. I can’t understand why it does 
that and how to fix it. If you have any suggestions, I’ll be very grateful!

Misha



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Please do NOT reply to this email, use the link above instead to 
login to bugzilla and submit your comment. Any email reply to this
address will be lost.


More information about the ka-Map-dev mailing list