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

learn more… | top users | synonyms

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 ...
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?
21
votes
6answers
2k views

What is future of Silverlight with ArcGIS Platform?

At the September 2011 Build Conference, Microsoft said a lot about Windows 8 and the Future of JavaScript over Silverlight. No Plugins wanted!! JavaScript with html5 ftw! What is the future of ...
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: ...
13
votes
1answer
412 views

Are there any Javascript map labeling engines available?

Does anyone know of a javascript library containing functions that would allow me to generate labels for points on the map so that the labels don't overlap one another, and have optional leader lines ...
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 ...
10
votes
3answers
3k 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 ...
10
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 ...
9
votes
2answers
1k 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 ...
9
votes
4answers
973 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 ...
8
votes
3answers
844 views

Map Application Requires Refresh to Initialize

I tried this question over on StackOverflow but didn't get any answers. Hoping you all might be able to help. Creating a web mapping application in Javascript/Dojo: When I load the app in a browser ...
8
votes
3answers
4k views

Programmatic authentication to ArcGIS Server secured layers via RESTful API

I have an ArcGIS 10.1 Server instance exposing secured mapservices on the Internet. My need is to code down a client application (which I am currently building using the 3.3 version of the ArcGIS ...
8
votes
3answers
2k views

How to query all records (>1000) and export to csv?

I posted in arcgis forum but never got any answer. Can anyone tell me how to solve this? Assume you have a vehicle tracking records from Oct.1 to Dec. 31 with wind speed information. All data is ...
8
votes
1answer
375 views

How can I use an ArcGIS.com map that's not shared with everyone from JavaScript API?

I like to use the ArcGIS.com to create a map with operational layers on top of a baselayer. I would like to have the Content and Map as private but to show the map in an application built with ...
8
votes
1answer
346 views

Will hundreds of attributes cause performance problems in an ArcGIS Server layer?

This relates to ArcGIS Server 10.0 SP1, with data served from a file geodatabase polygon featureclass. 1) For performance reasons, is it a bad idea to have a featureclass with hundreds of attributes? ...
8
votes
1answer
909 views

What are some examples of interesting zoom slider customisations?

The default Claro zoom slider control is pretty boring. It's also hard to see on top of many basemaps: Are there any examples of some nice customisations I could use for inspiration?
7
votes
1answer
1k views

Browser support for ESRI ArcGIS JavaScript API (v2.4)

Can anyone give me information or a good pointer on browser version support in the ESRI ArcGIS JavaScript API v2.4? I can't find much in their documentation beyond changes in support for specific ...
7
votes
4answers
579 views

Is it possible to access the Bing Maps “dark” mode in the ArcGIS JS API?

Stamen Designs have made a beautiful Hurricane Tracker application which uses a "dark" mode of the Bing Maps backdrop. This is perfect for directing people's attention to the overlay rather than ...
7
votes
3answers
8k views

Draw a point with ArcGIS Javascript API

I am currently trying to draw a point with the ArcGIS Javascript API. Pretty much like this example, http://help.arcgis.com/en/webapi/javascript/arcgis/demos/toolbar/toolbar_draw.html, except the ...
7
votes
2answers
10k views

How to make heat maps?

It might beginner question regarding heat maps..I want to prepare the heat maps so what parameters are required for that?? I gone through following posts about heat map..but I did not get exact ...
7
votes
3answers
1k views

ArcGIS Server 10.1 - Inconsistent Querying Errors

I have recently upgraded to ArcGIS Server 10.1 SP1. Since making the switch, I am getting a lot of inconsistent errors, specifically performing queries against a map service's REST API with the ...
7
votes
2answers
709 views

How to use the ESRI JS API to map SQL Server Spatial Types without ArcGIS Server

I have heard of people using the ESRI Javascript API to create webmaps with spatial data from SQL Server or other RDBMS's. From what I can tell, they are not using ArcGIS Server as a middleware. In ...
7
votes
1answer
1k views

How do we add a custom basemap in ArcGIS.Com that can be used in Javascript API?

It's possible to add a layer as a basemap in ArcGIS.com by checking the check box use as baselayer: But when I consume the map using: var mapDeferred = esri.arcgis.utils.createMap("<guid>", ...
7
votes
1answer
1k views

Incorrect date displayed with Esri JavaScript API v.2.6

I am working on a site that is using version 2.6 of the Esri Javascript API. I have an info window that displays some date information, and the date is one day behind the date in the database. For ...
7
votes
3answers
1k 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 ...
7
votes
2answers
487 views

