[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' &nbsp;AND &nbsp; MNC = 10 &nbsp;AND &nbsp;valid =01
<br>Filter Layer B: callStatus ='Dropped' &nbsp;AND &nbsp; MNC = 10 &nbsp;AND &nbsp;valid =01
<br><br>when the user active the group I add this text to the layers filter: &quot; AND ID_TESTTOW=130&quot;
<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>&gt; Hi Kenneth,
<br>&gt; &nbsp; I read with more attention the bug description and there are some
<br>&gt; differences with my problem. In the bug description I read the the problem
<br>&gt; occurs when the check &quot;Display in legend&quot; is set to false. Now I have try to
<br>&gt; set layer visibily and &quot;Display in legend&quot; to true but I have the same
<br>&gt; result.
<br>&gt;
<br>&gt; I think that the problem is the runtime filter.
<br>&gt; If you want to see my code I have a ASP.NET test project to reproduce then
<br>&gt; problem.
<br>&gt;
<br>&gt; Regards,
<br>&gt; Matteo
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt; Kenneth Skovhede, GEOGRAF A/S wrote:
<br>&gt; &nbsp; 
<br>&gt;&gt; Yes, but since the bug is not yet fixed, it is also present in 2.0.2.
<br>&gt;&gt;
<br>&gt;&gt; Regards, Kenneth Skovhede, GEOGRAF A/S
<br>&gt;&gt;
<br>&gt;&gt;
<br>&gt;&gt;
<br>&gt;&gt; Matteo skrev:
<br>&gt;&gt; &nbsp; &nbsp; 
<br>&gt;&gt;&gt; Hi,
<br>&gt;&gt;&gt; &nbsp; thanks for the answer. The bug is about 1.2 version of mapguide but i
<br>&gt;&gt;&gt; work
<br>&gt;&gt;&gt; with 2.0.2 version. 
<br>&gt;&gt;&gt; Regards, Matteo
<br>&gt;&gt;&gt;
<br>&gt;&gt;&gt;
<br>&gt;&gt;&gt;
<br>&gt;&gt;&gt; Kenneth Skovhede, GEOGRAF A/S wrote:
<br>&gt;&gt;&gt; &nbsp; 
<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; 
<br>&gt;&gt;&gt;&gt; That is unfortunately a long standing bug:
<br>&gt;&gt;&gt;&gt; <a href="http://trac.osgeo.org/mapguide/ticket/167" target="_top" rel="nofollow">http://trac.osgeo.org/mapguide/ticket/167</a><br>&gt;&gt;&gt;&gt;
<br>&gt;&gt;&gt;&gt; You must manually itterate all layers in the layerdefinition,
<br>&gt;&gt;&gt;&gt; and add the information to the runtime map after startup.
<br>&gt;&gt;&gt;&gt;
<br>&gt;&gt;&gt;&gt; Regards, Kenneth Skovhede, GEOGRAF A/S
<br>&gt;&gt;&gt;&gt;
<br>&gt;&gt;&gt;&gt;
<br>&gt;&gt;&gt;&gt;
<br>&gt;&gt;&gt;&gt; Matteo skrev:
<br>&gt;&gt;&gt;&gt; &nbsp; &nbsp; 
<br>&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; 
<br>&gt;&gt;&gt;&gt;&gt; Hi All,
<br>&gt;&gt;&gt;&gt;&gt; &nbsp; I have some Layer Groups that are hidden when Map is load. When I
<br>&gt;&gt;&gt;&gt;&gt; active
<br>&gt;&gt;&gt;&gt;&gt; the layer group I apply a filter runtime (change the layerdefinition of
<br>&gt;&gt;&gt;&gt;&gt; the
<br>&gt;&gt;&gt;&gt;&gt; layers) to the Layers of group, set the legend visibility of group at
<br>&gt;&gt;&gt;&gt;&gt; true,
<br>&gt;&gt;&gt;&gt;&gt; and refresh the map. I see the objects in the map but I don't see the
<br>&gt;&gt;&gt;&gt;&gt; group
<br>&gt;&gt;&gt;&gt;&gt; in the legend.
<br>&gt;&gt;&gt;&gt;&gt; If I don't set a filter to the layers I see the group in the legend. 
<br>&gt;&gt;&gt;&gt;&gt; Why?
<br>&gt;&gt;&gt;&gt;&gt; Can you help me?
<br>&gt;&gt;&gt;&gt;&gt;
<br>&gt;&gt;&gt;&gt;&gt; Thanks
<br>&gt;&gt;&gt;&gt;&gt; Matteo 
<br>&gt;&gt;&gt;&gt;&gt; &nbsp; 
<br>&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; 
<br>&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
<br>&gt;&gt;&gt;&gt; _______________________________________________
<br>&gt;&gt;&gt;&gt; mapguide-users mailing list
<br>&gt;&gt;&gt;&gt; mapguide-users at lists.osgeo.org
<br>&gt;&gt;&gt;&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_top" rel="nofollow">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>&gt;&gt;&gt;&gt;
<br>&gt;&gt;&gt;&gt;
<br>&gt;&gt;&gt;&gt; &nbsp; &nbsp; 
<br>&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; 
<br>&gt;&gt;&gt; &nbsp; 
<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; 
<br>&gt;&gt; _______________________________________________
<br>&gt;&gt; mapguide-users mailing list
<br>&gt;&gt; mapguide-users at lists.osgeo.org
<br>&gt;&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_top" rel="nofollow">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>&gt;&gt;
<br>&gt;&gt;
<br>&gt;&gt; &nbsp; &nbsp; 
<br>&gt;
<br>&gt; &nbsp; 
<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