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

learn more… | top users | synonyms

0
votes
2answers
14 views

CMV Viewer Floating Widgets

I asked this question on Gitter but I think it got lost pretty quickly. Does anyone have an example CMV site without the side bar or any indication whether it would be worth pursuing CMV if what I ...
1
vote
3answers
255 views

Identifying Primary Key field of Layer in ArcGIS Server using ArcGIS API for JavaScript?

I need to get the primary key column of the Particular layer added in the Map. Usually 'FID' be found for a Shapefile Layer Source and OBJECTID found for a SDE source layer. Is there any way to ...
0
votes
2answers
28 views

3D equivalent to ArcGIS API?

I am currently working on a 3D mapping project. And I have created some KML files from ArcGIS Online, and I have edited them in Google Earth to adjust the 3D attributes. I am also designing a webpage ...
0
votes
1answer
160 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
1answer
2k views

Adding layers using ArcGISDynamicMapServiceLayer

I am right now adding individual layers using FeatureLayer but it takes quite some time to load as the map is for US Counties (3076 count). I tried to load it using ArcGISDynamicMapServiceLayer but I ...
2
votes
1answer
492 views

Arcgis API for Javascript: how to change color of simple point marker using colorpicker

as title states im having a hard time changing the color of my simplemarkersymbol using javascript. I have read that the format of color needs to be [r, g, b, a] which I have a color picker giving me ...
0
votes
2answers
35 views

Defining custom basemap toggle in ArcGIS API for JavaScript?

I'm using arcgis js spi for 3.13 edition, when I using basemaptoggle widget from https://developers.arcgis.com/javascript/jssamples/widget_basemap.html is ok, but when defining my own basemap is ...
0
votes
1answer
16 views

Trying to update field in a feature Without “attInspector” …Using ArcGis JavScript api

