Knowledge Base

KB10526 - Creating thematic layer to display different color based on attribute field values

This code will add a rendering section to the layer to render shape using Color (or other properties like OutlineWidth)  based on query value 

Layer.Params.Query = "VELOCITY < 30"
Layer.Params.Marker.Color = YELLOW

Layer.Params.Query = "VELOCITY BETWEEN 30 and 70"
Layer.Params.Marker.Color = GREEN

Layer.Params.Query = "VELOCITY > 70"
Layer.Params.Marker.Color = RED

Created: April 22, 2004, Modified: July 06, 2012
follow us on Facebook  follow us on Twitter  follow us on Google +  follow us on LinkedIn  Embarcadero