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

learn more… | top users | synonyms

7
votes
4answers
747 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 ...
1
vote
1answer
344 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 ...
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
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 ...
3
votes
1answer
279 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 ...
1
vote
1answer
2k 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 ...
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 ...
2
votes
2answers
179 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, ...
3
votes
2answers
341 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 ...
3
votes
3answers
814 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 ...
3
votes
1answer
869 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 ...
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: ...
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 ...
4
votes
3answers
8k views

How can I calculate the center point inside a polygon in ArcGIS 9.3?

I'm using the JavaScript API 1.6 on ArcGIS 9.3. I have a polygon geometry in an ArcGIS map, and I'm trying to find a way to get the point that lies in the exact center of the geometry. What is the ...
7
votes
2answers
506 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. ...
1
vote
1answer
356 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 ...
1
vote
1answer
626 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 ...
1
vote
2answers
794 views

ToC Context Menu Move Layer Up Down

Similar ESRI arcgis.com can anyone give pointers on how to move layer up/down? And of possible include the context menu. Update:Pardon me, Using Javascript API Cheers, blueRace
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 ...