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

learn more… | top users | synonyms

1
vote
1answer
170 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 ...
0
votes
0answers
193 views

How to show data of selected features in Dojo data grid using queryRelatedFeatures of ArcGIS JavaScript API? [on hold]

I am trying to add show data in a Dojo data grid of the selected features, here is the ESRI original solution: ESRI solution select feature layer and calculate sum gas production The "findFeatures" ...
0
votes
2answers
72 views

beginner ESRI Javascript API Question

So I've just finished the tutorial to at least get a map on the screen, and it already isn't working. Can someone see what I'm missing?
0
votes
1answer
130 views

Lat Long to State Plane conversion

I am using the ESRI javascript API and I have a set of lat/long points I need to convert to a state plane coordinate system. My spatial reference is wkid 3418. I can easily use the GeometryService ...
0
votes
0answers
24 views

Problem using test search for tags in ArcGIS JavaScript API

I have the next problem with a query using the ArcGIS Javascript API, when I execute this code: portal.queryItems({ q: queryGroup+' AND tags:"' + tagsInserted+ '" ', num: 100 ...
1
vote
1answer
76 views

Is there a way to get the extent of a query and not each individual feature?

I'm using this solution to get the extent of a query. It brings every feature geometry back to the client where I then calculate the extent of all the individual geometries. Since these can be ...
2
votes
3answers
77 views

Dojo Slider to control tiled map services

am creating a web map to show Sea Level Rise in my County. I want to use a Slider for a user select the increment of Sea Level Change that wish to see. I have been able to create Programatically ...
0
votes
4answers
130 views

Web Mapping using the ESRI Javascript API

So I've been tasked with coding the interactive map for the city I'm interning at. I'm still a beginner with Javascript but I learn best "one the fly" by just getting started. I just need to know how ...
0
votes
0answers
54 views

How to reorder KML layers in ArcGIS API for JavaScript?

How do I reorder KML layers in Esri ArcGIS javascript version? I want to be able to reorder the order of the rendering of layers. I tried this._map.reorderLayer(kmlLayer, 0) This did bring the ...
0
votes
0answers
19 views

ArcGIS Javascript API LabelLayer - when clicking a label is there a way to know which feature is represented by that label?

When adding labels via addFeatureLayer it is impossible to know which feature was clicked? The "click" callback for a LabelLayer provides the label graphic but no reference to the FeatureLayer ...
1
vote
1answer
86 views

How do I modify the “Playlist” Storymap to include a basemap switching widget?

I'm fairly new to HTML and the ArcGIS Javascript API. I would like to modify the default "playlist" storymap template to include a basemap gallery widget. Can someone help break down the steps to do ...
1
vote
2answers
76 views

What values are needed for a SimpleMarkerSymbol?

My graphicGemetry object contains X and Y values (-9212442.86532579,4421916.145327024) but my image isn't appearing. I suspect there are other data values I need in order to plot my point but I do ...
0
votes
1answer
68 views

ArcGIS Javascript How to filter TOC

I am very new to ArcGIS Javascript and have been reading some samples from the API. So pardon my ignorance and I hope I am asking the right question. I am using ArcGIS JavaScript 3.5 API and ...
0
votes
1answer
20 views

Only display the latest feature added

I'm trying to modify the following sample to only show the latest feature added to the map. The sample is located here: ...
1
vote
2answers
143 views

Esri GIS Bookmark but with out a dijit

I need to create a "Bookmark" like drop down on my site. Inspiration comes from samples:1) http://developers.arcgis.com/javascript/samples/widget_bookmarks_dropdownbutton/ and 2) ...
1
vote
0answers
101 views

Dynamically set field information in popup template discussion (Automate the process)

I want to create a certain function to streamline some of my customization work. I work with a web app that's built using ArcGIS JavaScript API which contains a few layers. Each layer is configured ...
0
votes
1answer
159 views

Add SimpleMarkerSymbol and then remove it upon next click

My map has some markers and when I click to identify a marker, I'm adding a marker to it. When I click the next marker though, I'd like for the previous marker to be removed since I'm only interested ...
0
votes
0answers
37 views

Visualizing Layers with lyr-files in ArcGIS API for JavaScript

I do have a probably very simple question. I'm currently running a Python-Script on my Desktop-machine. In the end of this script the different layers that I've created will be visualized according ...
0
votes
0answers
60 views

Find Nearest features from an input location

I wanted to find the nearest features (it can be point, line and polygon layers) from an user input or search location and identify 5 nearest locations along with their distances. Have anybody ...
0
votes
0answers
358 views

Unable to resolve constructor for: 'dijit.layout.TabContainer'

I have started using ArcGIS for the first time, actually my first time using GIS. So I have taken the demo codes and changed them to what I needed. So first I took some code for a tab control on the ...
0
votes
1answer
50 views

Passing variables through infoTemplate

I have a problem passing variables through infoTemplate. Its like there's something funny happening with the scope. Certain variables work but when I get too crazy with them my map doesn't load. ...
2
votes
2answers
59 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 ...
0
votes
1answer
115 views

Browse (add/remove) ArcGIS Server Services (Layers) from the ESRI Javascript API viewer

I am quite new to the Javascript API. I am not if there is a widget that does what I would like but I am trying to create a web map that allows the users to choose/add/remove layers located on our GIS ...
0
votes
1answer
218 views

Why do existing map services run slow after updating to ArcGIS 10.2.1 for Server?

Has anyone had any issues with existing map services after updating to ArcGIS Server 10.2.1? After updating they are running slow and causing my ArcGIS Javascript app to crash. All of our GIS ...
1
vote
1answer
37 views

My @media query breaking the state of the map in ArcGIS Javascrpit API

Anybody knows why my map is not displaying again after resizing my window? I am using the next media query to hide the map when the width is less than 767px. @media (max-width: 767px) { .map { ...
0
votes
1answer
138 views

How to avoid ESRI secure layer identity manager popup

I am new to ESRI Identity manager, I am creating a secure layer service using identity manager, I have to avoid the secure layer login popup.
0
votes
2answers
409 views

ArcGIS API for JavaScript - error in Dojo parser.parse()

I started creating a Dijit based on a template HTML file. I started by referencing Dojo CSS and JS directly, and all was fine. Later when I wanted to add a map into my dijit, first - changing ...
0
votes
1answer
71 views

Displaying Geodatabase Published Map On ArcGIS Server (JavaScript API)

I Google this a lot but unfortunately I didn't find any useful Tutorial for this.Can you please let me know how I can Put my published Geodatabase/ shapefile on the top of a ArcGIS JavaScript API map? ...
0
votes
1answer
231 views

set infoTemplate for various graphics in graphics layer in loop

I am successful at getting an info window pop up on the event click of a marker on a map. Now, what I'm having trouble with is passing unique information for each graphic in the loop to the individual ...
2
votes
2answers
108 views

Popup is cropped out of window

Sometimes clicking on different features close to window boundary makes part of popup out of window's boundary. layerInfoWindow = new InfoWindowLite(null, domConstruct.create("div", null, null, ...
1
vote
0answers
51 views

How to display lines with Arrows on a FeatureLayer?

I've setup a feature service with a symbology. One symbol is a line with an arrow at the end. The description for such a symbol is not part of the FeatureServer response data. So it is not ...
1
vote
2answers
140 views

InfoWindow vs. Popup

Can somebody provide a good explanation/comparison between Info Window vs. Popup Window. It seems both can be used with Feature layers. What are the pros and cons of either and when is more ...
1
vote
0answers
86 views

WMS in Google Chrome (ArcGIS API JavaScript) not working

I am doing a small web with WMS, but I have a problem with Google Chrome (and IE... but with this one I don't mind). Down of this lines there is two website: Galicia: This one contains WMS from ...
3
votes
2answers
333 views

Force an ArcGIS API for JavaScript WMSLayer to use EPSG: 900913 (instead of 102100)

I have a use case where an external WMS server can serve maps in the Web Mercator projection using EPSG code 900913, but won't recognize ESRI's 102100 code. My question is: can I force all WMS ...
0
votes
0answers
92 views

esri.dijit.Legend.startup not working in IE10

In Internet Explorer (IE) 10, legend.startup in the below code is not working. It just gets struck. The same is working in IE8. function generateLegend(results) { legend = new esri.dijit.Legend({ ...
1
vote
1answer
49 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.
2
votes
1answer
353 views

How to CORS enable ArcGIS Server 10.2.1 to Access REST Services without Using proxy.ashx?

Form the ENABLE-CORS.ORG I see that editing web.config is enough to CORS enable IIS7 <?xml version="1.0" encoding="utf-8"?> <configuration> <system.webServer> ...
0
votes
0answers
7 views

How to get feature layer data for a given coordinate using arcgis javascript api? [duplicate]

I have a feature layer over a basemap. Now I want to plot a point on the map and if the point falls on the feature layer, I want to get the feature layer detail. Is it possible to get details of ...
1
vote
1answer
48 views

ArcGIS multiple scripts conflict

I am developing separate javascript widgets in different scripts and they work independently. However, when I try and put both scripts together, neither script works at all. So this brings me to my ...
0
votes
0answers
25 views

How To Show Map In bigg window after click on it by api for javascript

i want user when click on map open in full screen view as popup to show map bigger how to do this
0
votes
0answers
57 views

ArcGIS Server : max-age=0 Select by Rectangle Fails

We are running ArcGIS Server and feeding webmaps. In our Test environment, the application works just fine. We moved to our Dev and the 'Select by Rectangle' doesn't work. In fact, Select by ANYTHING ...
1
vote
2answers
51 views

Arcgis javscript calculating lines in a place

I have two mapservice. Fist service includes parcels and second includes water pipe lines. I want to calculate total pipelines length in a parcel. How can I calculate this via arcgis javascript API. ...
0
votes
0answers
49 views

How to use ArcGIS JavaScript API for ArcGIS Server service, where to save code?

I have found some sample codes online for implementing traditional map components such as legends and scale bars to an ArcGIS Server service. ...
0
votes
1answer
139 views

Projection problem with ESRI JSAPI and ArcGIS map service

I was trying to obtain a gpx file with some coordinates by drawing on an Openlayers map with an ArcGIS baseMap. When I draw the polyline and create the gpx, if I open it on Google Earth, what I see ...
0
votes
1answer
718 views

How to use Cross Origin Resource Sharing (CORS) from ArcGIS API Javascript Application?

I am getting the CORS error XMLHttpRequest cannot load http://services.arcgisonline.com/ArcGIS/rest/info?f=json. No 'Access-Control-Allow-Origin' header is present on the requested resource. ...
0
votes
1answer
165 views

How to add Map Legend, Scale Bar and Select tool to an ArcGIS Server Service?

I have published a service from ArcMap to my Server Account but I can't figure out how to add the legend, scale bar and select tool to the service. According to the published service it was built ...
1
vote
2answers
30 views

Prevent user from sliding the map to the right or left

Is there anyway to prevent user from sliding the map to the extreme right or left? something like setting a maximum/minimum zoom level in arcgis maps.
0
votes
0answers
50 views

Problem w/ zoom on JSAPI web app in Chrome on Win 8.1

I just upgraded an ArcGIS Server JSAPI based site from 10.1 to 10.2.1. I am not seeing the zoom in/out control working for Chrome on Win 8.1 Chrome does work for me on OSX 10.9 and Win 7. This zoom ...
2
votes
2answers
219 views

Is it possible to generate a heatmap on the server-side using ArcGIS Server?

Using ArcGIS Server's JS API it is possible to generate a heatmap at runtime, as in the example at http://tmappsevents.esri.com/website/heatmap/index.html This requires having client-side access to ...
4
votes
2answers
68 views

Minimizing bandwidth while refreshing an ArcGIS dynamic map layer

I've been tasked with creating a web app where multiple users can draw on a map and have that reflected to other users in real time. Persistence of the drawing if users leave and come back is ...