Select to view content in your preferred language

FeatureLayer from QueryDataSource

4001
0
02-11-2015 01:43 AM
LaurentSIBILLE
Deactivated User

Hi,

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.

Thanks,

0 Kudos
0 Replies