POST
|
I have a web app that contains two lines to add a cors enabled servers via the corsEnabledServers.push(<mydatasource page url here>); command . This works fine in Chrome and Firefox but Edge throws the following errors: esri.config.defaults.io.proxyUrl is not set. I am not sure how to proceed from here. The page I am trying to add is running IIS and has the proper web.config file. Any pointers would be appreciated.
... View more
02-22-2017
12:07 PM
|
0
|
0
|
486
|
POST
|
Tim, This is a nice application, but it does not quite address my issue. I would like a sample that uses the Extract Data widget (that is, that allows the user to download the shape file for a layer). Thanks for the link to the sample. It is interesting.
... View more
05-05-2016
06:30 AM
|
0
|
0
|
177
|
POST
|
I have a GP service on my ArcServer machine that performs an Extract Data process (clip, zip, and ship). I would like to call it using the JavaScript API. When I search for samples using this from the API documentation, it comes back as "0 samples found". I tend to learn best from studying samples, so this lack of an example is a problem. There is a sample for the Flex API, but I am trying to move away from Flex. Any working example code would be appreciated.
... View more
05-04-2016
07:00 AM
|
1
|
8
|
4563
|
POST
|
The FeatureTable in the JavaScript API supports supports event row-select and row-deselect. These events are from the dojo dgrid implementation. From these it is easy to get the selected row ID or the deselected row ID. What I would like to have is the id of the row just entered (where the mouse currently hovers) and the id of the row just left, without having to force the user to click on a row to select it.
... View more
03-23-2016
12:21 PM
|
0
|
0
|
2050
|
POST
|
I can reproduce this intermittently with the sample running in the sandbox. Simply make the map div to be less than the full screen. Most of the time the swipe will exceed the map. Once in a while it will behave correctly. Definitely seems like a bug.
... View more
02-29-2016
09:21 AM
|
0
|
0
|
17
|
POST
|
I have figured out what is going on . The object defined at the end of the Buffer any shape | ArcGIS API for JavaScript has automatic global scope (a JavaScript term). That means it is known throughout the application (similar to HTML global scope), so inline scripts outside the main script tag have access to the app objects contents. The confusion arises because the example at Geodesic buffering | ArcGIS API for JavaScript declares app as follows var app = {} This gives this variable JavaScript global (not automatic global) scope. This means that its contents are NOT available outside the script environment (outside the <script> and </script> tags). Since there are no scripts outside main script block, there is no harm. However, if you enter the var app = {} line in the Buffer any shape example, it will fail. Also, if you remove the app from the Geodesic buffering sample (using only map, gsvc) that sample still works fine.
... View more
09-21-2014
07:58 AM
|
0
|
0
|
9
|
POST
|
I have noticed that some examples of buffering in javascript api do not use and app.tb, app.gsvc, or app.map. The Buffer a Point sample is an example. However, the new dojo style samples, like util_buffergraphic do use a structure like app = { map: map, tb: tb, gsvc: gsvc }; I assume this is required by the newer dojo style. Is this correct? Is there somewhere I can read up about why this is necessary in the new style dojo but not in the old style dojo? Thanks,
... View more
09-19-2014
07:16 AM
|
0
|
1
|
647
|
POST
|
Will the code assist functionality return at some future release?
... View more
09-06-2014
02:02 PM
|
0
|
0
|
18
|
POST
|
Hello, I have a dynamic service with three layers and I would like to use a custom info window for each layer. I have declared the info window renders in the MXML and used an identify task to return the features. However, the info window that displays is the default window. Here is the mxml declaration: <esri:ArcGISDynamicMapServiceLayer id="legLayers" url=" http:// myurl /arcgis/rest/services/legislative25/MapServer/"> <esri:layerInfoWindowRenderers> <esri:LayerInfoWindowRenderer > <esri:infoWindowRenderer> <fx:Component> <esri:LabelDataRenderer label="State House"> <s:VGroup paddingBottom="5" paddingLeft="5" paddingRight="5" paddingTop="5"> <s:Label text="District: {data.DISTRICT}"/> <s:Label text="Representative: {data.NAME}"/> <s:Label text="Email: {data.Email}"/> <s:Label text="Affiliation: {data.Party}"/> </s:VGroup> </esri:LabelDataRenderer> </fx:Component> </esri:infoWindowRenderer> ... SIMILAR SECTIONS FOR THE NEXT TWO LAYERS </esri:ArcGISDynamicMapServiceLayer> And the code for displaying the identify results private function myResultFunction(results:Array, token:Object = null):void { if (results && results.length > 0){ var list:ArrayList = new ArrayList(); for (var i:int = 0; i < results.length; i++){ var result:IdentifyResult = results; list.addItem(result.feature); } contentNavigator.dataProvider = list; myMap.infoWindowContent = contentNavigator; myMap.infoWindow.show(clickLocation); } myMap.defaultGraphicsLayer.clear(); }
... View more
07-27-2013
11:16 AM
|
0
|
2
|
485
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|