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

learn more… | top users | synonyms

4
votes
2answers
642 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>", ...
9
votes
1answer
416 views

Using ArcGIS.com map that is not shared with everyone from ArcGIS API for JavaScript?

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
942 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
482 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 ...
7
votes
4answers
721 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 ...
5
votes
3answers
4k 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 ...
1
vote
1answer
336 views

Connecting geocoded point to an identify function

I am using the esri javascript api to make a web map. I need to use an address locator to geocode a point and then depending on where that point lands information populates a side panel. I am assuming ...
6
votes
2answers
4k 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 ...
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 ...
4
votes
1answer
165 views

Why does a cache service need to load first when a dynamic service is involved?

I notice if you have 2 services 1 cached and 1 dynamic you have to load the cache first for it to display. Does anyone know why?
7
votes
3answers
11k 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 ...
2
votes
1answer
1k views

ArcGIS Server js api - buffer query against polygons and not points

I'm using the below sample and i want to change the queried results from points to polygons http://help.arcgis.com/en/webapi/jav...ry_buffer.html Probably very simple but cant get my head around ...
3
votes
1answer
676 views

Identify with Layer Toggling

I have spent some time reading the numerous threads about setting the identify task to work with layer toggling and I seem to have it working properly except for one small issue. The identify task ...
3
votes
1answer
275 views

Map and onKeyDown event

I have a web page with a map and search field. Something like Derek's "beer's finder" When I type a search request I somethimes use arrows to fix something. But if mouse is over the map, then I can't ...
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 ...
2
votes
0answers
177 views

Having download/latency issues with ESRI JS-API recently? [closed]

Is anyone using the ESRI JS-API having issues over the last week or two with either latency or performance in the client download and operation? Since about 7/12/2011 we have seen across numerous ISPs ...
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 ...
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: ...
1
vote
1answer
1k views

How to use onLayerAddResult in the ArcGIS Server JavaScript API

The JS API help file shows how to listen for the onLayerAddResult event. onLayerAddResult(layer, error) Fires after specified layer has been added to the map I can't get it to work ...
0
votes
1answer
1k views

How to close DOJO layout elements programatically

This applies to ArcGIS Server JavaScript API 2.4. The Build Application Layouts help file shows how to lay out a page with elements held within separate containers. How can I programatically close a ...
2
votes
2answers
176 views

Where can I deploy a JavaScript app for collaborative testing?

I'm developing a new ArcGIS Server JavaScript application, and I'd like to show the progress to the client, so he can provide feedback as I develop it. The application consists of an Index.html file, ...
2
votes
1answer
867 views

How to add an identify button with Arcgis JS API?

GIS stackexhange is the first website that i've come across that has come near to answering my question, but some how i can't work the answer out in my head/or the answers here have confused things ...
2
votes
1answer
2k views

How to determine what Level a new Extent would be, without zooming to it

In the ArcGIS Server JavaScript API 2.4, there are some related methods for getting and setting the map's extent. map.getLevel() determine's the map's current level (when using a Tiled layer) ...
3
votes
1answer
2k views

How to add a Group Layer control to a Table of Contents sample

I'm still trying to find the perfect Table of Contents sample for the ArcGIS Server JavaScript API 2.3. My previous question gave some hints but I now have a more specific question regarding ...
3
votes
2answers
335 views

how to prevent a mixture of “old” and “new” Bing Maps tiles

The Bing Maps blog states that the "new" Bing Maps style will be implemented today. I'm seeing a strange mixture of old and new tiles when using the ArcGIS Server JavaScript API (use this sample to ...
4
votes
1answer
1k views

How to resize an infoWindow dynamically, based on the contents

How can I set the size of an infoWindow dynamically, based on the length of its Title, when the Title isn't known until the user clicks on a map feature? Take the map here as an example - how could ...
3
votes
3answers
808 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 ...
5
votes
1answer
1k views

Automate export of ArcMap legends

I've been building legends for my javascript websites that use 9.3.1 services. I know there's the ESRI legend tool for older services but I don't feel that it does a good job of producing legend ...
11
votes
5answers
4k 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 ...
2
votes
1answer
3k 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 ...
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 ...
3
votes
1answer
842 views

Toggle Identify with Button

I am attempting to set up an Identify button that will only allow the identify functionality to be performed when the button is pressed. I have gotten to the point that the identify only works when ...
1
vote
3answers
990 views

How to restrict zoom levels based on Bing Map availability?

Background My site is built on ArcGIS Server 10 with the JavaScript API 2.3, and uses Bing Maps as the background mapping. Although the site is aimed at NSW, Australia we allow the user to zoom ...
2
votes
1answer
699 views

Does the ArcGIS Javascript API support multiple map service urls per layer?

I've called tilecache from OpenLayers in the same manner as the example below. Is it possible to do something similar with the ArcGIS WMS map layer? var urlArray = ...
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 ...
5
votes
4answers
3k 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 ...
7
votes
2answers
503 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 ...
3
votes
2answers
2k views

Layer Toggling from Multiple Services

I am attempting to modify the Esri sample below that allows for layers of a dynamic server to be toggled on and off. In my case I want to be able to toggle layers from multiple services. ...
8
votes
1answer
363 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? ...
2
votes
1answer
1k views

How do I change a text box to a text area? (ArcGIS API for JavaScript)

I recently posted this question on the Esri forums and thought I'd give stack exchange a try too. I'd like to take this sample: ...
1
vote
2answers
867 views

Issue with loading zoom slider and info template styling in ArcGIS Javascript API

I have been working on a web app that displays points based on a date query, and an infotemplate pops up when you click on a point. When the user clicks on a point, it retrieves the HTML contents of ...
1
vote
1answer
353 views

How to project the result of a QueryTask in ArcGIS Javascript API?

I have created a web map that displays point features based on a given date range. Our current projection is Oregon State Plane South. My boss wants me to change the map to use a Web Mercator ...
5
votes
1answer
2k views

How to handle add feature event in the FeatureLayer/Editor

I use a FeatureLayer created from the featureCollection. I also use esri.dijit.editing.Editor to add a feature to the map. Every time feature has been added to this layer I want to send it to my ...
5
votes
1answer
2k views

How to change a FeatureLayer's symbols?

I did this: dojo.connect(featureLayer, "onUpdateEnd", function() { var defaultSymbol = new esri.symbol.SimpleMarkerSymbol().setColor(new dojo.Color([0,0,255])); ...
1
vote
1answer
3k views

Feature Layer with ONDEMAND mode

I can't understand how to display all features from the feature layer. In the code bellow I specified 2 features in the layer and set in feature layer's mode to esri.layers.FeatureLayer.MODE_SNAPSHOT. ...
4
votes
3answers
7k 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 ...
1
vote
1answer
612 views

How to query all points within the current map extent

First post - apologies if it's a simple question! I am basically looking to have a JS API service which will populate a datagrid with all of the points visible in the current map extent. As a user ...
2
votes
1answer
1k views

drawToolbar is undefined

I keep receiving the error "drawToolbar is undefined" when I click a button to enable the Draw Toolbar from the ArcGIS JavaScript API. I also have the navTool bar in the map so as I understand I need ...
3
votes
3answers
3k views

Displaying HTML popups for feature service

This bit of information caught my eye today as I was reading about Feature Services in the ArcGIS Server .NET help: Feature services also support HTML pop-ups setup in ArcMap. HTML pop-ups are ...