|
POST
|
restful services in c# to access database for arcgis javascript
... View more
06-03-2015
04:10 AM
|
0
|
6
|
4384
|
|
POST
|
Hi , I want to fill a combobox using database , How to do this using restful web service in asp.net, Please guide me with an example. Thank You
... View more
05-21-2015
09:56 PM
|
0
|
1
|
3562
|
|
POST
|
how to call module function on button click event in html page
... View more
05-20-2015
03:22 AM
|
0
|
3
|
18898
|
|
POST
|
I want to call module function on button click in arcgis javascript, example, dojo.connect(dom.byId("btnLocate"), "click", function () { example(); }); function example() { alert("df"); myModule.queryStatesLayer(); } <button style="height: 26px; width: 76px; margin-top: 22px;" name="btnLocate" onclick="example();">Locate</button> here 'alert' is working but i can't access module function, how to call module function on button click? Please guide me with an example
... View more
05-19-2015
06:07 AM
|
0
|
2
|
2613
|
|
POST
|
html page has esri main map and in module js i am doing query task and calling that module function from html page , But i am not able to show the query task results, How to take html map control in module as we do in silverlight . my code is below, Please correct me TEST.HTML <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> <title>Dojo Modules</title> <link rel="stylesheet" href="http://js.arcgis.com/3.8/js/esri/css/esri.css"> <style> html, body, #mapDiv { height: 100%; width: 100%; margin: 0; padding: 0; } </style> <script>var dojoConfig = { parseOnLoad: true, packages: [{ "name": "modules", "location": location.pathname.replace(/\/[^/]+$/, "") + "/modules" }] }; </script> <script src="http://js.arcgis.com/3.8/"></script> <script> require([ "dojo/dom", "dojo/dom-construct", "esri/map", "modules/myModule", "esri/layers/DynamicMapServiceLayer", "dojo/domReady!" ], function ( dom, domConstruct, Map, myModule, DynamicMapServiceLayer) { var map = new Map("mapDiv", { // center: [-122.41, 37.78], zoom: 15, // basemap: "topo" }); var mapServiceLayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://XXX/arcgis/rest/services/TEST/MapServer"); map.addLayer(mapServiceLayer); var mapServiceLayer1 = new esri.layers.ArcGISDynamicMapServiceLayer("http://XXX/arcgis/rest/services/TEST1/MapServer"); map.addLayer(mapServiceLayer1); dojo.connect(map, 'onClick', function () { myModule.queryStatesLayer(); }); }); </script> </head> <body id="mapDiv"> <form id="form1" runat="server"> <div ></div> </form> </body> </html> ========================================= myModule.is define(["dojo/_base/declare", "dojo/_base/lang", "dojo/dom", "dojo/on","esri/map", "esri/tasks/QueryTask", "esri/tasks/query", "esri/symbols/SimpleMarkerSymbol", "esri/InfoTemplate", "dojo/_base/Color", "dojo/ready"], function (declare, lang, dom, on, Map, QueryTask, query, SimpleMarkerSymbol, InfoTemplate, Color, ready) { var myModule = { //return //{ queryStatesLayer : function() { queryTask = new QueryTask("http://XXX/arcgis/rest/services/TEST/MapServer/2"); query = new esri.tasks.Query(); query.returnGeometry = true; query.outFields = ["NAME"]; query.where = "NAME = 'ambur'"; // queryTask.execute(query, showResults); queryTask.execute(query, function (queryResults) { debugger; Map.graphics.clear(); var resultFeatures = queryResults.features; var extent = esri.graphicsExtent(resultFeatures); if (!extent && features.length == 1) { // esri.getExtent returns null for a single point, so we'll build the extent by hand var point = features[0]; extent = new esri.geometry.Extent(point.x - 1, point.y - 1, point.x + 1, point.y + 1, point.SpatialReference); } //Loop through each feature returned for (var i = 0, il = resultFeatures.length; i < il; i++) { //Get the current feature from the featureSet. //Feature is a graphic var graphic = resultFeatures; graphic.setSymbol(symbol); //Set the infoTemplate. graphic.setInfoTemplate(infoTemplate); //Add graphic to the map graphics layer. Map.graphics.add(graphic); selectedWell = graphic.geometry; //Zoom To a Layer... // var taxLotExtent = graphic.geometry.getExtent() // map.setExtent(taxLotExtent); } if (extent) { // assumes the esri map object is stored in the globally-scoped variable 'map' Map.setExtent(extent) } }); //initialize InfoTemplate infoTemplate = new esri.InfoTemplate("${NAME}", "NAME : ${NAME}<br/>"); //create symbol for selected features symbol = new esri.symbol.SimpleMarkerSymbol(); symbol.setStyle(esri.symbol.SimpleMarkerSymbol.STYLE_SQUARE); symbol.setSize(10); symbol.setColor(new dojo.Color([255, 255, 0, 0.5])); } }; return myModule; } );
... View more
05-14-2015
04:19 AM
|
0
|
2
|
4863
|
|
POST
|
To include the date in where clause need to use standard sql syntax, and also it will not support sub queries, I had the same issue in SL api & Arcgis server 10.2.1, it solved when I changed like below : featureLayer.Where = "SURVEY_DATE >= date '" + dpFromDate.SelectedDate.Value.ToString("yyyy-MM-dd") + "' and SURVEY_DATE <= date '" + dpToDate.SelectedDate.Value.ToString("yyyy-MM-dd") + "'"; for more info ref the link, this may help ArcGIS Help (10.2, 10.2.1, and 10.2.2)
... View more
02-02-2015
08:56 PM
|
0
|
0
|
791
|
|
POST
|
Even I had the same issue in Sliverlight api with server 10.2.1, FeatureLayer query fails when using date in where clause. It works for me when change the query syntax like below: featureLayer.Where = "SURVEY_DATE >= date '" + dpFromDate.SelectedDate.Value.ToString("yyyy-MM-dd") + "' and SURVEY_DATE <= date '" + dpToDate.SelectedDate.Value.ToString("yyyy-MM-dd") + "'"; ref the link for more details : ArcGIS Help (10.2, 10.2.1, and 10.2.2)
... View more
02-02-2015
08:46 PM
|
0
|
0
|
888
|
|
POST
|
Hi, still you have the same issue ? ref ArcGIS Help (10.2, 10.2.1, and 10.2.2) Sadanand.
... View more
02-02-2015
05:53 AM
|
0
|
2
|
888
|
|
POST
|
Hi All, Why Silverlight QueryTask assigns wrong projection when querying on Make route event layer points published as Map service in ArcGIS server 10.2.1 ? What could be the reason if any one has already faced this issue please share it. Thanks Sadanand
... View more
12-19-2014
02:41 AM
|
0
|
0
|
2571
|
|
POST
|
Hi All, I am getting QueryTask result features in wrong projection system, 1. Task : Migrating of Arcgis server from 10.0 to 10.2.1 2. Development: Silverlight application version 5.0, ArcGIS API for Silverlight 3.0 3. All original map service layers render in correct location in the Map control. 4. But after the using Query task on route event layer or map service created using 'Join' attribute table , the result objects are set to wrong projection system, it pans to the coast of Africa near Nigeria, when i check the WKID for result features it is set to 102100. I have also set outSpatialReference [source from map] on query result features no use, But when i use the same layers published without using a JOIN, QueryTask results projecting correctly. Is there any issue when Joining an attribute table ?, My Geodatabase is in Oracle 11g version 11.2.0.1, any one can please help on this issue Thanks Sadanand
... View more
12-11-2014
10:20 PM
|
0
|
0
|
2038
|
|
POST
|
But we want to use Base map or Bing map as well. Yes services are accessible to public, below are the url of these. 1. http://119.82.100.170:6080/arcgis/rest/services/Bridge_44N/MapServer Bridge points [Make route event layer] when using 'WGS_1984_UTM_Zone_44N' and Base map QueryTask results of this layer locating on Africa [Wrong location] 2. http://119.82.100.170:6080/arcgis/rest/services/Bridges_WM/MapServer Bridge points [Make route event layer] when using Web Mercator projection and Base map QueryTask results of this layer locating on Africa [Wrong location] And we have also tried on some Line features i.e. Roads with using JOIN [Joining an attribute table in ArcMap] 3. http://119.82.100.170:6080/arcgis/rest/services/Roads_WM_Join/MapServer when using Web Mercator projection and Base map QueryTask results of this layer locating wrongly 4. http://119.82.100.170:6080/arcgis/rest/services/Roads_WM_WithoutJoin/MapServer But when we use the same Roads without using a JOIN, QueryTask results projecting correctly. Is there any issue when Joining an attribute table ?, My Geodatabase is in Oracle 11g version 11.2.0.1, please help.. Thanks Sadanand
... View more
12-11-2014
03:16 AM
|
0
|
2
|
1573
|
|
POST
|
Hi Dominique thanks for your replay 1. When i display my published service in ArcMap, it is working fine, 2. and when i display same service using ArcGISDynamicMapServiceLayer in Silverlight web application it is locating correctly. 3. But when i use QueryTask on this layer the result graphics locating on Africa. below is the screenshot of service displayed in both cases(Arcmap and ArcGISDynamicMapServiceLayer) Please help on this issue.. Thanks Sadanand
... View more
12-10-2014
09:27 PM
|
0
|
5
|
1573
|
|
POST
|
Hello Dominique, I have posted the screenshot of geometry of the returned features.
... View more
12-10-2014
04:08 AM
|
0
|
7
|
1573
|
|
POST
|
Hello Dominique, I Set the OutSpatialReference as you said in QueryTask, But No changes, Results locates on Africa,Here is the screenshot of the result. queryTask.ExecuteCompleted += QueryTask_ExecuteCompleted; queryTask.Failed += QueryTask_Failed; Query query = new Query(); query.OutFields.Add("BRIDGE_NAME"); query.Where = "1=1"; query.OutSpatialReference = MyMap.SpatialReference; query.ReturnGeometry = true; queryTask.ExecuteAsync(query);
... View more
12-10-2014
03:13 AM
|
0
|
9
|
2013
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 03-21-2022 07:27 PM | |
| 1 | 07-23-2015 03:31 AM |
| Online Status |
Offline
|
| Date Last Visited |
08-02-2023
01:24 PM
|