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
2answers
54 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
46 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 = JSON.parse(mapdata)....
2
votes
1answer
42 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
63 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
49 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
14 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
138 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
80 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
30 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
413 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
25 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
32 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
28 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
9 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
38 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
68 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": "foo,bar,hello,...
1
vote
0answers
47 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
42 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
53 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
49 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
36 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
82 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
99 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 ...
0
votes
1answer
51 views

InfoWindow.getSelectedFeature() not working

When I select a geometry on map, the method map.infoWindow.getSelectedFeature() always returns "undefined". It looks like it is not working. This behavior is with InfoWindow and also with Popup. Also ...
2
votes
2answers
54 views

ESRI JS API - Unable to register Basemap Gallery (ID is already registered)

I am attempting to add a BasemapGallery to my web application. I prefer to create my layout dynamically using constructors such as: layout.cpRight = new ContentPane({ region:"right", ... ...
1
vote
0answers
32 views

Showing only legend items that are actually displayed within current map extent using ArcGIS API for JavaScript?

I'm using TOC/Legend widget as a default legend panel in my ArcGIS based JavaScript API web app. It works great, beside now i want to filter this legend panel based on users current map extent. The ...
0
votes
1answer
40 views

Using Click Event on Layer A to query Layer B in ArcGIS API for JavaScript?

I have two polygon layers in a webmap service and want to do a dynamic query on click, such that when the user clicks on a lake (layer A) with ID = 100, the corresponding watershed boundary (layer B) ...
4
votes
2answers
136 views

ESRI JavaScript API - Add Layer using esriRequest Response

For various reasons I need to add layers to a map object using a response returned by an esriRequest to an ArcGIS Server. One reason being the data will change constantly and hard coding FeatureLayer ...
0
votes
1answer
36 views

Arcgis Javascript Api Identity Manager with proxy

I'm trying to setup an authentication architecture with a web app using arcgis Javascript api with a configured .NET proxy and a web adaptor. When i load my app the identity manager shows up for ...
-1
votes
1answer
71 views

Uncaught TypeError: registry.forEach is not a function

I am trying to add two dojo buttons for polyline and rectangle on a map, and i have written loop for two buttons, but i am getting error :"Uncaught TypeError: registry.forEach is not a function" ...
0
votes
1answer
45 views

CMV (Configurable Map viewer) - Possible to use “Custom TiledMapServiceLayer” as a basemap?

Is it possible to use a "Custom TiledMapServiceLayer" as a Basemap? Is it possible to show a "Custom TiledMapServiceLayer" in BasemapGallery?
1
vote
1answer
62 views

Configurable Map Viewer (CMV) Measurement Widget Error

I have several cmv widgets enabled, some I have built myself. All work great, but when I enable the Measurement widget I am getting this error upon loading the app: dojo/parser::parse() error ...
-1
votes
1answer
81 views

how to highlight map area with extent geometry onmouse click

I got this example in arcgis api ssample code . But the problem is that , i want to create it for any area of map . like if one click on any city , it should be selected.And the code is for mouse-over ...
0
votes
1answer
29 views

Setting color info without defining new instance of renderer

I have an esri map with five feature layers. Each also has an id, and it is used in a toggle layer function to update layer visibility in the map. For most layers, I just need to set one static color ...
1
vote
1answer
51 views

Is there a way to get the vertices of segment of polyline?

I have a polyline with 3 co-ordinate, say (x1,y1), (x2,y2), (x3,y3). Can I get the vertices (x1,y1), (x2,y2) if clicked on line-segment drawn by (x1,y1), (x2,y2). I have a polyline on map that with ...
0
votes
2answers
63 views

Not able to remove layer from map

I am using arcgis javascript api . I want to remove a recently added layer , i wrote like this var a = map.layerIds; var b = map.getLayer(a[2]); map.removeLayer(b); But I am not able to remove any ...
1
vote
0answers
32 views

Highlighted graphics resets on zoom in ArcGIS API for JavaScript?

I am highlighting graphic using graphic.setSymbol(pictureSymbol). It is working fine. But, when map is zoomed the symbol graphic is reset to default. If anyone has come over the issue, please help! ...
0
votes
1answer
74 views

zoom to all points in arcgis js api

Can anybody tell me what wrong in this code.Here I am passing point geometry to query task. var districtName = $('#ddlDistrictd').val(); function showresults() { $.ajax({ type: "POST", ...
0
votes
1answer
61 views

Geosearch Esri controls in leaflet

It is possible to disable the Geosearch Esri controls in leaflet after the first geocode search? When I run Chrome console and I select the search geocode icon this is the code: <input class="...
0
votes
1answer
74 views

checkbox in toc is not working

I have toc with dynamic and feature layers.its displaying properlybut when I checked on and off the checkbox nothing is changing on layer. below is code: <!DOCTYPE html> <html> &...
0
votes
0answers
29 views

Why is BorderContainer and ContentPane methods are not called for map and attributeInspector elements using ArcGIS API for JS?

I'm trying to display the attribute inspector on right-side panel when a feature 'onclick' event is called, but whenever i click on a feature the attribute inspector shows-up on left-side of the ...
0
votes
0answers
79 views

Zoom to x y coordinates in arcgis javascript api 3.15

I am using arcgis javascript Api 3.15 with ASP.NET and Ajax.I got json object contains only x and y coordinates. This object does not have geometry column. How can I zoom to this json object. Should I ...
3
votes
1answer
65 views

Show coordinates in other projections (ArcGIS Javascript API)

Is it possible to change this sample that it will be show x,y coordinates in wkid:5514 ? <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> <...
0
votes
2answers
230 views

Uncaught SyntaxError: Unexpected token (

I want to show tooltip for my dojo button, I have tried the following code but getting error: Uncaught SyntaxError: Unexpected token (. Please solve this issue. <!DOCTYPE html> <html> &...
3
votes
0answers
49 views

Add Shapefile code - Why all shapefile features added on the same location on map?

I am developing the JS app using 3.15. I have tried this code in my app Add shapefile from the esri samples. but shapefile features added at the same location on map.If the polygon features it ...
0
votes
2answers
123 views

draw polyline on map in javascript api

I am trying to draw polyline on map, but line is not adding to the map,please help me determine where I am making a mistake. <!DOCTYPE html> <html> <head> <meta http-equiv="...
2
votes
1answer
145 views

TypeError: g.join is not a function in queryTask.execute

I need to query data from a server, so I try to exploit "Query data without a map" sample. However, at queryTask.execute I get following error: TypeError: g.join is not a function My code is ...
4
votes
2answers
236 views

How to pass polygon to query.geometry with ArcGIS API for JavaScript

I have to highlight district boundary and corresponding point. So I am trying to do like below code. But I don't know how to pass district polygon geometry to query.geometry. var queryTask = new ...
0
votes
0answers
28 views

How to show a legend of a invisible layer in ArcGIS javascript?

Using the JavaScript API for ArcGIS, I'd like to show the legend of a DynamicMapServiceLayer that's not visible. Is this possible? The result would be a static legend that's always there, no matter ...