[Chameleon] ProjectionSelector and Cursorpos labels

Paul Spencer pspencer at dmsolutions.ca
Mon Jan 30 13:23:53 EST 2006


you can use the [$ $] replacement to replace anything in the template  
before widgets are processed so theoretically you could put:


in your widget attribute and use:

if ( ... )
     $oApp->setVar('longLabel', 'X:');
     $oApp->setVar('longLabel', 'Longitude:');

in your index.phtml file where the if determines which projection is  
in use.



On 30-Jan-06, at 2:56 AM, Yahya wrote:

> Hi all,
> I was wondering if there is any way to dynamically change the label  
> of the
> Cursorpos widgets when the map projection is changed using the
> ProjectionSelector widget. For example to display 'Longitude' and  
> 'Latitude'
> for one projection and display 'X: ' and 'Y: '  for another.
> Thanks,
> Yahya Mohammad
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon

|Paul Spencer                           pspencer at dmsolutions.ca   |
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|

More information about the Chameleon mailing list