[Chameleon-dev] [Bug 1131] New: Projection Label not updated correctly

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Thu Aug 25 20:15:04 EDT 2005


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

           Summary: Projection Label not updated correctly
           Product: Chameleon
           Version: 2.2
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Widget
        AssignedTo: chameleon-dev at lists.maptools.org
        ReportedBy: jacob.delfos at maunsell.com


When using the jsapi, the projection label gives a "not found" error when the
projection is changed on the fly. Apparently, "goCWCJSAPI.oMap.projection" has a
leading "=", which the "goCWCJSAPI.oMap.validprojections[]" array values don't have.

To fix, change line 128 in ProjectionLabel.widget.php:

originally:
if ( goCWCJSAPI.oMap.validprojections[i] == goCWCJSAPI.oMap.projection )

fixed:
if ( goCWCJSAPI.oMap.validprojections[i] == CWCJSAPI.oMap.projection.substring(1))



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