Use this tag when ArcGIS API for JavaScript is the web mapping API that you are using from the ArcGIS platform.

learn more… | top users | synonyms

1
vote
1answer
80 views

Accessing secure ArcGIS Online map service from custom web mapping application?

I'm building a custom web mapping application for a client. The application will be hosted externally to ArcGIS Online, but the application is registered with AGOL. The application will access the ...
0
votes
1answer
77 views

ArcGIS JavaScript Print task not working in Internet Explorer 10. error: access is denied

I have created a custom print task using my own custom templates and the Export Web Map tool in Server Tools of ArcGIS 10.2 to create a geoprocessing service similar to the print task made by Esri. ...
1
vote
0answers
20 views

Geoprocessing in web worker

I would like to use a geoprocess using the esri js api from inside a web worker, can this be achieved? I didn't manage to pass the geoprocessor to the web worker because it seems that you can't pass ...
1
vote
0answers
94 views

Esri Javascript Point Clustering Map Size

I am using Esri Javascript API to display points on a map that are pulled from a json object. Everything is working great, although i seem to be having issues trying to figure out how to get the map ...
1
vote
0answers
27 views

ArcGIS javascript - update a queryTask result on extent change

I'd be grateful if someone could help me with the following query. I have an application that runs a queryTask on a map service layer and returns various feature results in a div when they click on a ...
0
votes
0answers
46 views

Heat Map From Point Array Instead of Map Service

ArcGIS API is illustrating a Heat Map sample at This Sandbox var serviceURL = "//services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/2012_CA_NHTSA/FeatureServer/0"; var ...
1
vote
1answer
46 views

How to Hide and Show ArcGIS API ClusterLayer on Demand

I followed This API Tutorial to create Cluster Points on the map. Now I would like to have a function to hide them. I already tried like? clusterLayer.hide(); but it didn't work! I also tried to ...
2
votes
1answer
53 views

Closing InfoTemplate Programmatically in ArcGIS API for JavaScript?

I am trying to hide a layer on the map like var point = new esri.geometry.Point(-106.61, 35.1107); point = esri.geometry.geographicToWebMercator(point); var symbol = new ...
0
votes
0answers
21 views

Issue on Point Graphic Order in ArcGIS API for JavaScript

I am trying to add a point to map like this var point = new esri.geometry.Point(19.82, 41.33); point = esri.geometry.geographicToWebMercator(point); var symbol = new ...
0
votes
0answers
28 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
1answer
40 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
30 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 ...
2
votes
1answer
79 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 ...
1
vote
1answer
46 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
30 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
59 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
2answers
84 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?
1
vote
0answers
159 views

WMS layer as basemap in Configurable Map Viewer (CMV)

My goal is to use both wms layers and arcgis tiled layers as basemaps. I have accomplished this before in a separate application by simply adding it to the map as a layer and reordering the selected ...
1
vote
1answer
45 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
64 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
56 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
75 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
14 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
59 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 ...
0
votes
1answer
126 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
46 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
25 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
58 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
32 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
16 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
177 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
32 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 ...
0
votes
2answers
36 views

Dijit Horizontal slide bar issue

I'm trying to implement a Horizontal Slider using 'dijit/form/HorizontalSlider'. I successfully got the Slider working but the slider comes with a red color. How can i change the color to white or any ...
1
vote
2answers
39 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
33 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
1answer
50 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 ...
4
votes
1answer
103 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
33 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 ...
2
votes
0answers
48 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: ...
1
vote
2answers
376 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
39 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
23 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
47 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
21 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
108 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
29 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
92 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
48 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
71 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
58 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 ...