[Chameleon-dev] [Bug 1137] New: Adding real-world parameters to some objects in cwc_roi.js

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Tue Sep 6 01:43:17 EDT 2005


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

           Summary: Adding real-world parameters to some objects in
                    cwc_roi.js
           Product: Chameleon
           Version: 2.2
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Widget
        AssignedTo: chameleon-dev at lists.maptools.org
        ReportedBy: jacob.delfos at maunsell.com


I'm trying to make use of the javascript ROI objects (for a digitizing widget),
but as soon as the extent is changed, certain parameters become useless, in that
they were only valid for that extent (coordinates stored in pixel space). I
realise that for most ROI applications this is not a problem, since the
information gets stored in the session correctly. However, I am not submitting
the page, and therefore need the javascript objects to remain valid. I want to
ask whether I can make the following changes for the Circle and Polygon objects:

add on line 774:
    this.geoRadius = 0; // allows parameters to be
    this.geoX = 0;      // correctly retrieved from javascript after zoom
    this.geoY = 0;

add on line 944:
        this.geoRadius = aRadius[0]-aCenter[0]; //keep a record of the 
        this.geoX = aCenter[0];             //parameters in real-world space
        this.geoY = aCenter[1];


add on line 989:
    this.geoCoords = "";   //used to store the nodes
                           //in geographic coordinates, as derived
                           //in "Serialize()"

add on line 1044 (after for-loop):
    this.geoCoords = szCoords; // keep a record of the geographical nodes


As far as I can tell, these changes should not cause any problems elsewhere, or
require a lot of additional processing. 

Jacob



------- 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 Chameleon-dev mailing list