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

0
votes
1answer
121 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
17 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 ...
1
vote
1answer
418 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
63 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
27 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
75 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
45 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
30 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
535 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
33 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
69 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
63 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
44 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, ...
2
votes
1answer
119 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
178 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
55 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
73 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: https://developers.arcgis.com/javascript/jssamples/...
1
vote
2answers
605 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
55 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
27 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
26 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
197 views

Javascript API Scalebar halo CSS Styling

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 backgrounds, but I can't ...
0
votes
1answer
31 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
134 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
72 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
99 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
72 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 ...
1
vote
1answer
69 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: http://sampleserver6.arcgisonline.com/arcgis/rest/...
0
votes
0answers
43 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
74 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
43 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
215 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
1answer
249 views

Defining custom basemap gallery 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 doesn'...
1
vote
1answer
286 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
63 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 ...
1
vote
0answers
164 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
180 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
69 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
55 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
179 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
23 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; ...
0
votes
2answers
402 views

Adding KML layers to ArcGIS JS API v4 (beta)?

I have been building a web application using ArcGIS JS API v4.0.Beta1. I am having difficulties finding out how to add KML layers to the scene. How do I add the KMLs? I have tried adding a new feature ...
3
votes
1answer
85 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
60 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
136 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
639 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
124 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 ...
0
votes
0answers
18 views

How to get a map service with multiple legends loaded? [duplicate]

This is based on browser crashes when loading legends at startup which is currently unanswered. I'm trying to get legends loaded from a feature service that contains multiple legends within the same ...
0
votes
0answers
39 views

How to create an if else condition with ArcGIS Javascript API for slider and imageLayers from switch statement

The code below is the switch statement that I am currently using. I can't seem to get the values (case) to match up with the horizontal slider I am using (4 unique values-each layer). I was thinking ...
1
vote
0answers
102 views

Change HTML markup used it PopupTemplate in ArcGIS (javascript api)

everyone. I'm sorry if it is common question but I'd googled it for a couple days and still haven't find the answer. Everything I see in documentation is style an exist HTML layout, which looks like: ...