I cannot find any changes in the field. Please help me out. I am attaching my code: for (var i = 0; i < features.length; i++) { feature = features[i]; feature.attributes["X"] = Value; ...
1
vote
1answer
15 views

Zooming to ArcGIS JavaScript API graphic feature, but not to full extent?

I feel there must be an easy solution for this because I can't be the only one who's had this need before. I have a Python based geoprocessing service that gets called in my web app. The web app ...
0
votes
1answer
28 views

Add REST map service to basemap

I have created a JSON file which includes 30 map service layers and their attributes. This includes the map service url. My function creates a table of contents from the JSON object so that when I ...
0
votes
1answer
286 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 ...
1
vote
1answer
13 views

How to add a polygon in Google Earth on a Website

As it is said in the title i have to add a polygon in Google Earth which is integrated in a website. I managed to integrate Google Earth in the Website, so i can view the world but i can not use any ...
0
votes
0answers
42 views

Popup content with deferred object in ArcGIS Javascript

I am trying to display attribute infos and attachment in popup window. It can be quite good handled by code selected as correct answer here (https://geonet.esri.com/thread/159806). Basically you ...
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 ...
0
votes
1answer
178 views

arcgis javascript api featureLayer not available immediately upon show click event

I am adding a feature layer as such in my index.html file. featureLayer00 = new FeatureLayer("http://webadaptorserviceurl/MapServer/0",{ mode: FeatureLayer.MODE_ONDEMAND, id: "0", ...
1
vote
1answer
171 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 ...
1
vote
2answers
517 views

Enabling Find in ArcGIS for Server?

I'm using ArcGIS 10.1 for Server and trying to get a FindTask working via this sample and the only difference between my code and the samples that I can see is that the sample data has a find ...
0
votes
1answer
179 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 ...
3
votes
2answers
181 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
17 views

How to use ArcGis JS API Directions with embedded coordinates

I want to use ArcGis Javascript API for directions with the users current loaction as the start location, and a predetermined location as the stop destination. All the examples I can find use a widget ...
1
vote
3answers
743 views

Remove Geometry from map using ArcGIS API for JavaScript?

I need to remove a geometry from the map. It may be a marker, circle, polyline etc. I don't see any method like remove, clear or destroy. I already know how to clear everything on the map but this is ...
2
votes
1answer
192 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 ...
3
votes
1answer
406 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 ...
0
votes
0answers
5 views

Map click working on Apple Ipad, Iphone but not working on Android Chrome

I had a web application using ArcGIS javascript API 3.3 Few months before the zoom buttons +/- stopped working I am trying to update it to 3.14 API However now the buttons are working great but the ...
3
votes
1answer
61 views

ArcGIS JavaScript API won't recognize ArcGIS online material that isn't shared publicly

I am trying to add KML Layers to the ArcGIS JS API. I have the KML layers hosted on the ArcGIS Online server. This data that I am working with contains some sensitive information and I am trying to ...
1
vote
1answer
10 views

g.renderer is null. And sometimes is not

I have an TypeError: g.renderer is null while I'm loading my map application. The worst is that problem sometimes happens, sometimes not. require([ 'dojo/parser', 'dijit/layout/ContentPane', ...
0
votes
1answer
19 views

How can i highlight a point using arcgis api for javascript?

How can i highlight a point using arcgis api for javascript? When i use the function of centerAndZoom ,I also want to highlight this point,how can i do?
1
vote
1answer
567 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> ...
2
votes
1answer
2k views

Regarding property setMinScale(scale) and setMaxScale(scale) in ArcGIS API for JavaScript?

I am new to programming in JSAPI. I have two dynamic layers and I want to set the property setMinScale(scale) and setMaxScale(scale) to layers so how do I Set ? ex. I tried using ...
1
vote
1answer
264 views

How to find whether a Point lies inside a Polygon using ArcGIS JavaScript API?

We want to find whether a Point lies inside a Polygon. var point = new esri.geometry.Point(-85.91,25.68,this.parent.esriMap.spatialReference); var polygon = new ...
1
vote
2answers
117 views

Parsing Geoprocessing Service messages using ArcGIS API for JavaScript?

I am working on a JavaScript (JS) app where the user draws a polygon and then a python-based Geoprocessing (GP) Service task queries the parcels and generates mailing labels. The GP task works great, ...
0
votes
1answer
196 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 ...
3
votes
3answers
188 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
3answers
949 views

How to Change the Default Displaying Order of Esri Basemaps in basemapGallery?

I just started using ArcGIS JS APIs. In my app, I want to combine a few ESRI basemaps with my own basemap service. I am using basemapGallery dijit to change basemaps. By default, basemapGallery shows ...
1
vote
1answer
233 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. ...
0
votes
1answer
483 views

Add Point Symbol and Zoom to Address using Geocoder Widget

I'm following the tutorial here and it's not working: https://developers.arcgis.com/javascript/jstutorials/tutorial_geocoder.html Issue: I just want to add a point symbol and zoom in for the address ...
0
votes
0answers
21 views

Adding KML layers to ArcGIS JS API v4 (beta)?

I have been building a web application using ArcGIS JS API v4.0.Beta1. I am having difficulties finding out how to add KML layers to the scene. How do I add the KMLs? I have tried adding a new feature ...
0
votes
0answers
19 views

“ERROR 000800: The value is not a member of” when calling GPservice with javascript API

I've published a GP tool with a string choice list input but when I try and call it, I get error 000800. Request URL: ...
0
votes
1answer
478 views

Geoprocessing tool not executing when Map's SpatialReference is Web Mercartor

I am facing a strange issue when trying to execute GP service when my map's spatial-reference is Web Mercator. I appreciate all help. I have a JavaScript API application. Initially I only had my map ...
0
votes
0answers
15 views

WMTS layer at every scale using ArcGIS API for JavaScript?

I want to display wmts layer (in KVP mode) in every scales using arcgis_js_api 3.4. When I create wmts layer and set MapWidget.scale to one that isn't in the wmts capabilities level description, ...
1
vote
1answer
282 views

Using Geodata Service in ArcGIS API for JavaScript?

Can I use Geodata service in ArcGIS JavaScript API 3.1 ? Background : I have simple map service and the all attribute data is stored in Sql Server database. I want to perform query operation on map ...
2
votes
1answer
431 views

How to write addressToLocations onError?

How can I write a code for checking the error condition in Javascript (ArcGIS) for addressToLocations(params, callback?, errback?). if somebody entered an invalid address- how can I call error ...
5
votes
2answers
366 views

How to reference the ArcGIS Server JS API using RequireJS

When using RequireJS to load a JavaScript library from a CDN, an example syntax is shown at https://github.com/requirejs/example-jquery-cdn: requirejs.config({ "paths": { "jquery": ...
1
vote
1answer
898 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
214 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. ...
0
votes
1answer
27 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 ...
2
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 ...
2
votes
1answer
36 views

Esri Javascript API Graphics Removal

Hey Guys new to ESRI and the javascript api. I have the following function that when you click on the map adds a circle graphic to the map at that locations geographic lat and Long. But what im tyring ...
1
vote
1answer
179 views

Remove selected feature symbol

Background: I am dynamically populating a feature layer. On this feature layer I have set the symbol (as you can see) to a nice little .png image. Everything seems to work fine around the layer except ...
6
votes
1answer
253 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 ...