[Chameleon] Adding Points
William A. Bronsema
wbronsema at dmsolutions.ca
Tue Aug 10 06:42:46 EDT 2004
Ken,
Ken Sanderson wrote:
> For example I want to use getAllLayerNames() of oMap, but cant get it to
> work, always undefined, though I am not positive I am getting the syntax
> properly. The example I seen was:
>
> $aszLayerNames = $oMapSession->oMap->getAllLayerNames();
>
> I figured then I should be able to do:
> $this->moMapObject->oMap->getAllLayerNames(); which didn't work, and
> none of the other combinations I have done work either.
When you extend the NavTool widget you need to reference the Map object
this way:
$this->moMapNavigator->oSession->oMap
So your array of layer names would be like this:
$aszLayerNames = $this->moMapNavigator->oSession->oMap->getAllLayerNames();
HTH
Regards,
Bill
--
William A. Bronsema, C.E.T.
Applications Developer,
DM Solutions Group Inc.
e-mail: wbronsema at dmsolutions.ca
Web : http://www.dmsolutions.ca
Phone : (613) 565-5056 ext.25
Fax : (613) 565-0925
________________________________________________
More information about the Chameleon
mailing list