<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">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">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>