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
15 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
0answers
22 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 ...
0
votes
1answer
16 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
14 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
27 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 ...
2
votes
1answer
21 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
45 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> ...
-1
votes
0answers
27 views

Arcgis Web App builder chart widget

I am using chart widget to generate charts and graph.It is running fine,But my client wants to be simple.if he clicks on the chart icon the results should be displayed without selecting layer and ...
3
votes
0answers
31 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
40 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
27 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
72 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
20 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
22 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
8 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
15 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
11 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
24 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
36 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
19 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
33 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
0answers
15 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
31 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
49 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
45 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 ...
-1
votes
0answers
10 views

Features are not highlighted on search call using ArcGIS API for JavaScript? [duplicate]

I'm trying to locate the features using search widget. I can get suggestions from search widget, but the features are not returned on map for that search. Do anyone know where i had gone wrong?. ...
0
votes
2answers
24 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
29 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
56 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
27 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
35 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 ...
1
vote
1answer
35 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
26 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
25 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
78 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
28 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
53 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
32 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
38 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
42 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
35 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
31 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
28 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
28 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
57 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
39 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
27 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
31 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
47 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 ...
0
votes
1answer
26 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 ...