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
3answers
35 views

How to resolve this error, ARCGIS JSAPI

XMLHttpRequest cannot load http://sampleserver1.arcgisonline.com/ArcGIS/rest/info?f=json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not ...
1
vote
0answers
40 views

Get Styles for Feature Layer in Feature Collection, Customize Layer List

so I'm using the JavaScript API to customize an ArcGIS web app and I need to take feature layers and group them in the layer list widget. Here's the code I have that does that (in the widget.js file ...
3
votes
3answers
116 views

How can I change number format and alias in javascript API legend?

I want to change the alias and the length of a field that already exists in my GDB from the Javascript API. Is this possible? I see that alias is a property of the Field class. Can I do something ...
0
votes
1answer
27 views

CSVLayer as a source for Search widget in ArcGIS Javascript

I am trying to add my CSVLayer as a source for the Search widget, however, I've been unsuccessful. My Search widget searches addresses and I was able to add one of the sources from this example ...
3
votes
1answer
43 views

Editor widget in CMV is not working

I'm new to GIS. I'm using the CMV template for my applications, but I can't get the Editor widget to work. The problem is that all the functionalities form the Editor Toolbar are not working. The only ...
0
votes
0answers
19 views

Use multiple dojo datagrids or generic?

I'm using ESRI ArcGIS javascript api v 3.16 I need to display results from 4 separate layers and queries in a datagrid (at different times). Rather than specifying 4 separate tables with field's ...
0
votes
1answer
26 views

Legend Not Refreshing When Renderer Changes

I have the following code to grab a value from a drop down menu and use it to change the renderer of the featureLayer. However, it does not update the legend. The legend just stays on the initial, ...
0
votes
1answer
15 views

How to set LocateMe Widget static or predefined location(or x & y)

I whant to have locateMe button with static predefined x and y coordinates. I have found this: myWidget = new locateButton({ theme: "locateButton", // (optional). class name for the widget container. ...
0
votes
1answer
50 views

S-JTSK projected incorrectly in JS API

I use a method based on the "project a point" sample to project points from S-JTSK (wkid 102067) to Web Mercator (wkid 102100) and they are ~100m away from their correct position. This happens when I ...
0
votes
1answer
12 views

Is it possible to show preview extent box for PrintTask in ArcGIS 3.16 JavaScript API?

I have set up a map application using ArcGIS JavaScript API v3.16 and included functionality for exporting a map to PDF using the PrintTask. Is there a way that I can use a button/checkbox to turn on ...
0
votes
0answers
18 views

How to get color from a marker symbol using esri and javascript

I use Esri map and javascript, and I set the variable: var pointSymbol = new esri.symbol.SimpleMarkerSymbol( esri.symbol.SimpleMarkerSymbol.STYLE_CIRCLE, 15, new ...
1
vote
0answers
9 views

How to share business logic among multiple applications using different apis with arcgis?

I've been working with ArcGIS and Esri WPF API for a year, but now me and my job colleagues felt the need to build a new application using the Esri Javascript API. Our application using WPF API has a ...
0
votes
0answers
61 views

ArcGIS operation dashboard widgets interacting with each other

I am working with custom widgets for ArcGIS operations dashboard. I created two widgets (A and B) and now i need to make them interact somehow (selecting value from one should be handled in another). ...
0
votes
0answers
29 views

ArcGis 2 JavaScript Api Conflict 3.11 and 3.16

Have problem with arcgis javascript api.My template(Tour Map- Customized) is old and use 3.11. <script src="//js.arcgis.com/3.11/init.js"></script> And i want to use ...
0
votes
2answers
44 views

Event not firing for map.graphic.add objects added

Using ESRI ArcGIS javascript api v 3.16 I programmatically add a graphic to my map, which works fine, for example: var pnt = map.graphics.add(new Graphic(evt.mapPoint, stopSymbol)); I need to fire ...
1
vote
1answer
58 views

How to add group layers/TOC to ArcGIS web map/web application?

I am new to arcgis online and am trying to create a web map that has some kind of grouped layers. I have tried adding multiple shape files that are all zipped together but because together the files ...
0
votes
0answers
24 views

Map service layers drawing beneath basemap

I have created a geoprocessing service that displays the results as a map service. For some reason only the first layer of this map service is being displayed. The other two are actually being drawn ...
1
vote
0answers
13 views

Display Legends on esri map using javascript [duplicate]

I have different module like distance calculator,radius search and more. Each pages I need to show Legends div so that user can identify places by images on map(or identify the layers).
0
votes
0answers
30 views

How to use Esri ArcGIS JSAPI InfoTemplate and SimpleMarkerSymbol in conjunction with Query

I have a JavaScript API map where I would like to execute the following workflow : User enters address in locator Location candidate spatially intersects with any polygon feature that it falls ...
0
votes
1answer
63 views

ArcGISDynamicMapServiceLayer Zoom + LocateButton

Have few questions about DynamicMap options. 1.Can i implement LocateButton? 2.Can i set the starting Zoom on the map? This is my Code that is use only with LocateButton but wont work with him, if ...
0
votes
0answers
32 views

Making Search Widget with custom map

I whant to make Search Widget with autocomplete. I have seen Search Widget Sample : and its making the job that i need from search field. Now my Question is how to implement my map!? This is my ...
1
vote
1answer
33 views

Can I simplify geometry on the fly in a ArcGIS JavaScript map viewer?

We've got a polygon feature class of parcels around a lake boundary that is incredibly accurate. The editor did a really thorough job of following all the inlets and meanders along the edge. From just ...
0
votes
0answers
47 views

ZoomTo, Search, Find implementig in existing ESRI world project

I'm working on Map Tour project and I'm kind of new (1st Project) to ESRI world especially Dojo (working with Dojo less than 4 weaks) world. I need to add some widget to search that will find the ...
1
vote
0answers
26 views

jquerymobile-TypeError: Object doesn't support this action on windows phone

Obtaining TypeError: Object doesn't support this action in windows phone 8.1, IE v11. The application is plotting route and drawing circles in Android & iOS devices. Is there any ...
0
votes
0answers
19 views

query task output as input to new query task

I am trying to display all features that intersect with the results from a query task. I am trying to execute a query task where the output is then passed as the geometry input to a second query task. ...
1
vote
0answers
66 views

ESRI Cluster layer dynamic label colors

I am using extras/clusterlayer to render clusters for a uniquevalue renderer.. all that works well and good except that the label colors are all white/black/whatever you set them to.. I though I'd ...
0
votes
2answers
51 views

Adding NOAA Radar to JavaScript Application

I am atempting to add NOAA's Dopler Radar to my web. For whatever reason the later will not display on the map. No errors are being reported and I have used console.log() to confirm the data is being ...
0
votes
1answer
36 views

Adding features dynamically to an ArcGIS Javascript FeatureLayer with applyEdits()

When attempting to add features to a featureLayer with applyEdits, the features do not get added to the layer. var featureCollection = JSON.parse(mapdata); var features = ...
2
votes
1answer
39 views

How do I create a layer with popups that has hundreds of unique markers/symbols?

I am creating a layer in ArcGIS JavaScript API. I am looking for the best way to have a feature layer with popups and unique markers. This layer has hundreds of markers at a time. The markers are ...
1
vote
1answer
54 views

M-N relationship class in geodatabase with existing linking table?

I have a parcel database with an M-N relationship (Parcels to Deeds). I have already created and populated a linking table. We have also set up two relationship classes in the geodatabase for the two ...
3
votes
0answers
36 views

How to move a point on a touch screen using esri map, dojo and javascript

I am new to map development. For touch screen devices, I need to add a point on an ESRI map and then move this point to other location on the map and get its coordinates.
2
votes
0answers
12 views

Feature templates in ArcGIS JSAPI published maps

I have an ArcGIS map which is published on ArcGIS server (10.3) and while the feature templates for each layer are set up in the map, the published map service contains totally different set of ...
2
votes
1answer
107 views

ArcGIS Geoprocessing Service Output Location

I am publishing an ArcGIS geoprocessing service using a Python script tool and can't seem to figure out the correct output path to use. I would like to share the results as a map service, which means ...
1
vote
2answers
68 views

ESRI JavaScript FeatureLayer constructor makes graphic geometry null in featurecollection object

I'm pulling point data by lat long from my SQLServer database via webservice and creating a JSON FeatureCollection object as the webservic response. When I attempt to create a FeatureLayer from this ...
0
votes
0answers
23 views

Geojson live service in Configurable Map Viewer

I know that you can use the esri togeojson tool in there terraformer tool. But i was wondering if anyone has added this capability into a CMV viewer. I am looking at adding the capability so it would ...
1
vote
2answers
191 views

Uncaught TypeError: Cannot read property 'on' of undefined

I have added a drawpolygon tool in navigation toolbar,but when clicking on this tool event is not firing. Please suggest me how to solve this error : Cannot read property 'on' of undefined. ...
-1
votes
1answer
22 views

TypeError: dojo.promise is undefined

I am trying to convert my web mapping application from legacy to AMD style. However, the error message tells the "TypeError: dojo.promise is undefined". I have tried to see if the error could come ...
1
vote
0answers
30 views

Trying to select some features that are at a map service not featurelayer. (arcgis api)

I am trying to select(highlight) some features that are found at a map service. The selection is based on mouse clicking on map by the user. I am using Arcgis Javascript Api 3.15 Here are my steps. ...
1
vote
0answers
26 views

ESRI Javasacript API Legend digit: Modify Layer Names

I am using the ESRI Javascript API Legend Digit in a map application and I would like to alter the display names as they appear in the legend. I'm accessing map services with cryptic names like ...
0
votes
0answers
8 views

Javascript Manipulating Display Of WMSLayer

Is there a way to change the map display color for a esri WMSLayer? The only interactive method that is similar to what I am trying to do is setOpacity() var wmsLayer = new WMSLayer(wms, { ...
1
vote
1answer
30 views

Arcgis Gis :Change Color on clicking Graphics

I have a number of point graphics on a map with different colors depecting some meaning.My query is on clicking any graphic(s) I want to highlight it but if I click again it should revert to its ...
3
votes
1answer
62 views

Arcpy geoprocessing script running with default inputs

I have a pretty simple geoprocessing script. My javascript is supposed to be passing it a list of layers to query. Something like this for the Javascript: var params = { "Layers": ...
1
vote
0answers
46 views

Trying to query based on selected feature, but query is using previously selected feature

I'm not sure how to replicate this problem with just a code snippet, because it involves so many different elements of my HTML and JS. So here is a jsbin with the whole code. I use ESRI's popup ...
1
vote
0answers
40 views

ESRI Javascript KMLLayer and CSVLayer

I have a map where I have a KMLLayer that defines a geographic boundary and a CSVLayer that defines points within that boundary. I do not want any infoWindow information popping up for the KMLLayer ...
3
votes
2answers
50 views

How to pass arguments to query function in different module

I have a query (see this jsbin example) to find the percentile rank of a fields value. So it finds all records (N) and then how many records are less than itself (k). Percentile = k/N as a rounded ...
2
votes
1answer
45 views

KMLLayer Infowindow

I am trying to add a KML layer to ESRI javascript project. That part is easy enough. I want the KML file to appear, but do not want any infowindow to display for items within that KML. All that I ...
0
votes
0answers
28 views

QueryTask with StatisticDefinition throws Error: Unable to complete operation

I'm trying to run the following query on my layer, which is on ArcServer 10.1 and has outStatistics = true. My syntax all looks right to me. As I said above, I get Error: Unable to complete ...
0
votes
1answer
58 views

ESRI Javascript CSVLayer onClick Event

I have a CSVLayer that I loaded into a web application. The data that I want to display within the infowindow of that CSVLayer is too large to display nicely in the existing map window. Therefore ...
1
vote
0answers
30 views

Info template displayed far from mouse click

I've consistently noticed in my ESRI webmap that the info template is displayed below the mouse click. For example, if I click on a polygon the one below it is displayed. Sometimes, I cannot get the ...
2
votes
0answers
69 views

How to correctly display SVG path graphic after map scale change using ESRI JavaScript API?

I've built a web map that shows the locations of fleet vehicles based on their GPS data. I managed to add a nice feature that animates the routes these vehicles take on their way to destinations using ...