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

1
vote
1answer
487 views

query.where statement using date range in JS API

I'm trying to construct a query.where statement using 2 input type=date fields on the page. The date field in SQL Server in the format 2014-12-31 00:00:00.0000000. The input fields date is in the ...
2
votes
1answer
821 views

Get XY coordinates in UTM from web-mercator where UTM zone is not known

How to get XY(northing/easting) coordinates in UTM where data is WGS_1984_Web_Mercator_Auxiliary_Sphere(WKID: 3857) coordinate system and UTM zone is unknown. For e.g. India falls under multiple UTM ...
0
votes
1answer
41 views

Snapping in ArcGIS API for JavaScript?

I want to add more than one layer to snapping in map var layerInfos = [ {layer:results[0].layer} ]; snappingManager.setLayerInfos(layerInfos);
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 ...
5
votes
1answer
2k views

How do I use a toggle button with the ESRI javascript api

I am trying to use two toggle buttons which have been added to a map to toggle layers on and off in my simple web application. I am having problems getting the toggle button to respond when clicked or ...
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 ...
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 ...
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 ...
2
votes
1answer
3k views

Web mapping within ASP MVC 3 framework

Just curious if anyone has used the ASP MVC 3 framework for creating web mapping applications. I have one coming up and am planning on using the ArcGIS javascript API. Would be interested in hearing ...
3
votes
1answer
2k views

Does ArcGIS API support Geoserver's WMS and WFS services?

I want to know whether ArcGIS API for Java Script support Geoserver's WMS and WFS standards. I have published my data on Geoserver and i want to query my data by WFS in ArcGIS API to develope my ...
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 ...
1
vote
1answer
2k views

ArcGIS JavaScript API Select Features

I'm having some trouble using the selectFeatures method with a feature layer. The code below builds a query using input text. If anyone has any pointers on what I could be doing wrong here, it'd be a ...
1
vote
1answer
270 views

Use Dojo to load modularized widget config files

I've taken a basic webmap 'ESRI HomeButton' and I'm trying to create a modularized webmap setup from it. I want to break down this simple webmap to have it utilizing a module system with config files ...
0
votes
1answer
289 views

How to submit data to modify feature using applyEdits of ArcGIS API for JavaScript?

I'm new to ArcGIS API. In a form, how can you submit data to modify a feature using applyEdits? No map is involved with this. I have a form that populates the editable data with javascript. When the ...
0
votes
1answer
292 views

How to add customization to Configurable Map Viewer (CMV)?

Looking to learn more about CMV Viewer. For example, how would I add capability like: map on load: for learning how to configure CMV Viewer for my own needs, I'd like to start by learning to add ...
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 ...
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 ...
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
241 views

ArcGIS API for Javascript Not Adding Layer and/or Graphic during mouse event handler?

I am trying to add a graphic to my graphics layer during a map mouse event. In the javascript console, I can see that my graphic object is created and no error is thrown when I add the graphic to my ...
0
votes
2answers
2k views

Populating combobox and zoom to selected field in box?

I am very new to arcgis javascript .I am not able to populate combobox and zoom to the selected field in the box <!DOCTYPE html> <html> <head> <meta ...
1
vote
2answers
92 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 ...
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 ...
0
votes
1answer
634 views

Chrome/Firefox Performance Issues

Just curious if anyone else is having performance issues with Chrome and Firefox while using an arcgis javascript web application. I have been developing an application that works great in Internet ...
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
4answers
499 views

Is Javascript/AJAX still supported in ArcGIS 10?

A colleague of mine claims that the ArcGIS Javascript web API is not supported for ArcGIS 10+. I searched their website but all the information seemed to indicate that it should still work. Any ...
2
votes
2answers
282 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 ...
0
votes
1answer
53 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 ...
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 ...
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 ...
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 ...
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 ...
4
votes
1answer
378 views

Geoprocessing Service Cannot Download Result?

I have implement the ArcGIS JavaScript example just like the ESRI official example (clip and ship) .Everything was going right except the final step ,when the gp job have finish and my browser lead me ...
1
vote
4answers
3k views

How to create working Hyperlinks in OnDemandGrid Cells

I'm creating a simple ArcGIS application that shows a table of data from a feature layer, one of which is a URL string. I'd like to make that string be a clickable hyperlink. Is this possible and if ...
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%; ...
5
votes
1answer
1k views

Combining text and circular background marker with ArcGIS API for Javascript?

I see that it is possible to create a circular symbol (among other shapes) with SimpleMarkerSymbol. I also see that it is possible to create a text symbol with TextSymbol. Is it possible to ...
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 ...
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 ...
2
votes
2answers
158 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 ...
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? ...
12
votes
3answers
5k views

How to Identify layers from multiple ArcGIS Server instances

This applies to ArcGIS Server 9.3 with the JavaScript API 2.4. My goal is to click on the map and have the Identify task run on all visible Dynamic layers. IdentifyTask requires a URL to the REST ...
1
vote
1answer
60 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: ...
4
votes
1answer
174 views

Why does a cache service need to load first when a dynamic service is involved?

I notice if you have 2 services 1 cached and 1 dynamic you have to load the cache first for it to display. Does anyone know why?
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 ...
2
votes
1answer
272 views

10.3 js callback appended to query call not working

I have two 10.3 ags servers that i thought were the same. But on one i can send this request to the rest api endpoint and it does not work: ...
3
votes
3answers
2k views

ESRI proxy page not working properly + CORS + cross domain scripting

I have set up a proxy page. I am using jsp version of proxy page. I have set up a server URL which will point to my Java. When I load the my page which the proxy URL has set in its html it will work ...
7
votes
1answer
312 views

Duplicate items in the legend

I have recently created a web map that uses the legend snippet from the ESRI JavaScript API website. https://developers.arcgis.com/en/jav...et_legend.html It works great for the most part, but has ...
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 ...