How “complex” should a JavaScript map become? When does a plugin make more sense?

Background: A client is looking to upgrade an ancient ArcIMS site, which is quite complex. It has a table of contents, the ability to change symbology on-the-fly, print the map, use spatial ...
7
votes
2answers
87 views

Which feature has highest value within extent

I have a layer in which I need to find out the maximum value of a given field within the current map extent, and then return back the value from a different field. e.g. Find state with highest ...
6
votes
2answers
2k views

Application Templates for ArcGIS Server?

Esri provide a lot of excellent template applications for us in conjunction with web maps. These templates are specifically designed for using with your resources on ArcGIS Online as opposed to ...
6
votes
1answer
2k views

Is it possible to use esri.dijit.Popup for editing

In the new arcgis js api ESRI added new nice infowindow - esri.dijit.Popup. We can use it this way: //create a popup to replace the map's info window var popup = new ...
6
votes
2answers
2k 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
1answer
2k views

Is the ArcGIS Server JavaScript API free to use?

The 2008 blog post announcing the ArcGIS Server JS API says: Everyone can use the ArcGIS JavaScript API. There is no fee for using the ArcGIS JavaScript API or deploying an application built with ...
6
votes
1answer
441 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
4answers
977 views

ArcGIS JS API: Merging Popups with Relationship Queries (with fiddle)

I am trying to merge two ArcGIS JS API examples: Feature Layer with Popup and Query Related Records. The idea I have in mind is clicking on a country feature, retrieve all related records from a ...
6
votes
3answers
1k views

How to display the map.InfoWindow outside of the map container?

I need to show an infoWindow outside the map (i.e. have it owned by the body of the HTML document, not the map div). If i subclass InfoWindowBase I can do this myself but I really don't want to do ...
6
votes
1answer
152 views

How to select all remaining features after a Layer Definition filtering?

I have a map service that represents the World map with a table with population associated. I would like to filter some of the data matching a criteria and then, select ALL remaining features to work ...
6
votes
2answers
3k views

How to navigate the REST endpoints and retrieve Field information programatically

I'm adding a Dynamic Map Service to an ArcGIS Server JavaScript API map, and I need to get hold of each component layer and its fields, so I can run a query. See the sample ArcGIS Server services ...
6
votes
1answer
672 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, ...
6
votes
1answer
151 views

CSS Spritesheets and picture marker symbols in the AGS Javascript API

I'm working on improving the load performance of a large ArcGIS Javascript application, and one area where we can have trouble is that there is a visible delay between putting a graphic with a ...
6
votes
2answers
680 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
344 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 ...
6
votes
1answer
628 views

ArcGIS JS API Relationship Queries

Has anyone ever put the results of a RelationshipQuery() into a map.infoWindow that's been replaced with a dijit.popup? Here's the workflow: User clicks a point, and all identify results are put ...
5
votes
3answers
520 views

Measure Snapping with ArcGIS Javascript API

I would like to know if the ArcGIS Javascript API has built in snapping functionality for the measure tool. I am trying to create a measure tool which only measures distances along the edge of roads. ...
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
398 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 ...
5
votes
1answer
2k views

PrintTask in ArcGIS Online JS Api

I'm using the PrintTask() function from the ArcGIS Online API. Works like a charm...untill you add your own graphics. When I don't run the addedAskedSymbolsToMap function in the code below, and only ...
5
votes
1answer
395 views

How to programmatically change the timeExtent of a Map & update the timeSlider?

I am developing with the ArcGIS JavaScript web API and ArcGIS server 10.0. I have a time-aware layer in in my map, and also a timeslider. The full time extent of the map is a year, with data every ...
5
votes
2answers
712 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
406 views

Editing without clicking on a map - ESRI JS API

I'm looking to build a new application that allows staff to edit a service/layer. They will be inputting new survey benchmark data based on lat/long. All of the current samples I have seen on the ...
5
votes
2answers
653 views

Unable to display FeatureLayer using ArcGIS server

I can't figure out why this FeatureLayer doesn't show up on top of my base map. I'm using ArcGIS Server 10.0 and the ArcGIS JS API 2.6. Here's the information from the service's REST parameters page: ...
5
votes
3answers
3k views

Add shapefile from a local file to a JS API map

Using ArcGIS.com's Map Viewer it's possible for the user to add a local shapefile to the map, using an Add Data approach. Is it possible to add this functionality to an ArcGIS Server map built on ...