public DefinitionQuery DefinitionQuery {get; set;}
Public Property DefinitionQuery As DefinitionQuery
public DefinitionQuery DefinitionQuery {get; set;}
Public Property DefinitionQuery As DefinitionQuery
var flyrCreatnParam = new FeatureLayerCreationParams(new Uri(@"c:\data\world.gdb\cities")) { Name = "World Cities", IsVisible = false, MinimumScale = 1000000, MaximumScale = 5000, // At 2.x - DefinitionFilter = new CIMDefinitionFilter() //{ // DefinitionExpression = "Population > 100000", // Name = "More than 100k" //}, DefinitionQuery = new DefinitionQuery(whereClause: "Population > 100000", name: "More than 100k"), RendererDefinition = new SimpleRendererDefinition() { SymbolTemplate = SymbolFactory.Instance.ConstructPointSymbol( CIMColor.CreateRGBColor(255, 0, 0), 8, SimpleMarkerStyle.Hexagon).MakeSymbolReference() } }; var featureLayer = LayerFactory.Instance.CreateLayer<FeatureLayer>( flyrCreatnParam, map);
//Must be on the QueuedTask var url = "https://geoeventsample1.esri.com:6443/arcgis/rest/services/AirportTraffics/StreamServer"; var lyrCreateParam = new FeatureLayerCreationParams(new Uri(url)) { IsVisible = true, //At 2.x - DefinitionFilter = new CIMDefinitionFilter() //{ // DefinitionExpression = "RWY = '29L'", // Name = "Runway" //} DefinitionQuery = new DefinitionQuery(whereClause: "RWY = '29L'", name: "Runway") }; var streamLayer = LayerFactory.Instance.CreateLayer<StreamLayer>(lyrCreateParam, map);
Target Platforms: Windows 11, Windows 10, Windows 8.1