[ka-Map-dev] [Bug 1574] New: KAMAP_MAP_CLICKED broken

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Wed Aug 30 14:35:32 EDT 2006


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

           Summary: KAMAP_MAP_CLICKED broken
           Product: ka-Map
           Version: 0.3
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: core
        AssignedTo: ka-map-dev at lists.maptools.org
        ReportedBy: brabec at gmail.com


KAMAP_MAP_CLICKED does not return correct Geo coordinates of the click. Probably
missing the 'adjustPixPosition' call, so the correct version of the dispatch
should be as follows:

kaNavigator.prototype.dispatchMapClicked = function(px,py) {
    var a = this.adjustPixPosition( px,py );
    var p = this.kaMap.pixToGeo(a[0], a[1]);
    this.kaMap.triggerEvent(KAMAP_MAP_CLICKED, p);
};



------- 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