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

learn more… | top users | synonyms

0
votes
0answers
6 views

Conflict Between Regular Point Marker and Cluster Points

I have two functions ` createPoints(); and addClusters(); to create points and cluster points from JSON point values and I am switching the map presentation (Points<-->Cluster) by suing a ...
1
vote
3answers
270 views

Identifying Primary Key field of Layer in ArcGIS Server using ArcGIS API for JavaScript?

I need to get the primary key column of the Particular layer added in the Map. Usually 'FID' be found for a Shapefile Layer Source and OBJECTID found for a SDE source layer. Is there any way to ...
0
votes
1answer
12 views

Custom Home Button In ArcGIS API for Javascript

Can you please take a look at This Demo and let me know how I can set up a custom home button var map; require(["esri/map", "esri/geometry/Point", "esri/symbols/SimpleMarkerSymbol", ...
0
votes
0answers
5 views

How to create mobile attribute inspector?

I'm trying to convert a desktop Javascript app to a mobile app, one of the problems I have is that the attibute inspector is not adapting to the cmobile screen, because this widget is not designed for ...
0
votes
0answers
10 views

google chrome version which support arcgis javascript api (version 1.6) on windows 7 (64bit) machine

I need to use google chrome to open a html file. The html file contains arcgis javascript api (version 1.6). Since the ArcGIS js api version is too old, some functions not supported by the latest ...
1
vote
1answer
9 views

Issue on Loading Required ClusterLayer.js With dojo

I have js file like this and I have saved the ClusterLayer.js in all directories like root --> ClusterLayer.js root --> extras/ClusterLayer.js root -->js/extras/ClusterLayer.js root ...
0
votes
1answer
160 views

How to add customization to Configurable Map Viewer (CMV)?

Looking to learn more about CMV Viewer. For example, how would I add capability like: map on load: for learning how to configure CMV Viewer for my own needs, I'd like to start by learning to add ...
2
votes
1answer
200 views

How to create a time slider using arcgis javascript that only shows a year at a time?

I am looking at this example on how to create a time slider using the arcgis javascript api. Instead of showing the data cumulative from the start date. I want to just show the data for that ...
0
votes
1answer
14 views

Positioning Overview Map On ArcGIS API for Javascript

I am adding an overview Map to the main map by this way var overviewMap = new OverviewMap({ map: map, visible: true }); overviewMap.startup(); which the ...
0
votes
1answer
19 views

Javascript API: queryTask error - where should I put the alert?

Where in the code do I add an error message if nothing is returned? function execute() { // var queryTask = new ...
0
votes
1answer
16 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
221 views

How to submit data to modify feature using applyEdits of ArcGIS API for JavaScript?

I'm new to ArcGIS API. In a form, how can you submit data to modify a feature using applyEdits? No map is involved with this. I have a form that populates the editable data with javascript. When the ...
1
vote
2answers
20 views

CMV How to use growler

I am trying to use growler into a plugin, does anybody know how to set up a working growler or can point to some documentation?
0
votes
1answer
31 views

Highlighting 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.
0
votes
1answer
326 views

How to zoom to layer using ArcGIS Javascript API

I tried to get the function "Zoom to Layer" done using the following code snippet. But it does not change anything. The layer is a feature service layer, and I can see the full extent object of the ...
0
votes
1answer
22 views

Stop queued click event if another event is fired

I'm looking for a way to suppress a map click event if some other event has already happened. The application I have created has two primary functions: Click on marker (park points) --> Brings up ...
1
vote
0answers
53 views

Plot Multiple Series from Related Table in One Chart

I'm trying to figure out how to plot multiple line series/charts in one chart in a popup window from attributes in a related table using the Javascript API. It seems like the only way to create a ...
2
votes
1answer
46 views

developing a Talking Map

I need to develop a prototype of a web application that speaks : When you click on a city (point) it says the city name (Audio files are ready) I want to use ArcGIS Javascript API. do you have any ...
1
vote
1answer
146 views

Set definition expression from click event

I'm trying to set a definition expression according to a user-selected value from a drop down menu, but I can't get the map to update the feature layers according to the expression. The user is able ...
1
vote
1answer
292 views

How to find whether a Point lies inside a Polygon using ArcGIS JavaScript API?

We want to find whether a Point lies inside a Polygon. var point = new esri.geometry.Point(-85.91,25.68,this.parent.esriMap.spatialReference); var polygon = new ...
1
vote
1answer
24 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
24 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
189 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
15 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
186 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
285 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
12 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
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
23 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
203 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
43 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
50 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
28 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
225 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
208 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
18 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
votes
0answers
23 views

Slow sending to geoprocess [on hold]

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
720 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
421 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
18 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
34 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
524 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
172 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
258 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
931 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
11 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
29 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
23 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. ...