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

learn more… | top users | synonyms

0
votes
1answer
80 views

Clip and ship by a queried layer extent and by user defined extent

I am trying add a functionality to the clip and ship script. I would also like the users to extract data by the extent of a queried feature layer. For instance, if County = "Alameda" then extract data ...
0
votes
1answer
66 views

Popup design change

I am trying to put another link (Notes Methodologiques) next to "Zoom to" in InfoWindowLite popup window but I don't know how I can have them in the same area. What I have right now looks like this: ...
0
votes
0answers
47 views

Combo Box selection to definition expression

Using ESRI JavaScript API I would like the pass the selection in a combo box to the setDefinitionExpression. I think this should be possible, but I am not sure of exactly what to do. The code that ...
0
votes
0answers
23 views

ArcGIS API using maps from ArcGIS Online

I am new to the ArcGIS API for JavaScript but I would like to create an application which uses an existing map of ArcGIS Online. Creating an application where just a map is shown works fine. But now ...
0
votes
1answer
413 views

JavaScript API - Query and Edit point from Feature Layer

I am attempting to recreate the ESRI example for attribute inspections (https://developers.arcgis.com/javascript/jssamples/ed_attribute_inspector.html). I am having an issue when I create my feature ...
1
vote
0answers
39 views

Automatically update the result of a QueryTask

I have developed a application using the ESRI JS API to allow users to create and edit features in a web map. I have used the QueryTask to create summary statistics to report back to the user on ...
4
votes
2answers
167 views

Best Practices : ArcGIS for Javascript

I have just started developing with ArcGIS for Javascript and as I'm learning Dojo I'm seeing a reason to modularize development for a more plug-n-play concept. I can't seem to find any good articles ...
0
votes
1answer
153 views

Picture Symbol Proportion in ESRI Javascript API

I am successfully using a picture marker symbol to represent tree's in a web-map built using the ESRI Javascript API. Is there a method to proportionally size the picture symbol for each scale of the ...
0
votes
0answers
131 views

How can I get a popup window into the ArcGIS online widget_Legend sample?

I am trying to use the sample code from ArcGIS javascript API called widget-Legend. I want to add the popup widget to this sample so it will include both a legend and a popup. The legend works fine ...
0
votes
1answer
41 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 ...
1
vote
1answer
41 views

Calculations from Feature Server and display values

Using the ESRI JS API I would like to apply some basic math based on the Shape.area of a feature and then return that calculation to the web-page. I can't see any reference to something even remotely ...
0
votes
0answers
76 views

Customize ESRI Template Picker Widget

I am using the template picker from the ESRI JS API. As far as I see it, the look and feel of the picker, cannot be customized very much at all. The rows and columns can be controlled, and in the ...
0
votes
2answers
178 views

arcgis javascript api legend and basemaptoggle error

I'm having a problem with my Web Application. I try to fit in a legend and a BasemapToggle but it doesn't seem to work. My Code looks like this: <!DOCTYPE html> <html> <head> ...
0
votes
2answers
56 views

How can i keep browser from caching map services?

I am using esri's js api with arcserver 10.1 map services. My issue is that sometimes another application deletes a feature from the geodatabase that is the basis for my map service. But my browser ...
0
votes
0answers
131 views

Javascript Table of Contents/Legend Widget

I was hoping someone might be able to take a look at my code and point out why this might not be working. I'm trying to use the Table of Contents/layer selector found here I thought at first that I ...
0
votes
1answer
60 views

Panning the map to certain extent javascript API

I want to limit map extent to the initial extent of the map and limit user from panning more than certain extent. I tried following but nothing has changed: map = new Map( "map" , { basemap: ...
0
votes
0answers
17 views

ArcGis Server 9.3 - arcgis api for javascript

I have 2 graphic objects - (polylines) one over the other in the same graphic layer. How can I show both infowindows for polyline objects (values of attributes are different)?
1
vote
1answer
41 views

Geocoder widget find() method does nothing

According to https://developers.arcgis.com/javascript/jsapi/geocoder-amd.html#find the geocoder widget has a method "find" which seems to be a manual way of forcing the widget to start the geocode. I ...
0
votes
1answer
98 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 ...
0
votes
1answer
173 views

Arcgis basemap with proxy.ashx not loading correctly

I have a .Net application using the JavaScript API to draw a map. I use the proxy.ashx file to proxy requests to secure map services (dynamic tokens), configured in proxy.config. I added an entry into ...
2
votes
1answer
105 views

Calculate the number of points in a freehand polygon ArcGis Javascript API

I'm drawing a free hand polygon on my map. Now I want to calculate the number of points found in that polygon. I have done this code, which my now is giving me the number of points found in the map ...
2
votes
1answer
77 views

Set opacity of cached ArcGISTiledMapServiceLayer

Is it possible to set the opacity of a cached Tiled Map service using ESRI JS API? I am using: var layer; layer = new ArcGISDynamicMapServiceLayer("URL", {"opacity": 0.5}); ...
1
vote
1answer
209 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
2answers
75 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
161 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
25 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
91 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
86 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
136 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
58 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
26 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
90 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
90 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
73 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
166 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
116 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
206 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
45 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
69 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
422 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
67 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
160 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
246 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
165 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
497 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
77 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
264 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 ...