The ArcGIS API for JavaScript is a web mapping API from Esri.

learn more… | top users | synonyms

0
votes
0answers
2 views

ARCGIS Javascript query throwing error

Below are two screen shots, one for when I am querying on arcgis server and the other when I am querying the same server through javascript. For some reason, javascript querying is throwing error for ...
1
vote
1answer
357 views

Polygon using ARCGIS API for javascript

I've polygon data as POLYGON ((1645481.0939999996 6124506.9885, 1645470.0473999996 6124473.5406, 1645475.7094 6124440.1391,1645481.0939999996 6124506.9885)) in wkid=2193 I want to project ...
0
votes
0answers
25 views

Printing (or exporting) Imagery from a Image Service using pre-defined map layout templates within an JavaScript based ArcGIS web app

Quick back story: I've been tasked with creating a simple web app that will display vector and imagery data for a surface mine site. This site would be used by office personnel who aren't well-versed ...
0
votes
0answers
3 views

Esri JavaScript API ApplyEdits update not working

When I attempt to applyEdits as an update to my application I receive the following errors: I uploaded my most recent revision on Github at: ...
0
votes
0answers
5 views

Raster loading on arcgis javascript api on user request

In my project, i want to give the user the option to select the date of the raster he/she wants to display, then that raster would be loaded onto the basemap. I loaded daily raster (CREST hydrological ...
3
votes
2answers
137 views

Geocode an address and then buffer

I have a script which geocode an address and buffer that address by 1, 5 and 10 mile radius. The problem I am having is that the address on the map shows 4 different points not sure what's causing it. ...
1
vote
0answers
62 views

How do I modify the WebAppBuilder "LayerList' widget to use radio buttons instead of checkboxes?

I've downloaded the developer version of the Web app builder and installed in on my machine. I can open up the widget '\LayerList\LayerListView.js', and I have been exploring the source code. I would ...
0
votes
0answers
5 views

Enabling Image Layer List (rather than RGB) when Consuming a Mosaic Dataset Image Service

I would like to be able to access a mosaic dataset image service and have the available images within it listed in the layers window, below the service label, rather than the Red, Green Blue that is ...
1
vote
1answer
136 views

Get Graphics from KML Layer in ArcGIS JS API

I just started working with the ArcGIS Javascript API and I was wondering how I would go about getting an array of Graphics from a KML layer. I do not know where to begin.
0
votes
2answers
419 views

evt.layers undefined while trying to display Legend widget in Javascript API

I cannot get an ArcGIS Javascript API Legend widget to show up. An excerpt of my code is as follows. I believe I'm failing somewhere near the console.log that I call...undefined comes up in the ...
-1
votes
0answers
14 views

How to change the default symbol of point data from KML layer in ArcGis API for JavaScript? (The default symbol is yellow Thumb pin)

I'v added the data from KML file(a crime location data) to my webportal(running on localhost).Using "var kml = new KMLLayer(kmlUrl);" in JavaScript. When I load the page the data(point) is ...
1
vote
1answer
166 views

Use Java to automate service creation and display up to date data on map?

Our team is using ArcGIS and our requirement is To create a web application in JAVA with a map displaying various data from DB. The data gets updated periodically in the DB and the map should ...
1
vote
0answers
6 views

Direction widget Arcgis JS Api not working correctly for my own network analyst service

I have been following example on this link: http://developers.arcgis.com/javascript/samples/widget_directions_basic/ for my own network analyst service. Though I have been getting correct routes ...
0
votes
0answers
12 views

Adding .CSV file

When I add my file to ArcGis SandBox it shows the data from CSV file to Layer . But when I try to Add it through ArcGis API For JavaScript it doesn't work.I'm working on localhost. Help!!! ...
7
votes
4answers
1k views

Merging Popups with Relationship Queries using ArcGIS API for JavaScript?

I am trying to merge two ArcGIS JS API examples: Feature Layer with Popup and Query Related Records. The idea I have in mind is clicking on a country feature, retrieve all related records from a ...
0
votes
1answer
153 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
599 views

Identify Tool for JS API similar to the tool in ArcGIS Desktop?

As documented in my earlier questions, I am having trouble connecting multiple ArcGIS Server services to identifyTasks. Therefore, I'm wondering if there is a tool/process or if its possible to create ...
1
vote
2answers
856 views

How to install ArcGIS Code Assist in Aptana 3?

I have downloaded Aptana and ArcGIS Code Assist but I don't know how to "DRAG" the vsDOC into Aptana. Aptana 3 Installation Instructions Download the zip file that contains the VSDoc file for ...
3
votes
2answers
1k views

Export map to PDF using Esri JavaScript API

I've searched a lot and tried many ways to export a web map to PDF. I need to export a web map and all active layers. Can anyone help me?
0
votes
1answer
140 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 ...
-2
votes
2answers
314 views

Deleting feature from geographic database using ArcGIS API for JavaScript? [on hold]

How do I delete a selected feature from database when it is clicked on in the ArcGIS API for javascript?
3
votes
3answers
378 views

How to ensure that only my application has access to ArcGIS Server services

I'm making a web map based on the ArcGIS Server JS API. How can I ensure that users must use my front-end to access the ArcGIS Server layers? That is, I want anyone visiting MyDomain.com/index.html ...
3
votes
1answer
169 views

ArcGIS JSAPI - web workers CORS issue

In my JS web-application, I'm trying to store the tiles in my localstorage using web workers.I'm using the code from this Esri sample. I just deleted line 20 in the ioWorker.js file: url = ...
0
votes
1answer
152 views

Is it possible to copy and paste features in an online Edit function?

Using the ESRI JS API, is it possible to select a feature and then create buttons to copy and paste that feature? This would be done using the Editor Widget. If its possible to do this, but only ...
2
votes
1answer
100 views

Creating a Map with Spatial filtered layer on the fly

I created a web application with User accounts. based on the User type I need to filter certain point layer with a selected cities region. Ie , when user log in, his accessible cities (city ids are ...
0
votes
0answers
22 views

Customizing timeslider labels using ArcGIS API for JavaScript?

i'm use javascript ArcGIS map with timeslider, and now have problem with timeslider labels - with large number of timestops labels are overlaps Show only part of labels is not solution - timestops ...
1
vote
1answer
182 views

ArcGIS javascript API setDefinitionExpression returns wrong result set

New to GIS and ArcGIS. I am trying to use the javascript API setDefinitionExpression to limit the output of a FeatureLayer on the map; however, the result set returned by the function is incorrect. ...
1
vote
1answer
133 views

ArcGIS Javascript API: Adding a shapefile with more than 1000 points

I am able to add shapefiles with less than 1000 points by using the ArcGIS Portal REST API as shown in this example: https://developers.arcgis.com/javascript/jssamples/portal_addshapefile.html ...
0
votes
1answer
154 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
0answers
12 views

Set destination address using Esri Directions

I am using the sample on the Esri JS API and would like to set the destination of the directions to always be my address; any idea how to do that? The code to do this is: <!DOCTYPE html> ...
2
votes
1answer
170 views

How to create a time slider using arcgis javascript that only shows a year at a time?

I am looking at this example on how to create a time slider using the arcgis javascript api. Instead of showing the data cumulative from the start date. I want to just show the data for that ...
0
votes
0answers
11 views

How do I remove HorizontalSlider dynamically?

I am using ArcGIS API for JavaScript and am creating Horizontal Sliders for opacity of maps dynamically. However, when I select a different map and create a new slider, it doesn't get rid of the old ...
0
votes
1answer
27 views

Can't close custom Web AppBuilder widget programmatically

I am creating a custom widget in ArcGIS Web AppBuilder. This page shows how you can use the WidgetManager to close a widget programmatically, saving the user from having to click the X button ...
0
votes
0answers
13 views

Problem with popups and points in a graphic layer

I have a graphic layer with two points on a graphic layer, zoomed out such that they overlap. I have a Popup as the info window for the map with paging controls enabled. My expectation is that when ...
0
votes
0answers
10 views

SVG image color to be changed by CSS when using ArcGIS API for JavaScript?

I have a image "a.svg" (let's say). I want to change the fill attribute of this svg symbol using CSS. I use this image in a picturemarkersymbol to display a graphic on the map. Is it possible to ...
3
votes
1answer
379 views

how to disable duplicate items in the legend for ArcGIS JavaScript API

I have a problem with duplicate items in the legend panel! Can anyone help me? This is my feature Layer with popup info: // Feature Layer var msFeatureLayer = new ...
1
vote
1answer
173 views

What ArcGIS Online feature service provides European states with unique country codes?

I'm writing a web page to display ECB statistics on an ArcGIS JavaScript API-based web map. I'm a bit lost when selecting a feature service so that I can use the UniqueValueRenderer to make the ...
0
votes
0answers
44 views

Access to Feature layer via ArcGIS JavaScript API and HTML Form

I'm building a GIS web app using ArcGIS JavaScript API and I want to create a polygon feature layer and an html form that enables me to (insert, update, delete) attributes from the feature layer. I ...
0
votes
1answer
65 views

Accessing Draw toolbar of ArcGIS JavaScript API without dojo?

I am building an application using Angular JS, and have been accessing ESRI classes thus far in the following way: var graphicsLayer = new esri.layers.GraphicsLayer(); I have access to the 'esri' ...
0
votes
1answer
77 views

Create a polygon from an array of coordinates in arcgis javascript api

Well I am building a GIS web app using ArcGIS Javascript API , I want to create a user interface in which the user provides an array of coordinates and I have to get those coordinates and create a ...
0
votes
1answer
189 views

Mapquest directions API in ArcGIS javascript webmap application

I'm trying to build a webmap application using the ArcGIS JavaScript API. A functionality I would like to include is driving directions from a current GPS location to a feature in my feature service. ...
3
votes
2answers
164 views

Is there a way to set a geometry filter on a esri.layers.FeatureLayer?

Suppose I want to limit the extent of a feature layer to a geometry (say a circle). Is that possible? I am aware of setDefinitionExpression but that is limited to a attribute filter. There seems to ...
1
vote
1answer
804 views

ArcGis Server Java script API error code 500 while using proxy.ashx on one particular server

I am looking for help with using proxy.ashx in Javascript API on one particular server at a client site. We have a GP service that the proxy is used to access (when request is more than 2048 ...
0
votes
1answer
207 views

How to zoom to layer using ArcGIS Javascript API

I tried to get the function "Zoom to Layer" done using the following code snippet. But it does not change anything. The layer is a feature service layer, and I can see the full extent object of the ...
0
votes
3answers
60 views

Create non-GIS Front End to ESRI Server Web Map

I have a webmap that I have created using the ESRI ArcGIS Javascript API / Web App Builder. It manages City projects. The departments that manage this data would like a web-interface to manage the ...
2
votes
1answer
18 views

Remove 'zoom to' tool in pop up feature information ArcGIS API for JS, or define the number of clicks i.e. defined scale

How can I remove at all 'zoom to' tool in the pop up attribute information? Or how can I define the scale (number of clicks) in case if the 'zoom to' can not be removed. I have particular layers ...
0
votes
0answers
26 views

Adding shapefile from local drive to WebApp using ArcGIS API for JavaScript?

I want to add a shapefile of certain data to my WebPortal (which is currently running on Localhost) how can I do it? I'm using ArcGIS API for JavaScript.
1
vote
1answer
348 views

How to Create a arrow PolyLine with curved (geoDesic) using ArcGIS PolyLine

Trying to draw two markers(points) with a curved and arrow PolyLine using ArcGIS maps. Below is the source code, able to draw Poly line but it is coming as straight line. <!DOCTYPE html> ...
1
vote
1answer
51 views

Should I use Basemaps or Layers to overlay two maps?

I'm trying to create a map that essentially has two maps on top of each other (chosen from many map choices) at the same time. One of maps will have an opacity slider. Should I be trying to use two ...
1
vote
1answer
351 views

Zoom to link button in Popup, killing the Map

I am using the traditional Popup of JavaScript API and it seems to not work properly in my application. When you click on the map, the Popup comes fine but when you click on the Zoom to link button, ...