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

learn more… | top users | synonyms

1
vote
1answer
14 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
13 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
11 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 ...
0
votes
0answers
10 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
15 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
13 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
12 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
19 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
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
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
0answers
34 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
28 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
26 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
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
18 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
0answers
19 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 [closed]

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
30 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
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
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 ...
0
votes
0answers
12 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
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
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. ...
3
votes
1answer
24 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
20 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 ...
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
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 ...
2
votes
0answers
16 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
51 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
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
0answers
16 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
47 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
19 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
50 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
29 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
33 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
44 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
24 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
47 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
59 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 ...