POST
|
Hello Where can I find a proxy (.ashx) that will authenticate against a 10.3 server? My current (older) proxy uses GET, which 10.3 doesn't support. Thanks!
... View more
04-13-2015
08:53 AM
|
0
|
1
|
3814
|
POST
|
I've just tried the code that you posted - works fine for me??? You're missing some CSS but that's not affecting the functionality. Also, you're using an old version (v2.6) of the API, any particular reason why you aren't using the latest version? (v3.2) Yes, it is working now! Maybe there was an issue with the service or something wrong locally. Thanks for looking.
... View more
11-21-2012
11:04 AM
|
0
|
0
|
212
|
POST
|
Hello I have no experience with the JavaScript API (only the WebADF and Silverlight). I am trying to teach myself, and decided to create a QueryTask based on this documentation( http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/intro_querytask.htm#webprint ) I cannot get my results to display. Here is my html: [HTML]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=7,IE=9" /> <title> Map</title> <script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.6"></script> <script type="text/javascript"> function init() { map = new esri.Map("mapDiv"); var layer = new esri.layers.ArcGISDynamicMapServiceLayer("http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer"); map.addLayer(layer); queryTask = new esri.tasks.QueryTask("http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/0"); query = new esri.tasks.Query(); query.returnGeometry = true; query.outFields = ["*"]; infoTemplate = new esri.InfoTemplate("${CITY_NAME}", "Name : ${CITY_NAME}<br/> State : ${STATE_NAME}<br />Population : ${POP1990}"); symbol = new esri.symbol.SimpleMarkerSymbol(); symbol.setStyle(esri.symbol.SimpleMarkerSymbol.STYLE_SQUARE); symbol.setSize(20); symbol.setColor(new dojo.Color([255, 255, 0, 0.5])); } function executeQueryTask(population) { query.where = "POP1990 > " + population; queryTask.execute(query, showResults); } function showResults(featureSet) { alert("show results"); map.graphics.clear(); var resultFeatures = featureSet.features; for (var i = 0, il = resultFeatures.length; i < il; i++) { var graphic = resultFeatures; graphic.setSymbol(symbol); graphic.setInfoTemplate(infoTemplate); map.graphics.add(graphic); } } dojo.addOnLoad(init); </script> </head> <body> <br /> US city population greater than : <input type="text" id="population" value="500000" /> <input type="button" value="Get Details" onclick="executeQueryTask(dojo.byId('population').value);" /> <div id="mapDiv" style="width: 600px; height: 600px; border: 1px solid #000;"> </div> Click on a city once it's highlighted to get an InfoWindow. </body> </html>[/HTML]-- Any help is greatly appreciated!
... View more
11-20-2012
11:30 AM
|
0
|
2
|
740
|
POST
|
Thank you Robert! I wasn't even aware that the ArcScripts site had other than Python, etc.
... View more
04-29-2011
07:29 AM
|
0
|
0
|
129
|
POST
|
Is it possible to download version 1.3 widgets? I am having trouble finding them. Thanks.
... View more
04-28-2011
02:44 PM
|
0
|
2
|
250
|
POST
|
Where can I find the source for the sample currently here: http://help.arcgis.com/en/webapi/silverlight/index.html Thanks!
... View more
09-15-2010
01:36 PM
|
0
|
1
|
2006
|
POST
|
Chris Thanks for the response. My use case involves a very dark basemap. This makes the black font of the ShowCoordinatesBehavior difficult to read.
... View more
08-09-2010
08:12 AM
|
0
|
0
|
146
|
POST
|
Hello Is there any way to style the ShowCoordinatesBehavior fonts? Thanks!
... View more
08-05-2010
01:49 PM
|
0
|
2
|
483
|
POST
|
I have a feature layer that I set the Where property to criteria similar to this: myFeatureLayer.Where = "FieldName IN ('value1', 'value2', 'value3')"; This worked until I decided to scale it up. If there are 100 values in the criteria it works fine, but once I exceed 100 then IE 8 raises an error (copied below). In FireFox 3.0.4 it appears fine, also the same value set to a Query Task Where property works. IE8 error: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.4; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; .NET4.0C; .NET4.0E) Timestamp: Fri, 18 Jun 2010 22:48:50 UTC Message: Unhandled Error in Silverlight Application at System.Net.Browser.AsyncHelper.BeginOnUI(BeginMethod beginMethod, AsyncCallback callback, Object state) at System.Net.Browser.BrowserHttpWebRequest.BeginGetResponse(AsyncCallback callback, Object state) at System.Net.WebClient.DownloadBits(WebRequest request, Stream writeStream, CompletionDelegate completionDelegate, AsyncOperation asyncOp) at System.Net.WebClient.<>c__DisplayClass1.<UploadDownloadBits>b__0(Byte[] returnBytes, Exception exception, AsyncOperation asyncOp2) at System.Net.WebClient.UploadBitsRequestCallback(IAsyncResult result) at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass9.<InvokeGetRequestStreamCallback>b__7(Object state2) at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() Line: 1 Char: 1 Code: 0 URI: http://localhost:1159/BondProjectWrapper2.aspx
... View more
06-18-2010
02:58 PM
|
0
|
3
|
584
|
POST
|
I'm guessing you have OnDemand mode enabled? The doc should mention that this also triggers an update. Thanks, it now works as expected. I assumed that specifying a WHERE value on the FeatureLayer would take it out of OnDemand (my interpretation of the API docs).
... View more
06-07-2010
02:15 PM
|
0
|
0
|
158
|
POST
|
Update is a asyncronous method. In other words you have to give the server a chance to send a response back. Instead wait for the myFeatureLayer.UpdateCompleted event to fire before you do the zoom. Morten I added a handler for UpdateCompleted. It works as expected the first time, however the event also fires when the map is panned, zoomed, etc. The API docs define the event as "fires after an explicit call to Update() or after the layer has initialized and features was returned from the feature layer service." I am not sure why it fires when the extent is changed. My code: private void QueryButton_Click2(object sender, RoutedEventArgs e) { string searchCriteria = string.Empty; FeatureLayer projFeatureLayer = MyMap.Layers["ProjectPoints1"] as FeatureLayer; projFeatureLayer.UpdateCompleted += new System.EventHandler(projFeatureLayer_UpdateCompleted); projFeatureLayer.UpdateFailed += new System.EventHandler<ESRI.ArcGIS.Client.Tasks.TaskFailedEventArgs>(projFeatureLayer_UpdateFailed); searchCriteria = QueryTextBox.Text; projFeatureLayer.Where = searchCriteria; projFeatureLayer.Update(); } void projFeatureLayer_UpdateCompleted(object sender, System.EventArgs e) { FeatureLayer projFeatureLayer = (FeatureLayer)sender; if (projFeatureLayer.FullExtent != null) { double projectXMin = projFeatureLayer.FullExtent.XMin; double projectXMax = projFeatureLayer.FullExtent.XMax; double projectYMin = projFeatureLayer.FullExtent.YMin; double projectYMax = projFeatureLayer.FullExtent.YMax; double coordOffset = .01; //Envelope cannot be a single point? if (projectXMin == projectXMax && projectYMin == projectYMax) { projectXMax = projectXMax + coordOffset; projectXMin = projectXMin - coordOffset; } Envelope projectEnvelope = new Envelope(projectXMin, projectYMin, projectXMax, projectYMax); MyMap.ZoomTo(projectEnvelope); } } Any help is appreciated!
... View more
06-07-2010
08:03 AM
|
0
|
0
|
158
|
POST
|
I would like to do something similar to this myFeatureLayer.Where = "a=b" myFeatureLayer.Update() myMap.ZoomTo(myFeatureLayer.FullExtent) However, after calling the Update method, the FullExtent is null. Thanks for any help/ideas.
... View more
06-04-2010
02:37 PM
|
0
|
4
|
1664
|
Online Status |
Offline
|
Date Last Visited |
02-26-2022
11:32 PM
|