AnsweredAssumed Answered

FeatureLayer from QueryDataSource

Question asked by citegestion on Feb 11, 2015



Is it possible to create a FeatureLayer from a LayerSource based on a QueryDataSource using .Net SDK ?


Actually using ArcGIS API for JavaScript we are able to use a FeatureLayer created from a QueryDataSource as follow :


var tiledAT = new FeatureLayer("http://myesriserver/arcgis/rest/services/FOLDER/Patrimoine/MapServer" + "/dynamicLayer", {

                        id: 103,

                        mode: FeatureLayer.MODE_SNAPSHOT,

                        outFields: ["*"],

                        opacity: 1,

                        source: new LayerDataSource({

                                                dataSource: new QueryDataSource({

                                                                                                workspaceId: "MyWorkSpaceId",

                                                                                                query: "SELECT ID FROM MySQLServerView",

                                                                                                geometryType: "point",

                                                                                                oidFields: "ID",

                                                                                                spatialReference: new esri.SpatialReference({ wkid: 27591 })





Any help will be very appreciate.