ThinkGeo.com    |     Documentation    |     Premium Support

AND condition in styles

Hi,


I understand how I can add a style to conditionally show features at zoom levels based on the value of data in a named column.


Is it possible to show a style if the value of a column is a certain value AND the value of another column is another value?


If so, how?


cheers


Matt



Matthew, 
  
   You have a few options here.  We have a complex expression style that is an extension called FleeBooleanStyle.  It uses an engine that can do all kinds of things like AND, OR, IF etc.  You can find an article about it on the Developers Blog forum at the ink below. 
  
 gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/16/aft/5358/afv/topic/Default.aspx 
  
  You can also easily build a custom style to satisfy any complex logic.  It is much easier than you think.  We have a video explaining just how to do it with samples.  You can find the information on that at the link below. 
  
 gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/16/aft/5418/afv/topic/Default.aspx 
  
 If you are still having issues after checking these out let us know and we can whip up a sample for you using either method. 
  
 David

Thanks. We’ve resolved a way to do it the simple way :-)

Matthew, 
  
   I am glad you were able to solve this.  Let us know if there is anything else we can help you with. 
  
 David