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

learn more… | top users | synonyms

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 ...
3
votes
1answer
855 views

Does the esri javascript api Identify Task Return a FeatureSet?

I am trying to get the results of an identify task using ArcGIS JS API 2.7 into a featureSet so I can utilize this sample http://arcscripts.esri.com/details.asp?dbid=16528 that takes the results of a ...
0
votes
3answers
592 views

JSAPI 2.8 and Dojotoolkit 1.7.2? May?

I realize no one can give a definitive answer but is it reasonable to think the next release of ESRI JSAPI will be built on top of dojotookit 1.7? And will be released in the next 2-3 months? Any ...
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.
8
votes
1answer
986 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?
0
votes
3answers
824 views

How to load spatial data into ArcGIS Javascript API application from SQL Server 2008?

I have geometry data in SQL Server 2008 R2. How do I load that spatial data using the ArcGIS Javascript API?
2
votes
0answers
202 views

JSAPI: How to prevent GetImageUrl from being called twice?

I posted this on the ESRI forum a while back but got no response. PROBLEM: GetImageUrl is called twice resulting in two trips to the server if caching is off. QUESTION: How can this be prevented ...
3
votes
1answer
4k views

How to add or remove layers using ArcGIS API for JavaScript?

I want to use javascript and dojo to add and remove layers.
0
votes
1answer
378 views

ESRI JSAPI: How to use GMap3 as 1st layer when using gmaps-utility-gis.googlecode.com?

This question relates to ESRI JSAPI and Google Maps V3 integration... I've put together this fiddle http://jsfiddle.net/br4pk/1/ which demonstrates a mismatch between the LOD of the map and ...
3
votes
1answer
7k views

How to Zoom to a FeatureLayer Using ArcGIS Javascript API

I am making a web application using the Javascript API and am trying to zoom to a feature layer from a row click in a dojo data grid. I have this working for a dynamic layer, but am having issues with ...
3
votes
1answer
446 views

Any Open Source Extensions to ESRI JSAPI?

I'm looking for some functionality beyond what ESRI already provides in the JSAPI. For example, the ability to display the LOD in a tooltip on the zoom control. It seems like there should be a ...
2
votes
1answer
717 views

ArcGIS javascript API: A way to position Dynamic Service layer on top of Graphic Layer?

