The ArcGIS API for JavaScript is web mapping API from Esri.
22
votes
6answers
2k 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?
2
votes
1answer
1k 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 ...
1
vote
2answers
155 views
Is it possible to display 3-D maps in ArcGIS Java Script API?
We are going to create 3D maps in ArcGIS Desktop with the help of 3d analyst extension and then I want to integrate those maps with ArcGIS Java Script API 3.2/3.3 (after publishing maps on server ...
12
votes
4answers
2k 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
110 views
Need Basic Viewer template for ArcGIS JSAPI 3.2/3.3
I am looking for basic viewer for ArcGIS JSAPI but not getting proper sample/example.
I am going through ArcGIS resource also but looks like its not working .Going through this question also.
...
1
vote
1answer
212 views
How to Delete Records from a Feature Layer?
I am trying to delete some records from a feature layer, but I kept getting the error of invalid parameters from the errback.
Below is my code:
function deleteRecords()
{
var incidentId = 2;
var ...
5
votes
3answers
1k 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 ...
3
votes
2answers
1k 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
2answers
41 views
ArcGIS javascript API Extent formats
I am trying to understand how the extent works in the javascript api. I create an extent like the following:
var beginExt = new esri.geometry.Extent(-159.6716766, 19.520, -67.843, 64.8348, new ...
1
vote
2answers
221 views
Spatial query in ArcGIS Javascript Api 3.1
I have scenario in which I have to select features drawing a polygon and and get the attribute values in to a tables or lists.The features on the map consist of polygon, line,point at the same time so ...
1
vote
1answer
1k views
automatic zoom to layer in arcgis js api
I'm trying to zoom to layer automatically as soon as the map finishes loading using the guide here. To be clear, I'm only loading one layer and just want to zoom in on one of the layers provided by ...
9
votes
4answers
2k 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 ...
3
votes
3answers
2k views
Printing with the ArcGIS Javascript API?
Any examples of how to print a map using the JSAPI? All from the client?
10
votes
3answers
2k 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 ...
6
votes
2answers
891 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 ...
4
votes
1answer
572 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)
...
3
votes
3answers
614 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 ...
2
votes
2answers
547 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 ...
2
votes
3answers
3k 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 ...
7
votes
3answers
670 views
what is the right way to delete all features from featureLayer
I have a feaureLayer 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 ot use it I ...
5
votes
1answer
476 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, ...
4
votes
2answers
102 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 ...
4
votes
1answer
255 views
ArcGIS Online without basemap
I am trying to create a Web App, using the ArcGIS Online feature of downloading the javascript code, with the map id being used for connecting to the ArcGIS Online. I was able to do that successfully ...
3
votes
1answer
142 views
Need help: Sorting elements of a combo box in ArcGIS Java script API (ver. 2.8)
I am using sorting elements in combo box in ArcGIS Java Script API (v.2.8) & for sorting I am using “ fetchProperties="{sort:[{attribute:'name', descending:false}]}".
All entries in combo box are ...
3
votes
3answers
453 views
How to zoom to feature when clicking on drop-down list box item with ArcGIS JS API?
I am developing a web application with ArcGIS JS Api that is similar to this smart campus: UCSB Interactive Campus Map. Here, in the Building drop down list box, you can select a building, and the ...
3
votes
1answer
145 views
getResultImageLayer is not working
I am trying to obtain the shapefile output that I am receiving from the gpTool, which is hosted on the ArcServer, and placing it on the Map using,
gp.getResultImageLayer(jobInfo.jobId,"final_shp", ...
3
votes
1answer
2k views
Adding a FeatureLayer ARCGIS JavaScript API
Hi I am currently exploring ARCGIS Javascript API. I have my own map services and feature services up on my local server. I would want to use the FeatuerLayer to select and highlight feature on the ...
3
votes
3answers
703 views
Zoom to selection
I am trying to an application where in I want to zoom to selected features. Basically, I want to zoom to a point and polygon on the selected feature.
3
votes
1answer
434 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
2answers
378 views
ESRI Javascript API: How to hide infoWindow while using measure tool?
In my Javascript API Web application I'm using the infoWindow to query a parcel layer and display display information in a popup when I click the parcel. I've set this functionality to turn on and off ...
2
votes
3answers
313 views
How to count features in polygon using ArcGIS JS API?
I have published in my ArcGIS Server two layers: A polygon one and a point feature one. Points are contained in polygons.
I would like to know how to count the number of points belonging/contained to ...
2
votes
2answers
561 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 = ...
1
vote
1answer
365 views
Popup from multiple services
I am trying to have one infowindow/popup show from multiple services. I have successfully added the second service to my code, however, only 1 result will display.
Ex. if I am at full scale, only ...
1
vote
1answer
320 views
Overlaping graphics not visible in featureLayer
I have constructed featureCollection from Json and feature collection has 44 features. I have given this feature collection as input to the Featurelayer which is showing only 32 graphics objects of ...
1
vote
1answer
315 views
JS API Toggle Pop-Up On & Off
I am attempting to allow for the pop-up to be toggled on and off by pressing a checkbox. Here are some snippets of the code:
var clickHandler
function popupOn(evt){
var query = new ...
1
vote
2answers
889 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 ...
0
votes
2answers
339 views
Toggle Visibility of Features in FeatureLayer
How to toggle the visibility of features in a feature-layer using check-boxes .I have grid containing check-boxes in a columns representing each feature in Feature-layer and so if I check off the ...
0
votes
3answers
405 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?


