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

learn more… | top users | synonyms

0
votes
0answers
16 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 ...
0
votes
0answers
8 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
7 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
10 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
0answers
14 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
16 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 ...
0
votes
1answer
19 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
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
0answers
12 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 ...
0
votes
0answers
7 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
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 ...
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 ...
0
votes
0answers
23 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
2answers
21 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. ...
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, ...
1
vote
0answers
11 views

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

When constructing a toolbar such 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 drawing ...
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
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 ...
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
2answers
40 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 ...
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 ...
0
votes
0answers
21 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
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 ...
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
1answer
18 views

Is it possible to project an ArcGISDynamicMapServiceLayer using the JS API?

I need to project some dynamic layers to Web Mercator. The geometry service only projects geometries. Is there a geo-processing tool in ArcMap for this? Or any suggestions how i could do this without ...
1
vote
1answer
45 views

ESRI Local Government Park Locator App Template Deployment Issues

I am currently trying to implement esri's newest release of the Park Locator | ArcGIS for Local Government and I have been having a few issues that I can't seem to resolve. First, If I just change ...
0
votes
1answer
27 views

Javscript API esri/dijit/search JSON Response

Hello guys I am having some trouble trying to parse out the returned JSON data from a dijit search. I have the following code where s.set("value","48035") will be populated from another page so for ...
1
vote
1answer
31 views

Adding background image to ArcGIS online Popup

I am trying to make a custom popup for a storymap template by changing the CSS. The background colors can be changed but is there a way to add an image to the main area with the attributes instead of ...
3
votes
1answer
37 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 ...
0
votes
1answer
21 views

Renaming print task URL of ArcGIS API for JavaScript?

I have simple print task using ESRI javscript API PrintParameters, PrintTemplate and printTask. Its working fine. Its return url like this ...
0
votes
0answers
18 views

Merge Line and Point Features into 1 Dataset Where the Points are Referenced to the Line

I am trying to combine a line feature class and point feature class so when you select the line, the points are also selected. I have tried to spatially join. The points are added to the attribute ...
0
votes
0answers
19 views

Querying through QueryTask takes more time if it has large number of data

Whenever I query my layer with queryTask it always returns 1000 maximum records. This makes to return the results very slow. Is there any alternative for queryTask to increase the performance of ...
0
votes
1answer
23 views

Cannot view OAuth Basic ArcGIS API for Javascript code sample in local drive

I admit this is a real basic question (I'm very new to web development), but when I try saving the contents of this OAuth sample on to my local drive, I cannot view it in my browser - the screen is ...
0
votes
2answers
42 views

CMV Viewer Floating Widgets

I asked this question on Gitter but I think it got lost pretty quickly. Does anyone have an example CMV site without the side bar or any indication whether it would be worth pursuing CMV if what I ...
0
votes
2answers
57 views

Defining custom basemap toggle in ArcGIS API for JavaScript?

I'm using arcgis js spi for 3.13 edition, when I using basemaptoggle widget from https://developers.arcgis.com/javascript/jssamples/widget_basemap.html is ok, but when defining my own basemap is ...
1
vote
1answer
27 views

Zooming to ArcGIS JavaScript API graphic feature, but not to full extent?

I feel there must be an easy solution for this because I can't be the only one who's had this need before. I have a Python based geoprocessing service that gets called in my web app. The web app ...
1
vote
1answer
33 views

How to add a polygon in Google Earth on a Website

As it is said in the title i have to add a polygon in Google Earth which is integrated in a website. I managed to integrate Google Earth in the Website, so i can view the world but i can not use any ...
0
votes
0answers
61 views

Popup content with deferred object in ArcGIS Javascript

I am trying to display attribute infos and attachment in popup window. It can be quite good handled by code selected as correct answer here (https://geonet.esri.com/thread/159806). Basically you ...
2
votes
1answer
80 views

How to use ArcGis JS API Directions with embedded coordinates

I want to use ArcGis Javascript API for directions with the users current loaction as the start location, and a predetermined location as the stop destination. All the examples I can find use a widget ...
0
votes
0answers
12 views

Map click working on Apple Ipad, Iphone but not working on Android Chrome

I had a web application using ArcGIS javascript API 3.3 Few months before the zoom buttons +/- stopped working I am trying to update it to 3.14 API However now the buttons are working great but the ...
1
vote
1answer
18 views

g.renderer is null. And sometimes is not

I have an TypeError: g.renderer is null while I'm loading my map application. The worst is that problem sometimes happens, sometimes not. require([ 'dojo/parser', 'dijit/layout/ContentPane', ...
0
votes
1answer
25 views

How can i highlight a point using arcgis api for javascript?

How can i highlight a point using arcgis api for javascript? When i use the function of centerAndZoom ,I also want to highlight this point,how can i do?
0
votes
1answer
18 views

Trying to update field in a feature Without “attInspector” …Using ArcGis JavScript api

I cannot find any changes in the field. Please help me out. I am attaching my code: for (var i = 0; i < features.length; i++) { feature = features[i]; feature.attributes["X"] = Value; ...
3
votes
1answer
70 views

ArcGIS JavaScript API won't recognize ArcGIS online material that isn't shared publicly

I am trying to add KML Layers to the ArcGIS JS API. I have the KML layers hosted on the ArcGIS Online server. This data that I am working with contains some sensitive information and I am trying to ...
0
votes
0answers
23 views

WMTS layer at every scale using ArcGIS API for JavaScript?

I want to display wmts layer (in KVP mode) in every scales using arcgis_js_api 3.4. When I create wmts layer and set MapWidget.scale to one that isn't in the wmts capabilities level description, ...
0
votes
2answers
35 views

3D equivalent to ArcGIS API?

I am currently working on a 3D mapping project. And I have created some KML files from ArcGIS Online, and I have edited them in Google Earth to adjust the 3D attributes. I am also designing a webpage ...
2
votes
1answer
52 views

Esri Javascript API Graphics Removal

Hey Guys new to ESRI and the javascript api. I have the following function that when you click on the map adds a circle graphic to the map at that locations geographic lat and Long. But what im tyring ...
0
votes
1answer
36 views

Add REST map service to basemap

I have created a JSON file which includes 30 map service layers and their attributes. This includes the map service url. My function creates a table of contents from the JSON object so that when I ...