[mapguide-users] Legend and runtime Layer filter
Matteo
matteo.conte1979 at libero.it
Mon Mar 23 15:59:36 EDT 2009
The group layers have this filter:
<br>Filter Layer A: callStatus ='Completed' AND MNC = 10 AND valid =01
<br>Filter Layer B: callStatus ='Dropped' AND MNC = 10 AND valid =01
<br><br>when the user active the group I add this text to the layers filter: " AND ID_TESTTOW=130"
<br><br>Regards,
<br>Matteo
<br><br><br><br><blockquote class="quote light-black dark-border-color"><div class="quote light-border-color">
<div class="quote-author" style="font-weight: bold;">Kenneth Skovhede, GEOGRAF A/S wrote:</div>
<div class="quote-message shrinkable-quote">Could you just send the filter you are applying?
<br><br>Regards, Kenneth Skovhede, GEOGRAF A/S
<br><br><br><br>Matteo skrev:
<br>> Hi Kenneth,
<br>> I read with more attention the bug description and there are some
<br>> differences with my problem. In the bug description I read the the problem
<br>> occurs when the check "Display in legend" is set to false. Now I have try to
<br>> set layer visibily and "Display in legend" to true but I have the same
<br>> result.
<br>>
<br>> I think that the problem is the runtime filter.
<br>> If you want to see my code I have a ASP.NET test project to reproduce then
<br>> problem.
<br>>
<br>> Regards,
<br>> Matteo
<br>>
<br>>
<br>>
<br>>
<br>>
<br>> Kenneth Skovhede, GEOGRAF A/S wrote:
<br>>
<br>>> Yes, but since the bug is not yet fixed, it is also present in 2.0.2.
<br>>>
<br>>> Regards, Kenneth Skovhede, GEOGRAF A/S
<br>>>
<br>>>
<br>>>
<br>>> Matteo skrev:
<br>>>
<br>>>> Hi,
<br>>>> thanks for the answer. The bug is about 1.2 version of mapguide but i
<br>>>> work
<br>>>> with 2.0.2 version.
<br>>>> Regards, Matteo
<br>>>>
<br>>>>
<br>>>>
<br>>>> Kenneth Skovhede, GEOGRAF A/S wrote:
<br>>>>
<br>>>>
<br>>>>> That is unfortunately a long standing bug:
<br>>>>> <a href="http://trac.osgeo.org/mapguide/ticket/167" target="_top" rel="nofollow">http://trac.osgeo.org/mapguide/ticket/167</a><br>>>>>
<br>>>>> You must manually itterate all layers in the layerdefinition,
<br>>>>> and add the information to the runtime map after startup.
<br>>>>>
<br>>>>> Regards, Kenneth Skovhede, GEOGRAF A/S
<br>>>>>
<br>>>>>
<br>>>>>
<br>>>>> Matteo skrev:
<br>>>>>
<br>>>>>
<br>>>>>> Hi All,
<br>>>>>> I have some Layer Groups that are hidden when Map is load. When I
<br>>>>>> active
<br>>>>>> the layer group I apply a filter runtime (change the layerdefinition of
<br>>>>>> the
<br>>>>>> layers) to the Layers of group, set the legend visibility of group at
<br>>>>>> true,
<br>>>>>> and refresh the map. I see the objects in the map but I don't see the
<br>>>>>> group
<br>>>>>> in the legend.
<br>>>>>> If I don't set a filter to the layers I see the group in the legend.
<br>>>>>> Why?
<br>>>>>> Can you help me?
<br>>>>>>
<br>>>>>> Thanks
<br>>>>>> Matteo
<br>>>>>>
<br>>>>>>
<br>>>>>>
<br>>>>> _______________________________________________
<br>>>>> mapguide-users mailing list
<br>>>>> mapguide-users at lists.osgeo.org
<br>>>>> <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_top" rel="nofollow">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>>>>>
<br>>>>>
<br>>>>>
<br>>>>>
<br>>>>
<br>>>>
<br>>> _______________________________________________
<br>>> mapguide-users mailing list
<br>>> mapguide-users at lists.osgeo.org
<br>>> <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_top" rel="nofollow">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>>>
<br>>>
<br>>>
<br>>
<br>>
<br><br>_______________________________________________
<br>mapguide-users mailing list
<br>mapguide-users at lists.osgeo.org
<br><a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_top" rel="nofollow">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a></div>
</div></blockquote>
--
View this message in context: http://n2.nabble.com/Legend-and-runtime-Layer-filter-tp2249502p2523138.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list