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
91 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 ...
2
votes
1answer
90 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 ...
3
votes
2answers
121 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
25 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 ...
1
vote
1answer
44 views

configurable map viewer multiple map services

I have multiple map layers (right now about a dozen but that will likely stretch to several dozen) in my CMV. I have introduced several WMS services to operationalLayers that I have published to a ...
0
votes
0answers
19 views

Editing dijits which honor subtypes

Does only the attribute inspector honor subtypes? Referring to API doc https://developers.arcgis.com/javascript/jsapi/attributeinspector-amd.html I have lately started using the Web App Builder ...
0
votes
1answer
27 views

Setting opacity info in ArcGis Api for Javascript overwrites featureLayer.renderer.colorInfo

I'm having trouble setting the color of a feature layer in ArcGIS api for javascript. I have a feature layer, which, on the load event I set its renderer's colorInfo and opacityInfo. Both work ...
1
vote
0answers
22 views

How to set snapping specification in web map feature layer (arcgis)?

I need to set snapping to snap just to polygon vertex (by default it snaps to polygon vertex and edges). In this example and according to this, the map.enableSnapping() function should return an ...
2
votes
0answers
32 views

Adding more than 5000 paths string in ElevationProfile using ArcGIS API for JavaScript?

I'm creating a simple ElevationProfile using the ArcGIS API for JavaScript. In the URL it's described as MaximumRecords: 5000 Its allows only 5000 polyline array paths but I have more than 5000 ...
1
vote
1answer
55 views

query.where statement using date range in JS API fails with IE 11 but works fine with Chrome and Firefox

My aim to display point data from a feature layer on ArcGIS for JS map interface. I am successful doing so in Chrome and Firefox, however when I include date in a where condition of a query execute it ...
1
vote
0answers
21 views

Show FeatureLayer when some of it's objects is found by Search ESRI JavaScript Api

I'm using ESRI JS 3.15. I have many FeatureLayers, which resources are connected to Search, when user type a name of an object in search bar, it gets focused, but I want also to hide all other ...
1
vote
1answer
44 views

Basemap AGOL without internet connection

I have develop a JS webapp that call a arcgis services by web adaptor. The AGS is deploy into a back end server and web adaptor into a front end server and web app is deploy into a separate web server ...
0
votes
1answer
38 views

