Tagged Questions

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

learn more… | top users | synonyms

1
vote
1answer
239 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
403 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
1k 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
748 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
418 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
459 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

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) ...
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
201 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
587 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
533 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
779 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
527 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
205 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
574 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
595 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
391 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
798 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
435 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
639 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
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 ...
1
vote
1answer
308 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
160 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
9k 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
559 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
255 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
170 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
171 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
765 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 ...
2
votes
2answers
318 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
998 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
767 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 ...