MapTools.org

[maplab-users] legend template and default layer status

Paul Spencer pgs@magma.ca
Wed, 03 Jul 2002 18:16:32 -0400
Stephen, I will log this as a bug for GMapFactory.  There is no patch or 
work-around at this point.  We will address it in an upcoming release 
hopefully.

Cheers,

Paul

--
Paul Spencer
Applications and Software Development
DM Solutions Group

Stephen Woodbridge wrote:

>I investigated a little more and it seem like the problem is cause by
>something like this scenario:
>
>1) in the legend template I turn off out-of-scale layers
>2) this means that they do not show up in the layers[] form variable if
>they are out of scale
>3) so when the zoom in command changes scale to activate a layer it gets
>added to the list, but because of the following code:
>
>/* ====================================================================
> * Process the layer status.
> * ====================================================================
>*/
>if ( $http_form_vars["NotFirstLoad"] )
>    updateLayerStatus( $oMapSession->oMap, $http_form_vars );
>
>it does not get turned on because it is not in the layers[] list and the
>code is not smart enough to know that it is the first time that this
>layer has been loaded.
>
>Does this seem right?
>Is there a patch or work-a-round to this problem?
>
>-Steve
>_______________________________________________
>Maplab-users mailing list
>Maplab-users@dmsolutions.ca
>http://lists.dmsolutions.ca/mailman/listinfo/maplab-users
>
>  
>





This archive was generated by Pipermail.