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

learn more… | top users | synonyms

23
votes
6answers
4k views

ArcGIS Web APIs: What are the differences?

Esri currently offers 3 different web API's that can be freely downloaded. Are they all equal? If not, what are the relative strengths/weaknesses of each of these API's?
3
votes
2answers
1k views

Need Basic Viewer template for ArcGIS JSAPI 3.2/3.3

I am looking for basic viewer for ArcGIS JSAPI but not getting proper sample/example. I am going through ArcGIS resource also but looks like its not working .Going through this question also. ...
13
votes
4answers
3k views

Which framework is best to implement an application robustly, using ArcGIS Server JS API?

Over on the Esri forum, user Matt Moyles suggested that the approach used in the Esri JS samples isn't suitable for robust development of a web mapping application using HTML, JavaScript and CSS: ...
3
votes
1answer
2k views

Changing ArcGIS Server 10.1 port (6080 to 8080)

Due some network issue (Maps are not displaying in secure environment), I want to change the default port 6080 to 8080. I am going through Web help and few links in which they mentioned that install ...
2
votes
1answer
2k views

Toggle Toolbar Button and Activate Identify

I already asked how to toggle an identify button in a previous question, and was given the correct answer to the question, but when I tried to implement it into a toolbar that would disable the ...
1
vote
2answers
1k views

Is it possible to display 3-D maps in ArcGIS Java Script API?

