[mapguide-users] Problems with legend, when creating layer in
tun time
MaciekS
msiedlaczek at techmex.com.pl
Mon Oct 1 10:39:18 EDT 2007
Well,
I do this exactly this way, but sometimes nothing happens ... and sometimes
it works just fine.
Maciek
Jackie Ng wrote:
>
> You need to programmatically refresh the legend pane via javascript. You
> php script would look something like:
>
> <?php
>
> //Your code
>
> ?>
> <html>
> <head>
> <script type="text/javascript">
> window.onload = function() {
> mapFrame.Refresh();
> };
> </script>
> </head>
> <body>
> </body>
> </html>
>
> Hope that helps
>
> - Jackie
>
>
> MaciekS wrote:
>>
>> Hi everyone.
>>
>> When I'm creating new layer in php, layer displays on the map but it
>> doesn't in the legend.
>> After refreshing legend frame it comes to be visible ... strange, isn't
>> it?
>>
>> My code is:
>>
>> $newLayer->SetName($layerName);
>> $newLayer->SetVisible(true);
>> $newLayer->SetSelectable(true);
>> $newLayer->SetLegendLabel($layerLegendLabel);
>> $newLayer->SetDisplayInLegend(true);
>>
>> Any ideas?
>>
>> Maciek
>>
>
>
--
View this message in context: http://www.nabble.com/Problems-with-legend%2C-when-creating-layer-in-tun-time-tf4544080s16610.html#a12980457
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list