<div dir="auto"><div dir="auto">Multiple map-sources (all controlled by one catalog layer) will likely work, however, this seems kludgey to me.  An easier way to accomplish this seems worth an enhancement ticket.<br></div><div dir="auto"><br></div><div dir="auto">I know theduckylittle has come up against some limitations with the current styles library that will require some rework to move forward.  So, if someone wants to take this on, coordinate with theduckylittle first.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 24, 2019, 20:41 TC Haddad <<a href="mailto:tchaddad@gmail.com">tchaddad@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br>Well I suppose you could have 2 mapsources with different names, and different filters?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 24, 2019 at 6:13 PM Kevin Grootendorst <<a href="mailto:kgrootendorst@gmail.com" target="_blank" rel="noreferrer">kgrootendorst@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Thanks for the suggestion. <br></div><div dir="ltr"> I tried that...If I have two instances of <layer name="Trails">, each with it's own Filter, then unfortunately only the first instance of 
<layer name="Trails">

 is interpreted.</div><div>I believe that the layer name must be "Trails" as that's what is identified in the REST properties in the above REST url.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 24 Mar 2019 at 20:49, TC Haddad <<a href="mailto:tchaddad@gmail.com" target="_blank" rel="noreferrer">tchaddad@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large"><font size="2">You could try having more than one layer in the map source - one for each filter item?</font><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 24, 2019 at 10:51 AM Kevin Grootendorst <<a href="mailto:kgrootendorst@gmail.com" target="_blank" rel="noreferrer">kgrootendorst@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Update:</div><div>I'm able to use <filter> to style for one condition, but am unable to do for 2 or more conditions.</div><div><br></div><div>In the example below, I can filter the REST service to only show Trails that are "Seasonal".  <br></div><div><br></div><div>    <map-source name="ags5" type="ags-vector" srs="EPSG:3857" title="Norfolk Trails"><br>        <url><a href="http://services1.arcgis.com/mSGV2hCLXHNsfQqK/arcgis/rest/services/Trails/FeatureServer/0" target="_blank" rel="noreferrer">http://services1.arcgis.com/mSGV2hCLXHNsfQqK/arcgis/rest/services/Trails/FeatureServer/0</a></url><br>        <br>        <layer name="Trails" status="on">            <br>                <style><![CDATA[<br>                    {<br>                        "line-color" : "#A1A138",<br>                        "line-width" : 2<br>                    }<br>                    ]]><br>                </style><br>                <filter><![CDATA[<br>                ["==", "STATUS", "Seasonal"]<br>                ]]></filter><br>        </layer><br>    </map-source></div><div><br></div><div>There is another "STATUS" = "Maintained" that I wish to also style.</div><div>I've tried adding another <style> and <filter> for "Maintained" trails, but it will only draw the first <style> tags, which correspond to "Seasonal" trails.</div><div>I also tried using <div> tags to somehow separate the two but that had no effect.</div><div><br></div><div>Any other ideas on what I could try?</div><div><br></div><div>Thanks.</div><div>Kevin<br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 17 Mar 2019 at 17:24, Kevin Grootendorst <<a href="mailto:kgrootendorst@gmail.com" target="_blank" rel="noreferrer">kgrootendorst@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Hello,</div><div>Can an ags-vector data type be styled based on attributes?</div><div>I understand the <style> tags, but they currently return one style for the entire layer.</div><div><layer name="Municipal_Land_Use_Plans" status="off"><br>            <style><![CDATA[<br>                {<br>                    "line-color" : "#0e57cc",<br>                    "line-width" : 2<br>                }<br>                ]]><br>            </style><br>            <template name="identify" auto="true"/><br>            <param name="FORMAT" value="png"/><br>        </layer></div><div><br></div><div>If the layer has a field called 'Type' with unique attributes (wetland, farm, etc.), can I style it based on this field?</div><div><br></div><div>Thanks.<br></div><div><br></div></div></div>
</blockquote></div>
_______________________________________________<br>
Geomoose-users mailing list<br>
<a href="mailto:Geomoose-users@lists.osgeo.org" target="_blank" rel="noreferrer">Geomoose-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geomoose-users" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/geomoose-users</a></blockquote></div>
_______________________________________________<br>
Geomoose-users mailing list<br>
<a href="mailto:Geomoose-users@lists.osgeo.org" target="_blank" rel="noreferrer">Geomoose-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geomoose-users" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/geomoose-users</a></blockquote></div>
</blockquote></div>
_______________________________________________<br>
Geomoose-users mailing list<br>
<a href="mailto:Geomoose-users@lists.osgeo.org" target="_blank" rel="noreferrer">Geomoose-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geomoose-users" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/geomoose-users</a></blockquote></div>