The ArcGIS API for JavaScript is a web mapping API from Esri.

learn more… | top users | synonyms

0
votes
1answer
9 views

How To Invoke Anonymous Function on Map Load

I have a JS code like this which I have assigned an anonymous function to photos variable in map.on("load", function() {} now it seems the photos is never invoking! as even I tried to do a simple ...
0
votes
1answer
19 views

ArcGIS JavaScript setRequestPreCallback is partially working?

I have an api sitting in front of AGS that requires it's own authentication. I am using setRequestPreCallback as stated by the ESRI docs. In the image below, you can see that the first 2 requests are ...
1
vote
1answer
188 views

ArcGIS Javascript API: Adding a shapefile with more than 1000 points

I am able to add shapefiles with less than 1000 points by using the ArcGIS Portal REST API as shown in this example: https://developers.arcgis.com/javascript/jssamples/portal_addshapefile.html ...
1
vote
1answer
14 views

Drawing tools in ArcGis JS not always registering clicks in IE 11

When constructing a toolbar such as in the example given at http://developers.arcgis.com/javascript/samples/toolbar_draw/ there is a slight issue when you're trying to place to first point of any ...
0
votes
1answer
185 views

arcgis javascript api featureLayer not available immediately upon show click event

I am adding a feature layer as such in my index.html file. featureLayer00 = new FeatureLayer("http://webadaptorserviceurl/MapServer/0",{ mode: FeatureLayer.MODE_ONDEMAND, id: "0", ...
1
vote
2answers
274 views

Javascript + ESRI + Dropdown menu with layers

Dear people of stackoverflow, I have a script that generates a basemap with a layer that I have put on top of it. I am trying to create a dropdown menu in which the user of my HTML5 page can select ...
0
votes
0answers
10 views

JSON loop - get field values not field names

I'm running a for loop to extract certain values from a JSON string. I get the related values back for a map service that is initiated by the user clicking on a table of contents - e.g. a url, layer ...
0
votes
0answers
10 views

How to Point Cluster With Dynamic Data In ArcGIS API

ArcGIS API is using this Demo to illustrate how Point clustering works with JSON data. In my case I am generating some point graphics from MySQL Database by a jQuery AJAX request like following code: ...
0
votes
1answer
11 views

Binding DOM Elements to Graphics Instead of SimpleMarkerSymbol()

Can you please let me know if it is possible to bind our custom DOM into the geometry point instead of ArcGIS API SimpleMarkerSymbol()? I tried to do this like below but it is not doing the job! var ...
0
votes
1answer
20 views

ArcGIS Server JavaScript: copy attribute from feature snapped to

I have an application that allows the user to add a point (in this case, pipe breaks) and snap to a line (water main). I have been asked to pre-populate one of the attributes in the point feature ...
0
votes
1answer
199 views

Is it possible to copy and paste features in an online Edit function?

Using the ESRI JS API, is it possible to select a feature and then create buttons to copy and paste that feature? This would be done using the Editor Widget. If its possible to do this, but only ...
3
votes
1answer
41 views

How to print a label layer in the ArcGIS Server JS API

I'm trying to use a PrintTask to print a map, but am finding that a LabelLayer does not correctly print. I modified the Label Layer sample to include a Print Task, and found that the label layer is ...
3
votes
1answer
46 views

How to change a Esri Scale Bar's font color

I'm working on my first ESRI web map project. In the Default.Aspx page the scale bar is initiated as shown below : dojo.require("esri.dijit.Scalebar"); map.on('load', function () { //resize ...
0
votes
1answer
24 views

Adding Point Graphic to ArcGIS API for JavaScript Map?

Can you please take a look at this JSFiddle and let me know why I am not able to add the Marker into the Map? I am getting this error Uncaught TypeError: Cannot read property 'add' of null Here ...
0
votes
1answer
224 views

Mapquest directions API in ArcGIS javascript webmap application

I'm trying to build a webmap application using the ArcGIS JavaScript API. A functionality I would like to include is driving directions from a current GPS location to a feature in my feature service. ...
3
votes
2answers
200 views

Geocode an address and then buffer

I have a script which geocode an address and buffer that address by 1, 5 and 10 mile radius. The problem I am having is that the address on the map shows 4 different points not sure what's causing it. ...
0
votes
0answers
15 views

Layer coordinates and geometry in ArcGIS API for JavaScript?

Currently I'm working on a system that uses the ArcGIS API for JavaScript with layers and map to display information on borders of specific regions. I don't want to display all information at once ...
1
vote
0answers
19 views

Slow sending to geoprocess

I'm using the esri js api to access geoprocessing tools on an arcgis server, these geoprocessing tools accept large feature layers. My problem is that even though all the processing occurs on the ...
1
vote
1answer
703 views

How to Create a arrow PolyLine with curved (geoDesic) using ArcGIS PolyLine

Trying to draw two markers(points) with a curved and arrow PolyLine using ArcGIS maps. Below is the source code, able to draw Poly line but it is coming as straight line. <!DOCTYPE html> ...
3
votes
1answer
415 views

how to disable duplicate items in the legend for ArcGIS JavaScript API

I have a problem with duplicate items in the legend panel! Can anyone help me? This is my feature Layer with popup info: // Feature Layer var msFeatureLayer = new ...
0
votes
0answers
13 views

Dynamic layer request from js api not working at 10.22

I have a map service that is enabled for dynamic layers. It has a workspace that points to shapefiles on disk. At 10.1 i use this to let users view uploaded shapefiles and render them based on data in ...
0
votes
1answer
33 views

Publishing ArcGIS Server service without cache does not show map on mobile?

We're publishing a whole country data set using ArcGIS Server and we need to display it on web and on mobile applications. The issue we're facing is that the data is too big so we're not creating ...
8
votes
4answers
3k views

CORS issue ArcGIS 10.1 IIS (Cross Origin Resource Sharing)

I have ArcGIS 10.1 installed with the web adapter for IIS. I've added a config file to the root of IIS7 to enable Cross Origin Resource Sharing (CORS) as per this page. I've pushed the cors enabled ...
0
votes
1answer
523 views

Add Point Symbol and Zoom to Address using Geocoder Widget

I'm following the tutorial here and it's not working: https://developers.arcgis.com/javascript/jstutorials/tutorial_geocoder.html Issue: I just want to add a point symbol and zoom in for the address ...
4
votes
2answers
171 views

tabbed popup window for Arcgis Javascript

Anyone know examples of a tabbed popup window for Arcgis for javascript, NOT an infowindow? If you could point me in the the right direction it would help.
1
vote
1answer
252 views

ArcGIS javascript API setDefinitionExpression returns wrong result set

New to GIS and ArcGIS. I am trying to use the javascript API setDefinitionExpression to limit the output of a FeatureLayer on the map; however, the result set returned by the function is incorrect. ...
1
vote
1answer
928 views

ArcGis Server Java script API error code 500 while using proxy.ashx on one particular server

I am looking for help with using proxy.ashx in Javascript API on one particular server at a client site. We have a GP service that the proxy is used to access (when request is more than 2048 ...
0
votes
0answers
8 views

Configurable map viewer (CMV) - Dynamic sublayer error getting scale?

I am configuring the map viewer to take a bunch dynamic layers and my own base maps from our arcgis server. However, the map is having problems when it tries to the get the scale of dynamic layers ...
0
votes
0answers
24 views

ArcGIS map breaking in the web page

We are embedding the arcGIS map in to a web page in 1/8th part of the web page in right-hand side upper corner. We are using angularjs framework to develop this portal.We are are going to draw symbols ...
1
vote
1answer
19 views

ArcGIS for Javascript API - How to add WMS layer from geoserver [closed]

I'm trying to add a WMS layer from a geoserver using the ArcGIS for Javascript API. I've gotten there example working from there sample codes but I'm unable to load my layer from the geoserver ...
1
vote
2answers
22 views

How do I add a radius line from the center of the circle to a point on the cricle

The following code adds a circle of given radius to the graphics layer on an ArcGIS map. How can i add a line that joins center of the circle to any point on the circle to the graphics layer. ...
0
votes
0answers
7 views

LabelLayer how to tell when drawing is finished

I have a map with a LabelLayer. The label layer is shown and hidden with a checkbox on the page and I have some css classes that I need to dynamically add to the labels based on some criteria. This ...
6
votes
1answer
264 views

Duplicate items in the legend

I have recently created a web map that uses the legend snippet from the ESRI JavaScript API website. https://developers.arcgis.com/en/jav...et_legend.html It works great for the most part, but has ...
3
votes
1answer
22 views

Label can't access added attribute

I have a layer that gets created with a couple of attributes, one of which is NAME. Then I create a LabelLayer and add a feature layer like so: layerLabel.addFeatureLayer(layerDisplay, rendererLbl, ...
0
votes
1answer
495 views

Geoprocessing tool not executing when Map's SpatialReference is Web Mercartor

I am facing a strange issue when trying to execute GP service when my map's spatial-reference is Web Mercator. I appreciate all help. I have a JavaScript API application. Initially I only had my map ...
0
votes
2answers
42 views

Arcgis javascript api not working in IE 11 (js api 1.6)

I have a html with ArcGIS js api, it working in lower version (say IE 7) but not working in IE11,. Is it because my js api version is too low? How can I make it work? The related code: <!DOCTYPE ...
3
votes
1answer
346 views

ArcGIS JavaScript API: onAnimate Error

I am trying to zoom to a point in ArcGIS JavaScript API (3.9). I am doing this one of two ways, I am either grabbing a point feature from ArcGIS Server (10.1), or I am grabbing the center of a polygon ...
0
votes
0answers
9 views

Identify task on multiple layers into a pop up window with the arcgis javascript api

I am trying to create a pop up window when I click on a feature included in my map that displays their attributes. I want it to apply to all visible layers. So far this is a working section of code I ...
12
votes
3answers
5k views

How to Identify layers from multiple ArcGIS Server instances

This applies to ArcGIS Server 9.3 with the JavaScript API 2.4. My goal is to click on the map and have the Identify task run on all visible Dynamic layers. IdentifyTask requires a URL to the REST ...
2
votes
3answers
2k views

ESRI proxy page not working properly + CORS + cross domain scripting

I have set up a proxy page. I am using jsp version of proxy page. I have set up a server URL which will point to my Java. When I load the my page which the proxy URL has set in its html it will work ...
1
vote
1answer
164 views

How to add custom basemaps to BasemapGallery

I would like to add my own custom basemaps to the BasemapGallery. Is there any way I can create my own BasemapGallery with only my maps? I am using the ArcGIS API for javascript. EDIT: for clarity I ...
1
vote
0answers
9 views

Adding ArcGIS JS Direction widget in separate function

I am working with ArcGIS JS library, I am trying to add direction widget in my code, and it is working fine. I am following this example: ...
0
votes
0answers
18 views

Problems with a function - query a JSON array to return fields in a map service url?

This is an extract of my JSON. {"id": "1", "layer": "0", "min_scale": "0", "url": "http://example.service.url" "max_scale": "5000000", "field": [ "NAME", ...
0
votes
0answers
16 views

ArcGIS javascript reporting function

I am looking for some advice on creating a reporting function using the arcgis javascript api and feature layer services. My goal is to be able to select a particular tax parcel and generate a ...
1
vote
1answer
220 views

Remove selected feature symbol

Background: I am dynamically populating a feature layer. On this feature layer I have set the symbol (as you can see) to a nice little .png image. Everything seems to work fine around the layer except ...
1
vote
1answer
312 views

ESRI JS API : FeatureLayer : pure client side query?

so I've created this wrapper around feature layer where I create the empty feature layer as is in the API help page : new FeatureLayer(featureCollectionObject, options?) providing the first ...
0
votes
0answers
22 views

How to use IdentifyTask to query JSON

I have a map application that harvests it's map layers from a JSON string. I've managed to use the following code to show the map layers when a user clicks on a layer name in a table of contents but ...
0
votes
2answers
535 views

Update multiple features attributes in loop - JavaScript

I am trying to update multiple features in a feature layer through a loop. I have a feature layer that I would like to select and then assign someone to the features (through an attribute update. I ...
0
votes
1answer
45 views

Javascript API Scalebar halo CSS Styling

Let me start by saying I am very new to HTML, CSS, and JS. I have added a scalebar to my map and figured out how to add a halo around the labels so they can be seen better against dark or light ...
0
votes
0answers
14 views

Center PopupTemplate when using ClusterLayer

I am trying to use the below code in my application https://developers.arcgis.com/javascript/jssamples/layers_point_clustering.html. The only change I am doing is changed the height from 100% to 400px ...