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

learn more… | top users | synonyms

1
vote
1answer
59 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
30 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
61 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
60 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
53 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
193 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
1k 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
266 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
31 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
57 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
289 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
85 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
196 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
143 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
102 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
132 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
52 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
242 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
366 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
119 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
56 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
32 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
154 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
44 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
382 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
230 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
108 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
52 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
730 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
489 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
390 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
166 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, ...
2
votes
1answer
60 views

How can I limit range of the thumbs in esri/dijit/TimeSlider

From the example, range between those two thumbs is unlimited. So, I need some thing like this timeSlider.setThumbRangeLimit(1); //one year or something that limit the range only 1 year. I ...
2
votes
1answer
705 views

change font size of elements in dropdown menu store

I am creating of list of building names from a query, which then populates a dojo.ItemFIleReadStore. This store then populates a dropdown menu (using dijit.Form.ComboBox), where the user makes a ...
2
votes
1answer
1k views

How do I get data to display on the map legend?

I am trying to use the Legend widget from this link below to build a legend that displays our layers in the map: https://developers.arcgis.com/en/javascript/home.html I have added the legend widget ...
2
votes
1answer
108 views

Tell Dojo to look for minified classes with ArcGIS JavaScript API

I've got an application build using the ArcGIS JavaScript API. I have several classes built with Dojo define. Each class is in a separate file, and everything is working fine. However, I've minified ...
1
vote
1answer
1k views

Trying to label graphic using feature attribute (ArcGIS Javascript 3.7 API)

I have a Dialog DIV containing an HTML list of buttons with a value for each school district. I want the user to be able to click on a button and have a polygon graphic of the district placed on the ...
0
votes
0answers
73 views

Displaying JS API Find Task Results in a Table without Dojo

I was wondering if anyone had examples of displaying ArcGIS Javascript API Find Task results from a map service in an html table without using a Dojo Grid. Any pointers would be greatly appreciated!
1
vote
3answers
211 views

Setting zoom level

Is there any way I can set the zoom level between lets say zoom level 5 and 6? I can' select 5.5. map = new Map( "map" , { basemap: "gray", center: [-85.416, 49.781], ...
0
votes
2answers
300 views

ArcGIS maps center to country

Is it possible to set center and zoom/fit bounds to country by name with ArcGIS Javascript API? I mean, with Google Maps you can do something like this: http://stackoverflow.com/a/6086437/1745228 How ...
0
votes
0answers
55 views

How to create an editable custom popup or infoTemplate

Does anyone have a resource with an example of how to create a custom popup/infoTemplate in JSAPI? I found this link: close example in .net but I want the user be able to just add text to a popup ...
1
vote
1answer
44 views

JSAPI help with query returning results from feature layers with a specified named column

I have a workflow that results in generating a report for certain features with a column name. Goal is to return only results from feature layers in my map service which have a specified column name. ...
0
votes
1answer
108 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 ...
2
votes
3answers
253 views

Tiles on SSL website loading over http

I have an application on a SLL domain. Loading all the ArcGIS Javascript files is correctly done over https. But when actually using the application, the tiles of the basemap are loaded over http, ...
1
vote
0answers
114 views

Generate Map Tiles in Lambert Conformal Conic Projection

I have a question for you. I. I am trying to do the following: - Render map tiles for my given area in the Lambert Conic projection (EPSG:3347) for a select number of levels - Take the rendered ...
1
vote
0answers
135 views

How to pass OAuth token to fetch web map without passing userid?

I'm using the ArcGIS JavaScript API 3.7 for web map service. The web map is based on Oauth2 authentication. I use java code to fetch the token. Then I need to fetch the map in javascript by calling ...
-1
votes
1answer
306 views

how to solve Arcgis API for Java Script - Asp proxy error

I am using ArcGis 10.1 for ArcGIS Api for Javascript. I have faced the problem of {"code":400,"message":"Unable to complete operation.","details":[]}. while running the application in IIS and my ...
2
votes
1answer
266 views

How to display labels - created using LabelLayer only at certain scales

I am using ESRI Javascript 3.7 framework to develop a map application, in it I am trying to display labels created using LabelLayer at certain scales only, say from 1:1 to 1:500 scale only, how can I ...
0
votes
1answer
252 views

Popup for ArcGISDynamicMapServiceLayer point data

I was going through this example from ESRI Resource popup. I was able to integrate it to my polygon layer but it is failing for point and line layer.I am not sure but query.spatialRelationship = ...
0
votes
0answers
33 views

ArcGIS JS API: Onhover with multiple layers

I have a map with two layers: one contains the regions of a country, say, France, as polygon features. And another one contains french cities as point features. I just want to show the name of the ...