I have 3 layers: Tiled based map DynamicServiceLayer with ~1000 points Graphics layer with ~20 polygons I really need the DynamicServiceLayer to be on top of the graphics layer (point must be on ...
2
votes
1answer
2k views

How to vary the infoWindow size for different feature layers

I have multiple feature layers on the map, and I wish to display a different sized infoWindow for each layer. As far as I can tell, the map has one infoWindow, which can be resized using: ...
7
votes
1answer
2k 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
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 ...
1
vote
2answers
177 views

Tips and advice for Filtering on a large dataset

I am attempting to build an application using the ArcGIS JavaScript API that will allow my users to research competitor pipelines across the country. The main layer in this application is comprised ...
1
vote
2answers
2k views

ESRI Maps - Refresh the map

First time, map loads and the locations are plotted properly. Second time, when the new set of locations are pulled from the app, map reloads and gets the new set of data. But it is not refreshed. ...
1
vote
1answer
449 views

How to save Bookmarks between sessions using the JS API

The ArcGIS Server JavaScript API contains a Bookmark dijit which allows users to add and delete bookmarks. These are not persisted between sessions, but are reset each time the page refreshes. Has ...
4
votes
2answers
361 views

Why is the Button code on the ArcGIS.com sample viewers so complicated?

I'm trying to modify one of the ArcGIS.com sample maps to add my own buttons, and I'm surprised at how complicated the HTML page is. Here is the code for the simple "Details" button at the top left ...
1
vote
2answers
590 views

Using TiledMapServiceLayer and On Demand Tiling

I have a tiling services which generates tiles on demand but TiledMapServiceLayer does not use a callback for getTileUrl so how would one implement this? I've tried using the refresh! method to no ...
1
vote
1answer
761 views

How to join an external table to a set of polygons, and symbolize on the joined values, in a web map?

Say I have a table showing a number of statistics - for example, various gun crime by US State measures. I also have a dataset of state boundaries. How can I join the table to the features in a web ...
6
votes
1answer
731 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, ...
1
vote
1answer
641 views

Issues with ArcGIS JSAPI in a jQuery UI Accordion?

Has anyone had success using an ArcGIS Javascript API map within a jQuery UI accordion? I have a simple example here: http://chadwilcomb.com/maps/test/AGS_jQueryUI.htm There is an offset between the ...
2
votes
2answers
464 views

Importing ALOHA plume .pas file in ArcGIS Server web API application

I want to import a .pas file (ALOHA plume file) in ArcGIS Server web API application (JavaScript/Silverlight/Flex). Has anyone tried this before? I am looking for some directions to achive the same. ...
1
vote
1answer
244 views

Does a graphic or graphicsLayer support time-awareness?

In the ArcGIS Server JavaScript API 2.6 I'm looking to implement map graphics. I can't see whether they support time-awareness. The help entry for graphicsLayer doesn't mention timeInfo, which is ...
1
vote
1answer
407 views

Create toggle buttons to activate individual query and identify tasks

Can you please help with toggling query and identify tasks? For example, Parcel: button Footpring: button CIP: button whenever one of the buttons is checked, all others are inactive. D.E.Wright ...
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: ...
2
votes
2answers
2k views

Populating a Dojo widget with country names based on an ESRI hosted layer

Wow, Javascript is not that easy - can someone help me make a simple breakthrough just to understand some basic concepts. Does anyone know how to populate a filteringSelect Dojo dijit with the names ...
2
votes
1answer
762 views

ESRI - Polyline insertPoint issue (JS 2.5 API)

I am trying to basically draw a path on an esri map. with circles like so, but when I call Polyline.insertPoint it doesn't show the new segment: I keep adding points as time progresses. My ...
2
votes
1answer
423 views

How to add a legend for raster (GRID) layers in ESRI JS app

I have a grid in an MXD that I am publishing using ArcGIS Server 9.3.1. In the TOC I have made a legend with labels against each of my 5 classifications. I was expecting this to appear in my JS web ...
3
votes
1answer
2k views

Web mapping within ASP MVC 3 framework

Just curious if anyone has used the ASP MVC 3 framework for creating web mapping applications. I have one coming up and am planning on using the ArcGIS javascript API. Would be interested in hearing ...
3
votes
2answers
461 views

Many of the Esri samples fail the WC3 HTML validator. Is this a problem?

I'm running into problems with some ArcGIS Server JavaScript code (page elements are positioned different in IE than FF/Chrome), so I checked it against the HTML validators at http://validator.w3.org ...
3
votes
3answers
3k views

Printing with ArcGIS API for Javascript?

Any examples of how to print a map using the ArcGIS API for Javascript (JSAPI)? All from the client?
2
votes
2answers
4k views

ArcGIS javascript API - draw circle of a specified radius in meters

I am trying to add a circle of a specified radius (let's say 200 meters) to a map. My thought is to create a SimpleMarkerSymbol object. The constructor asks for a size of the symbol in pixels, but I ...
2
votes
2answers
4k views

ESRI - add graphics from a different spatialReference

I want to know if I'm approaching this incorrectly. We are attempting to create an esri-based map where we add graphics to a map thru the javascript API. The points that we're adding are lat/lng ...
4
votes
2answers
1k views

How To Use Tiled Map Services with Different Spatial References in ArcGIS API for JavaScript?

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) ...
28
votes
2answers
2k 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 ...
1
vote
0answers
205 views

IE 9 reopen tab if close window while applyedits are executing [closed]

We load a map in a pop up using window.open but when we execute the applyedits method and immediately after this we close the pop up, on Internet Explorer the parent window "crash" and show the ...
4
votes
2answers
597 views

Point clustering only works for part of an area?

I am using the 3rd party scripts for point clustering as published by Globoserve, http://globoserve.posterous.com/ . I followed the instructions to the letter - and just replaced the queryTask ...
2
votes
1answer
544 views

How can I edit lines containing M values with the ArcGIS JS API?

I am working with the ArcGIS JavaScript API and want to move and edit the vertices of a polyline analog to the following sample: ...
21
votes
6answers
3k 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 ...
4
votes
1answer
801 views

Text and circular background marker with ArcGIS Javascript API?

I see that it is possible to create a circular symbol (among other shapes) with SimpleMarkerSymbol. I also see that it is possible to create a text symbol with TextSymbol. Is it possible to combine ...
2
votes
0answers
531 views

ArcGIS Javascript API - IE9 Quirks Mode

I'm having difficulty understanding why ArcGIS Javascript API isn't rendering SVG when running in IE9 quirks mode. When I visit the ESRI sample site at ...
2
votes
2answers
209 views

Is there a GroupRenderer in ArcGIS for javaScript?

Is there a GroupRenderer or similar functionality in ArcGIS for JavaScript? What I would like to do is to show PictureMarkers with a label showing an attribute on the Graphics object.
2
votes
2answers
580 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 ...
4
votes
2answers
602 views

How do I interface with bundles using ESRI's Javascript API?

I've found this example... http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples_start.htm#jssamples/layers_custom_tiled.html Which uses an exploded cache. It notes at ...
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>", ...
8
votes
1answer
393 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 ...
3
votes
1answer
818 views

How to handle time-based raster data in the ArcGIS Server JS API

The TimeSlider functionality in the ArcGIS Server JS API is great for working with time-based vector features - you can scroll forwards and backwards through time to see the vector features which ...
1
vote
0answers
444 views

JavaScript Api geo processing - internal server error 500

I am trying to run a geo processing task using Java Script API for Arcgis. I have created a simple buffer task, published using Arcgis server (synchronous) and used the same (almost) code as the view ...