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

learn more… | top users | synonyms

0
votes
0answers
29 views

ArcGIS map breaking in the web page

We are embedding the arcGIS map in to a web page in 1/8th part of the web page in right-hand side upper corner. We are using angularjs framework to develop this portal.We are are going to draw symbols ...
1
vote
1answer
19 views

ArcGIS for Javascript API - How to add WMS layer from geoserver [closed]

I'm trying to add a WMS layer from a geoserver using the ArcGIS for Javascript API. I've gotten there example working from there sample codes but I'm unable to load my layer from the geoserver ...
1
vote
2answers
23 views

How do I add a radius line from the center of the circle to a point on the cricle

The following code adds a circle of given radius to the graphics layer on an ArcGIS map. How can i add a line that joins center of the circle to any point on the circle to the graphics layer. ...
0
votes
0answers
7 views

LabelLayer how to tell when drawing is finished

I have a map with a LabelLayer. The label layer is shown and hidden with a checkbox on the page and I have some css classes that I need to dynamically add to the labels based on some criteria. This ...
6
votes
1answer
269 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 ...
3
votes
1answer
24 views

Label can't access added attribute

I have a layer that gets created with a couple of attributes, one of which is NAME. Then I create a LabelLayer and add a feature layer like so: layerLabel.addFeatureLayer(layerDisplay, rendererLbl, ...
0
votes
1answer
499 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
2answers
50 views

Arcgis javascript api not working in IE 11 (js api 1.6)

I have a html with ArcGIS js api, it working in lower version (say IE 7) but not working in IE11,. Is it because my js api version is too low? How can I make it work? The related code: <!DOCTYPE ...
3
votes
1answer
346 views

ArcGIS JavaScript API: onAnimate Error

I am trying to zoom to a point in ArcGIS JavaScript API (3.9). I am doing this one of two ways, I am either grabbing a point feature from ArcGIS Server (10.1), or I am grabbing the center of a polygon ...
0
votes
0answers
9 views

Identify task on multiple layers into a pop up window with the arcgis javascript api

I am trying to create a pop up window when I click on a feature included in my map that displays their attributes. I want it to apply to all visible layers. So far this is a working section of code I ...
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 ...
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 ...
1
vote
1answer
167 views

How to add custom basemaps to BasemapGallery

I would like to add my own custom basemaps to the BasemapGallery. Is there any way I can create my own BasemapGallery with only my maps? I am using the ArcGIS API for javascript. EDIT: for clarity I ...
1
vote
0answers
14 views

Adding ArcGIS JS Direction widget in separate function

I am working with ArcGIS JS library, I am trying to add direction widget in my code, and it is working fine. I am following this example: ...
0
votes
0answers
18 views

Problems with a function - query a JSON array to return fields in a map service url?

This is an extract of my JSON. {"id": "1", "layer": "0", "min_scale": "0", "url": "http://example.service.url" "max_scale": "5000000", "field": [ "NAME", ...
0
votes
0answers
16 views

ArcGIS javascript reporting function

I am looking for some advice on creating a reporting function using the arcgis javascript api and feature layer services. My goal is to be able to select a particular tax parcel and generate a ...
1
vote
1answer
227 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 ...
1
vote
1answer
321 views

ESRI JS API : FeatureLayer : pure client side query?

so I've created this wrapper around feature layer where I create the empty feature layer as is in the API help page : new FeatureLayer(featureCollectionObject, options?) providing the first ...
0
votes
0answers
22 views

How to use IdentifyTask to query JSON

I have a map application that harvests it's map layers from a JSON string. I've managed to use the following code to show the map layers when a user clicks on a layer name in a table of contents but ...
0
votes
2answers
544 views

Update multiple features attributes in loop - JavaScript

I am trying to update multiple features in a feature layer through a loop. I have a feature layer that I would like to select and then assign someone to the features (through an attribute update. I ...
0
votes
1answer
47 views

Javascript API Scalebar halo CSS Styling

Let me start by saying I am very new to HTML, CSS, and JS. I have added a scalebar to my map and figured out how to add a halo around the labels so they can be seen better against dark or light ...
0
votes
0answers
16 views

Center PopupTemplate when using ClusterLayer

I am trying to use the below code in my application https://developers.arcgis.com/javascript/jssamples/layers_point_clustering.html. The only change I am doing is changed the height from 100% to 400px ...
0
votes
2answers
216 views

add featureset in graphics layer without iterating

I have a geoprocessing service that returns a large amount of features (featureSet). I want to attach them in a graphics layer, but I dont wont to iterate over all them. I tried using the ...
0
votes
1answer
292 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 ...
0
votes
1answer
19 views

Is it possible to project an ArcGISDynamicMapServiceLayer using the JS API?

I need to project some dynamic layers to Web Mercator. The geometry service only projects geometries. Is there a geo-processing tool in ArcMap for this? Or any suggestions how i could do this without ...
0
votes
1answer
409 views

Attribute Inspector for points - JavaScript API

I am attempting to get an application working where editors can click on a point feature and edit a form. I need the form to have a save button that when clicked will apply the edits to the feature. ...
0
votes
1answer
153 views

ESRI ArcGIS JavaScript API - get client ip address

I have a need to direct to url a if the client is inside the local area network or url b if the client is outside the lan. Is it possible to determine a client ip address using plain old html and ...
1
vote
1answer
50 views

ESRI Local Government Park Locator App Template Deployment Issues

I am currently trying to implement esri's newest release of the Park Locator | ArcGIS for Local Government and I have been having a few issues that I can't seem to resolve. First, If I just change ...
1
vote
1answer
33 views

Adding background image to ArcGIS online Popup

I am trying to make a custom popup for a storymap template by changing the CSS. The background colors can be changed but is there a way to add an image to the main area with the attributes instead of ...
0
votes
1answer
29 views

Javscript API esri/dijit/search JSON Response

Hello guys I am having some trouble trying to parse out the returned JSON data from a dijit search. I have the following code where s.set("value","48035") will be populated from another page so for ...
1
vote
1answer
257 views

Why do I have to reload the page, to show the Map correctly?

I added a map, in the way I'm supposed to, but why do I have to reload/refresh the page, to get the map (almost) as I want to? This is, what I mean: Map before reloading the page: Map after ...
2
votes
1answer
80 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 ...
4
votes
1answer
846 views

USGS Topographic Map Online API?

I am creating a website for a non-profit organization and would like to plot points on a map similar to this: http://www.arcgis.com/home/item.html?id=931d892ac7a843d7ba29d085e0433465 I am currently ...
0
votes
1answer
166 views

Configurable map viewer (CMV) - Find the area of drawn polygon

I am trying to get the area of a polygon and divide that by 16.94 ft^2. I have plugged in a Template I found. I am missing something. I am trying to get the template and my original code to talk. ...
0
votes
1answer
509 views

Error code 500, error performing execute operation from Print task of ArcGIS API for JavaScript?

I'm trying to use print task to generate a PNG or PDF file of my web map but i always get an Error code 500, error performing execute operation. Any Ideas? I'm using ArcGIS API for JavaScript ...
0
votes
2answers
3k views

How to zoom to the extent of a query result

Does anyone know how to change the extent on the map in function of a query? in legende I have no problem using the function showResults (featureSet) {... but, can not get any display in AMD. Here ...
0
votes
1answer
158 views

esri/dijit/Search multiple sources not updating drop down list

I am trying to reproduce the tutorial on one of my own layers Here I have put in one of my own layers <!DOCTYPE html> <html><link rel="stylesheet" ...
0
votes
0answers
35 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
21 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 ...
0
votes
1answer
1k views

Error executing tool.: Layer “layer1” Unable to connect to map server

I am using the Configurable Javascript Viewer, and have only changed a couple of the configuration settings. One change I made was to use my own Export Web Map Task. In viewer.js, I changed: ...
1
vote
1answer
539 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
18 views

Merge Line and Point Features into 1 Dataset Where the Points are Referenced to the Line

I am trying to combine a line feature class and point feature class so when you select the line, the points are also selected. I have tried to spatially join. The points are added to the attribute ...
0
votes
1answer
369 views

Configurable Map Viewer (CMV) - Configure dynamic layer to not display all sub-layers?

Using the example below, from the CMV, what would be the best way to not show the Fire Stations layer in the Louisville Public Safety map service assuming I wanted to see everything else and I wanted ...
0
votes
0answers
19 views

Querying through QueryTask takes more time if it has large number of data

Whenever I query my layer with queryTask it always returns 1000 maximum records. This makes to return the results very slow. Is there any alternative for queryTask to increase the performance of ...
2
votes
1answer
452 views

Clustering Point for StatePlane WKID 2236

Does anyone have an example to point me in the right direction to utilize Clustering with the ESRI JS API working with a State Plane wkid: 2236? I want to provide a solution for an internal ...
0
votes
1answer
24 views

Cannot view OAuth Basic ArcGIS API for Javascript code sample in local drive

I admit this is a real basic question (I'm very new to web development), but when I try saving the contents of this OAuth sample on to my local drive, I cannot view it in my browser - the screen is ...
0
votes
2answers
541 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
vote
1answer
262 views

How to append result to Geocoder text box using ArcGIS JavaScript API?

I want to append result of a custom search in a Geocoder text box in ArcGIS JavaScript API by overriding the default result. I have written the below code for this, but I am not getting a ...
0
votes
1answer
307 views

Drawing graphic layer on client side with ArcGIS API for JavaScript?

I'm using ArcGIS API for JavaScript 2.8. I have some problems with drawing graphics point on client side. The problem is, when I draw points by first time by JS api everything is OK. But when points ...
0
votes
2answers
47 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 ...