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

learn more… | top users | synonyms

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
74 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
168 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
252 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
177 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
529 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
87 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
280 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
126 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
57 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
172 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
88 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
405 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
99 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
57 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
468 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
53 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
28 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
59 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
56 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
50 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
158 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
839 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
191 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
52 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
255 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
77 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 ...
1
vote
0answers
161 views

Snapping in Esri javascript api does not work on mobile device

I have an Esri map loaded using the javascript api. I try to enable snapping, where a point should always snap to a given line. I have a snap point symbol that will trace the line to snap to when I ...
0
votes
1answer
104 views

How to hide popup template in arcgis javascript api

I am creating a Custom Popup template as follows: countyPop = new PopupTemplate({ title: "County: {NAME}", fieldInfos: [{ fieldName: "POP2000", ...
1
vote
1answer
84 views

Accessing Attributes of Individual FeatureLayer Points with ArcGIS

I have been struggling for some time with selecting points from a featureLayer which is stored on an ArcGIS webserver. Each of these point graphics contains information such as an ObjectID, SiteName, ...
1
vote
1answer
118 views

using WebTiledLayer function

Using esri javascript api version 3.8, I am trying to use some cached tiles from our server at http://hexe.er.usgs.gov/ifhp/will/tiles/ using WebTiledLayer. I believe that our tiles are set up as ...
1
vote
0answers
47 views

using Map Service or Feature Service for Feature Layer

Both, Dynamic Map Services and Feature Services allow for querying data (through FeatureLayer) and bringing FeatureSets to the browser. Which of the above would yield better performance at querying ...
0
votes
1answer
188 views

ArcGIS JavaScript API Auto Panning to Cursor Position

Does anyone know if it's possible using the ArcGIS JS API to make it so the map auto-pans based on the user's cursor position if they get within a close distance to the edge of the map viewing area. ...
0
votes
2answers
262 views

Explode clusters of overlapping points in ArcGIS Javascript API

In my map application built on ESRI's javascript API there are a number of points that share a lat/long. I need a way to allow the user to see all of the points at a specific location by exploding ...
0
votes
0answers
101 views

How to set Content for ArcGIS Server Identity Manager signin dialog in JSAPI

I am trying to change the content for the signin dialog of Identity Manager and something seems to be off. I used dialog.set("content",newContent); Similar title method worked for title-but not for ...
1
vote
0answers
52 views

Query Huge data passing in POST method [closed]

i have a feature layer in arcGIS, which contains huge number of features, from the Java desktop application i need to make a call to open a web browser and pass the id's of the features, which has to ...
0
votes
0answers
27 views

Is it possible to integrate (Cluster layer + Time slider) in ArcGIS JSAPI?

I am using ESRI suit 10.1 (ArcGIS Desktop + Server) and JSAPI 3.5/3.6 I am trying to integrate time aware data and cluster layers in single map but both are unable to display. According to web help: ...
0
votes
1answer
134 views

Seeking ArcGISTiledMapServiceLayer Sample

I'm trying to use ArcGISTiledMapServiceLayer to show a cached set of image tiles on our local server. There is good help on the arcgis developer's site but I can't seem to find good examples. None of ...
1
vote
1answer
41 views

Java Script API V3.6 displays base maps in a chequered pattern

I am currently running ARC GIS for Server 10.1 on an intranet. I have installed the Java Script API V 3.6. I am currently trying to view a cached image service using the Java Script API. When the ...
0
votes
0answers
270 views

Add a Google basemap to ArcGIS Javascript API

Please review the code below for correctness. I am trying to display a Google basemap (hybrid) in a web map built on the ArcGIS Javascript API 3.8. I have a Google Maps API key, which was removed for ...
1
vote
1answer
175 views

Legend Problem with arcGIS javascript API

I am new to arcGIS javascript API.I tried to display a simple dynamic map service with legend but its not displaying legend. I am not able to find error in my code. Please help me in resolving the ...
0
votes
1answer
82 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
48 views

How to show GeoStatistical Analyst Layer in web map using ArcGIS Javascript API?

I have created a "GeoStatistical Analyst Layer" with "Diffusion Interpolation with Barriers" tool and then I published it on the ArcGIS for Server. How can I show this layer in my web map application ...
0
votes
1answer
596 views

replacing dijit.ComboBox with dijit.Select results in error (ArcGIS Javascript API)

I am currently populating a Dojo ItemFileReadStore with the results of an ArcGIS query (Javascript 3.4 API), which is then passed to a Dijit COmboBox. I am now having problems with the ComboBox in iOS ...
1
vote
1answer
380 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
317 views

ESRI JS API Can I attach other events to to the map object

I asked this over on the ESRI forum but it didn't get any traction. I have an app that I'm designing specifically for mobile. At one point in its usage, a user needs to pan and zoom to a location and ...
0
votes
0answers
145 views

Graphic drag and drop using ESRI Javascript API 3.7 in IE10

I am using ESRI JS API 3.7 and Dojo 1.9. I have a problem with graphic DnD in IE9 and 10, but not IE8. this._listeners.connect("dropListener",this.esriMap, "onMouseUp", d_lang.hitch(this, ...