Querying/getting EID ( Edge id's of network ) in ArcGIS API for JavaScript?

I did a server-side(c#) network analysis and the output is the EID's(NetEid's) which needs a INETelements to query for features and Object Id's. It takes long time especially when you found many ...
0
votes
0answers
46 views

AttributeInspector is not showing up on 'click' event using ArcGIS API for JS?

I'm creating a application to select features on event 'click' and then using AttributeInspector to edit the attribute fields. I'm also creating draw tools to select features on event click and ...
0
votes
2answers
75 views

Take URL Parameters including corner Coords in ArcGIS webmap and display polygon on launch

I have a list of corner coords for study areas in a sharepoint list. I used 'calculated field' to generate a url that launches our internal webmap in a new window and sets the extents as the ...
1
vote
1answer
54 views

ArcGIS Javascript API edit data programmatically

I have a form that auto generates a unique number. I want to update/edit an attribute with this number. Is this possible using one of the Esri editing widgets? Attribute Inspector, Editing widget or ...
0
votes
2answers
27 views

FeatureLayer creation using ArcGIS JS Api with data hosted on ArcGIS online

I have a few feature layers hosted on ArcGIS Online and I am trying to add feature layer editing to my web project. The JS API guide says the data must come from an ArcSDE geodatabase ...
0
votes
0answers
36 views

CMV (Configurable Map Viewer) basemap displaying incorrectly

I have a version of the CMV hosted on a local Windows 2012 R2 server and I am having trouble with the basemap display. The display is fine on the http version of my site but I also have a https ...
0
votes
1answer
70 views

Feature service is not added to map using ArcGIS API for JS?

I'm trying to search features using the "esri/search" module. I'm passing the parameters to callback function (Search) to add a feature layer and search features, but i don't see any features added on ...
0
votes
1answer
50 views

TOC is not displaying feature layers?

here is my code to display toc.Its displaying dynamic layers but why its not displaying feature layers. <!DOCTYPE html> <html> <head> <title>Create a ...
1
vote
1answer
42 views

ArcGIS JavaScript API, 403 Forbidden [duplicate]

I am trying to understand the source code of the web application: NetCDF WMS with n Dimensions. I tried to run it on my own machine (Mac OS 10.10) and it is run on the Apache. However, I keep getting ...
2
votes
1answer
68 views

How to force QueryTask to always POST requests?

On ArcGIS API for JavaScript, how can we force QueryTask to always perform POST requests? I know that I can force POST for esriRequest via the usePost options parameter. Perhaps a similar, ...
2
votes
1answer
33 views

What is the need of “onExtentHistoryChange” in map navigation toolbar

In map navigation toolbar what is the need of "onExtentHistoryChange" in on(navToolbar, "onExtentHistoryChange", extentHistoryChangeHandler); <!DOCTYPE html> <html> <head> <meta ...
1
vote
1answer
37 views

Error in function when a class constructor called twice in ArcGIS API for JavaScript?

I want to create multiple search widgets using the "esri/search module". The second search constructor (for var geosearch) is showing an error that it is not part of function. Is it possible to use a ...
2
votes
2answers
278 views

ArcGIS API for JS Error message: Uncaught SyntaxError: Unexpected token <

I had created a application using ArcGIS API for JS to geolocate features in the feature layer that is added to basemap. I have an external Javascript and css file that are referenced (called) to html ...
0
votes
0answers
51 views

How to set attribution on layer level?

I want to use esri.dijit.attribution, but it seems so simple that no one needed to make a good example of it. I understood how to enable/disable it for the map, but I need to enable/disable it for ...
1
vote
2answers
91 views

Appending Data to FeatureLayer in ArcGIS API for JavaScript?

I am working on a web app where I am making calls to a database api and it returns a JSON Object. I've managed to do so successfully as well as any manipulations that need be done. Is there a way to ...
0
votes
1answer
52 views

Pushing value from text input to search widget in ArcGIS API for JavaScript?

I am developing a surveying app that among other things, asks the user for their address/closest street intersection, and then later asks them add features around they're "neighborhood". I would ...
1
vote
1answer
69 views

Using Symbols from Feature Layer for Graphics Layer in ArcGIS API for JavaScript?

I have a feature layer being drawn from a map service. I have a graphics layer that is the result of a query (happens to be on the same feature layer). I wish to apply the same symbols from the ...
0
votes
2answers
70 views

Point appears in wrong place, seems like wrong SpatialReference

I'm using the code below to render a point on the map but the point is in the wrong place. The coordinate system is 28992 which is a local system for the Netherlands. Instead of the point being ...
3
votes
1answer
65 views

Move/Drag multiple graphics in ArcGIS JavaScript API

In ArcGIS JavaScript API, I want to click a GraphicsLayer object (Graphic) on the map and perform a dragging MOVE operation for it as well as some of its neighboring graphics. I am looking for the ...
0
votes
1answer
40 views

Timing external javascript with ArcGIS Online embedded map

I have an ArcGIS Online time-enabled map on a webpage. When the map loads, the time slider begins moving. I would like to have a chart that moves along with the time slider, but I don't think ESRI has ...
0
votes
1answer
46 views

Loading Scene from ID into ArcGIS JavaScript API 4 Beta: “SyntaxError: Unexpected token ILLEGAL”

I have created a city engine web scene,and I am trying to display the 3d-visualisation view on sceneview by using the portal Item Id of my webscene. But I am getting "SyntaxError: Unexpected token ...
0
votes
0answers
60 views

Error: Unable to complete operation

While clicking on map,getting the error "Unable to complete operation".How to solve this please suggest me. Simple Map html, body, #map { height: 100%; ...
0
votes
0answers
89 views

JavaScript API Local Install not working

I have installed the JavaScript API locally to use in a developer environment with no internet connection. The issue I am encountering is when I attempt to view the sample service hosted by ArcServer ...
0
votes
1answer
109 views

Receiving dojo.io.script error Error: Invalid URL?

I am trying to get a buffer circle on my map,when I click on map. I tried with the following code, but I got error: dojo.io.script error Error: Invalid URL How can I avoid this error? ...
0
votes
1answer
34 views

Selected Feature not highlighted in map of CMV (Configurable Map viewer)

I have copied the whole code of Find widget and added it into another widget. First widget is working fine and highlighting the feature(creating feature from geometry), second widget is also working ...
4
votes
1answer
44 views

How to handle two onclick events that not both are fired?

I make a web application with ArcGIS API for Javascript (version 3.15) to access a geoprocessing service. The service is executed on an onclick event by the user, because the clicked position is used ...
1
vote
1answer
56 views

ArcGIS API - Creating Popups for Geoprocessing Result

With the ArcGIS API for Javascript I created a web application that accesses my before published geoprocessing service. The result of the service are a set of points and are displayed on the map. Here ...
2
votes
1answer
48 views

ArcGIS network analyst JavaScript API “No Facility found” error

I am using below code for ArcGIS SERVER Network Analyst API: ArcGIS JavaScript API for Network Analyst I need to customize it for my own NA server. I have successfully created an NA-SERVER on ArcGIS ...
2
votes
2answers
157 views

Basemap layer disappear on print. Only happens with max zoom

I am fairly new to arcgis, please bear with me here. ISSUE: I uses standard esri.dijit.Print for map printing. The base map displays normally in my map pane at all zoom levels. The printing ...
1
vote
1answer
52 views

Histogram Time Slider in Legacy Style ESRI JavaScript API

I tried to modify the sample code Histogram Time Slider ArcGIS API for JavaScript from AMD to Legacy style. However, I found the histogram was not shown in the bottom in the application (link listed ...
2
votes
3answers
94 views

Configuring ArcGIS Online Map Template

I'm creating a configured template to host to ArcGIS Online. I started from the Finder app, and configured simple things like the color scheme. My only problem is that the Share button isn't ...
0
votes
1answer
67 views

Get JSON WebMap from ArcGIS JavaScript API Map object [duplicate]

I'm trying to get a WebMap object (as JSON) from a JavaScript Map object in the ArcGIS JavaScript API. Is there any way to do this within the API, without using ArcGIS.com? Ideally something like: ...
2
votes
1answer
180 views

dojo/request a png image array buffer using NodeJS, and return the image to the client

I am attempting to request a png image using NodeJS and dojo/request from an ArcGIS Server REST feed, and return the image to the client. I need nodeJS to add a token to the request as a query ...
3
votes
2answers
71 views

Retrieving geoprocessing results in ArcGIS JavaScript API

I'm executing a geoprocessing script in an ArcGIS JavaScript API map viewer, and it works until I attempt to read the job's output parameter. My script: function extractModel(results) { var ...
0
votes
1answer
48 views

Different colors in the same layer

I have an app that is consuming ArcGIS REST Services through the ArcGIS JavaScript API (10.2 or 10.3). One of the available layers contains several Polylines. These lines belong to different groups, ...
1
vote
1answer
87 views

Add a canvas on the map that can pan and zoom along with it

I want to know if it's possible to add a canvas on a ArcGIS map that can pan and zoom along with it. The reason I ask that it's because we have different workflows where we have a lot of entities ...
0
votes
1answer
53 views

Retrieving User Input using ArcGIS API for JavaScript?

I am using the ArcGIS API for JavaScript to build a web application. Within the web app a geoprocessing service is executed which requires an input that is user dependent. I thought of a text box ...
0
votes
0answers
6 views

CartographicLineSymbol with caption

I can draw CartographicLineSymbol (lines) over the map. Now I have so many lines there, so I would like to add captions to the lines using. Is it possible? How?