We are going to create 3D maps in ArcGIS Desktop with the help of 3d analyst extension and then I want to integrate those maps with ArcGIS Java Script API 3.2/3.3 (after publishing maps on server ...
0
votes
2answers
98 views

Zooming into a particular polygon

I am getting the polygon id by doing identifyParams.geometry = evt.mapPoint; identifyParams.mapExtent = map.extent; identifyTask.execute(identifyParams, function(result) { var i; var ...
9
votes
2answers
2k views

Restrict pan and zoom in ArcGIS Javascript API?

I'm creating a web map of a university campus. I have the map functioning, but I don't want to be able to pan off of the basemap, into whitespace. Do you know of a function that will auto-pan the ...
4
votes
2answers
2k views

ESRI Javascript API: How to hide infoWindow while using measure tool?

In my Javascript API Web application I'm using the infoWindow to query a parcel layer and display display information in a popup when I click the parcel. I've set this functionality to turn on and off ...
4
votes
1answer
3k views

automatic zoom to layer in arcgis js api

I'm trying to zoom to layer automatically as soon as the map finishes loading using the guide here. To be clear, I'm only loading one layer and just want to zoom in on one of the layers provided by ...
4
votes
2answers
242 views

Adding large amount of data to web map using ArcGIS API for JavaScript?

I've got problem, I'm creating map based application, and now I have to add to map about 100 000 graphic points, from coordinates. I was trying in many ways to do it, but always process of adding ...
2
votes
1answer
895 views

Delete Records from Feature Layer using ArcGIS API for JavaScript?

I am trying to delete some records from a feature layer, but I kept getting the error of invalid parameters from the errback. Below is my code: function deleteRecords() { var incidentId = 2; var ...
5
votes
3answers
3k views

Zoom to selection

I am trying to create an application, where in I want to zoom to selected features. Basically, I want to zoom to the extent of a selected point or polygon.
5
votes
3answers
2k views

Is there a 3rd party ArcGIS viewer (builder) for Javascript?

Esri provides an ArcGIS Viewer for Flex as well as an ArcGIS Viewer for Silverlight. Strangely though, there are no plans for a similar viewer for Javascript. Are there any 3rd parties that have ...
4
votes
2answers
2k views

Identify all layers on the map without pre-designing the infoWindow

This applies to the ArcGIS Server JavaScript API 2.4. The Identify Task sample shows how IdentifyTask can be used to find features in multiple layers, as specified in the IdentifyParameters: ...
2
votes
1answer
261 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 ...
2
votes
2answers
2k views

Spatial query in ArcGIS Javascript Api 3.1

I have scenario in which I have to select features drawing a polygon and and get the attribute values in to a tables or lists.The features on the map consist of polygon, line,point at the same time so ...
1
vote
1answer
53 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 ...
1
vote
2answers
738 views

ArcGIS javascript API Extent formats

I am trying to understand how the extent works in the javascript api. I create an extent like the following: var beginExt = new esri.geometry.Extent(-159.6716766, 19.520, -67.843, 64.8348, new ...
0
votes
1answer
562 views

How to determine the accuracy of getFeatureInfo on a WMS layer?

I have added a WMS layer to the ArcGIS Server JSAPI and am attempting to query it using getFeatureInfo when the user clicks on the map. A reproducible sample is available here. This is mostly ...
-1
votes
2answers
362 views

Populating combobox and zoom to selected field in box?

I am very new to arcgis javascript .I am not able to populate combobox and zoom to the selected field in the box <!DOCTYPE html> <html> <head> <meta ...
28
votes
2answers
1k views

Is there a “Select by Attributes” plugin/widget for ArcGIS Server JS API?

I'm hoping to find some existing code which emulates the "Select by Attributes" dialog in ArcMap, within the ArcGIS Server JavaScript API. Writing a hard-coded QueryTask is easy - I'm looking for ...
11
votes
4answers
3k views

Looking for a Table of Contents sample for the ArcGIS Server JavaScript API

Where can I find an example of a Table of Contents control to plug into the ArcGIS Server JavaScript API 2.3? Ideally it should support feature/dynamic/tiled layers; show symbology; and allow grouped ...
4
votes
2answers
972 views

Does the ArcGIS JavaScript API let me build / package my application using Dojo?

I'm currently getting to grips with the new (3.1) ArcGIS JavaScript API and how it bundles Dojo and relies on Dojo's Asynchronous Module Definition (AMD) approach. I'm familiar with AMD and recently ...
11
votes
3answers
4k 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 ...
3
votes
3answers
3k views

Printing with the ArcGIS Javascript API?

Any examples of how to print a map using the JSAPI? All from the client?
7
votes
3answers
2k views

CORS issue ArcGIS 10.1 IIS (Cross Origin Resource Sharing)

I have ArcGIS 10.1 installed with the web adapter for IIS. I've added a config file to the root of IIS7 to enable Cross Origin Resource Sharing (CORS) as per this page. I've pushed the cors enabled ...
5
votes
2answers
905 views

Moveable ESRI / ArcGIS Identify Popup Window (Dojo)

I'm trying to get a popup window that identifies a location to be moveable. My code is similar to the API example: var popupOptions = { fillSymbol: new ...
4
votes
2answers
1k views

Auto resize map to 100% after content pane is removed in ArcGIS JSAPI

Been at this for hours and I can't seem to figure it out. I'm using AG-JSAPI 3.6 I have a map layout with a bordercontainer and two contentpanes, One is the map div and the other is the left div ...
12
votes
3answers
1k views

What is the future of ArcGIS web development ? Is it JavaScript and HTML5? [closed]

I want to know about the future of ArcGIS web development; is it HTML5? I used to work with ArcObjects and .NET Web ADF so what is the best technology I must follow, especially when I know that ...
6
votes
1answer
509 views

Looking for Alternatives to Google gmaps utility widget for ArcGIS JSAPI API

I have been using https://code.google.com/p/gmaps-utility-gis/ as a solution to displaying Google imagery as a base layer on a ESRI JSAPI map. With the advent of JSAPI 3.4 and full AMD support this ...
6
votes
2answers
3k views

How do I use my own basemap with Javascript API?

I'm trying to make a map using the Javascript API. I want to use my own basemap, but I can't find the most simple code to do this. I always see something like this: function init() { map = ...
6
votes
2answers
791 views

Styling a Chart within a Popup

I have a dojox bar chart on my app, that is populated from a QueryTask everytime the extent changes. I am making use of the Tufte theme (the only one that has a transparent background), and ...
6
votes
2answers
388 views

Rendering huge amount of points

Evening Guys, I am new to ArcGIS, and currently developing a small app that uses ArcGIS Javascript API. I have encountered a couple of problems while working on this and would greatly appreciate if ...
5
votes
2answers
2k views

Turn Popups On/Off in ArcGIS Online Webmap via Javascript API Web Application

I am writing my first ArcGIS Javascript API web map application and consuming a web map authored in ArcGIS Online. The ArcGIS Online web map apparently does most of the work for me in terms of ...
5
votes
1answer
429 views

Unclear on proxy used for AJAX in Javascript

I do understand how the proxy helps in transferring the XMLHttpRequest between the ArcServer and the Server (IIS/Apache) but where I am confused is that the first time the Html Doc loads, doesn't the ...
4
votes
2answers
1k views

ArcGIS javascript API - How To Use Tiled Map Services with Different Spatial References?

I have the following code fragment in an esri page to try and change basemaps, the following code works, unless the next basemap layer uses a different spatialreference. if (baseMap) ...
3
votes
2answers
475 views

TitlePane not rendering - working with basemapGallery sample code

I am attempting to implement the basemapGallery code found in the API samples here. There seems to be an issue with the TitlePane into which my basemapGallery is nested. It simply does not render. ...
3
votes
3answers
766 views

Should I start a new project using the Silverlight API?

I'm about to start a new mapping project for a client, and am considering using the ArcGIS Server Silverlight API, since it gives a lot of the required functionality out-of-the-box (especially with ...
3
votes
3answers
5k views

FeatureLayer creating in javascript ArcGIS API

I got the sample called "Feature Layer with ONDEMAND mode" in the ArcGIS for js resource center. This example just adds layer with rivers to the map. I want to use my own features instead of using ...
2
votes
1answer
293 views

how to synchronously execute a queryTask

How can a queryTask be executed synchronously? I'd like a feature set to be returned instead of deferred object. Thanks,
2
votes
2answers
183 views

ArcGIS Javascript Viewer with ArcGIS Server [duplicate]

I'm certain this question must have been asked/answered, but I just can't find it. I'm running ArcGIS Server and want to build a basic viewer that points to my locally hosted services. I'm not ...
2
votes
2answers
2k views

Javascript Api's ArcGISTiledMapServiceLayer won't show map

I am currently trying to show a map that has been tiled. I am using version 10 of the arcgis server, and version 2.5 of the javascript api, the odd thing i am running into is that the map will not ...
2
votes
2answers
565 views

Is it possible to reproject KML using ESRI's Javascript API?

Specifically into NAD83. Google tells me that KML only supports WGS84, but I can't seem to find much info on being able to reproject KML using ESRI's Javascript API. Basically, I've got this base ...
2
votes
5answers
2k views

Convert geographic coordinates to UTM zone 29N with Javascript

I have an issue converting lat longs to UTM with the ArcGIS javscript API. Lets say that I have a map, based on the UTM zone 29N, also known as WKID 32629. I have a known set of coordinates from a ...
9
votes
4answers
1k views

what is the right way to delete all features from featureLayer

I have a featureLayer and I don't want to kill it and create another one. I want to delete all features from the current featureLayer. I found that I can use applyEdits method but in order to use it I ...
6
votes
1answer
711 views

What server and API to use for displaying complex polygons with dynamic symbology?

Background I need to interface a map into an existing website which allows the user to query a database and which currently results in a table listing population statistics per county. For example, ...
5
votes
3answers
78 views

How do I use the Terrain with Labels basemap in the Map constructor

Seems like all the other basemaps can be used in the esri.Map() constructor, but this one doesn't have a corresponding entry in the list of acceptable values. I've tried just "terrain", and it didn't ...
5
votes
2answers
831 views

Legend showing info for world map

I'm using ArcGIS 10.1 API for JavaScript. I'm showing dynamic map service layer containing 8 layers and I want to show legend for the currently visible layer (only 1 layer is visible at a time). The ...
5
votes
1answer
509 views

ArcGIS Online without basemap

I am trying to create a Web App, using the ArcGIS Online feature of downloading the javascript code, with the map id being used for connecting to the ArcGIS Online. I was able to do that successfully ...