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

learn more… | top users | synonyms

2
votes
0answers
118 views

Jsonp Callback error

Recently we have started migrating application from Javascript API 3.1 to 3.5 and we are finding this jsonp error coming sometimes during adding the layer.When we add the layer we also zoom to the ...
1
vote
1answer
345 views

ArcGIS Server 9.3 - Javascript API - Selecting Feature Problem

I have ArcGIS Server 9.3, and I'm trying to use the JS API. I successfully displayed the map, and I can locate and zoom to a feature based on ParcelID value. The problem is I can't highlight this ...
3
votes
2answers
1k views

How to share a hosted feature service with an application on ArcGIS Online?

According to the ESRI REST API documentation on authentication, a registered application can log in to AGOL via an App ID and App Secret and will then have access to the data that has been shared with ...
1
vote
2answers
740 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 ...
0
votes
1answer
308 views

Geoprocessing tool not executing when Map's SpatialReference is Web Mercartor

I am facing a strange issue when trying to execute GP service when my map's spatial-reference is Web Mercator. I appreciate all help. I have a JavaScript API application. Initially I only had my map ...
1
vote
0answers
193 views

Unable to reorder after layers from multiple ArcGISDynamicMapServiceLayers

I used the ArcGIS Javascript layer reordering sample as template. Initially I have 4 layers added to the map by ArcGISDynamicMapServiceLayer where reordering was working. Then, instead of using add ...
0
votes
2answers
430 views

ArcGIS JS API: How to get the lat/long of the viewport vertices? [duplicate]

I would like to get the min lat, min long, max lat, max long of my viewport in ArcGIS JS API. Is this possible?
1
vote
0answers
195 views

Point Within, Query in a buffer polygon in WMS like in ArcGIS ESRI

I need to do a query to filter the result inside a polygon or geometry, like this: http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/query_buffer.html But, i need to do this in a opengeo ...
0
votes
2answers
823 views

ArcGIS javascript api - layer reordering - how to add new layers?

I am learning ArcGIS javascript API and wanted to make a reordering panel for my webapp. I looked through the ArcGIS sample. but I'm stuck at addLake() function. If I'm understand the sample ...
0
votes
1answer
277 views

How do I initialize the ArcGIS proxy via server side .NET code (C#)?

I know how to do this via JavaScript code: esri.config.defaults.io.proxyUrl = "../proxy.ashx"; But, how do I do this in .NET? I am very new to the GIS space.
0
votes
1answer
45 views

Arcgis Server name include domain

When I create a web app using the template it points to cos-t420:8399/arcgisoutput but I need it to be cos-t420.web.com.sg:8399/arcgisoutput How can it be done? am using the java version.
1
vote
1answer
91 views

Problems editing geometry in JS script using a find task in a web application

I've generated a javascript code to my app based on the sample "Show find task results in a DataGrid" of ArcGIS API for JavaScript and I am using editable layers (WFS-T) and it works, but when after ...
4
votes
1answer
852 views

First time using ArcGIS JavaScript API - where do I find the JavaScript API to include (.js) into my solution?

I'm writing a web service that will interface with ArcGIS. One of the requirements is to put: esri.config.defaults.io.proxyUrl = "proxy.ashx"; in the JavaScript portion of the page. Of course, it ...
0
votes
0answers
2k views

Simple Dojo Pop Up Window

I'm working on my first web application using the JS API and am looking to add a simple tabbed pop-up window that can be called on the load of the page that can display map instructions and a general ...
0
votes
0answers
148 views

Adding imagery or world topo map from arcgisonline to map

I have an ESRI Javascript API application that uses a local Map Service with various feature layers. Now I need to add Imagery or top maps from ArcGIS online as base maps. I am trying the following. ...
3
votes
2answers
309 views

ArcGIS JS - Missing “style” when printing dynamic layer

Im having an issue trying to get the url of the map being printed with a dynamic layer. WIth just tiled services and basemap it prints just fine. // USED FOR PRINTING OF MAPS function ...
1
vote
1answer
466 views

ESRI ArcGIS JSAPI 3.4 Defect when setting LODS on a map. How to fix?

I tend to get better help here then the ESRI forum so... Using http://developers.arcgis.com/en/javascript/sandbox/sandbox.html I was able to create a simple application which demonstrates that if you ...
1
vote
1answer
414 views

ArcGIS Online Map using URL does not work with PhoneGap

I wanted to show my public accessible ArcGIS Online map with URL on a simple Hello World PhoneGap project with Eclipse. Eclipse threw out the following error in LogCat. Web Console:RequestError: ...
0
votes
1answer
598 views

How to zoom to selection on ArcGISDynamicMapServiceLayer?

I am using the latest ArcGIS Javascript API. All the examples and code I've found so far only deal with geometries of a FeatureLayer. How do I zoom to the visible features of a ...
0
votes
1answer
186 views

Legend is stuck on startup()

All my layer URLs and Feature Layers are stored in an array. with an foreach loop, I am creating the FeatureLayers from the URLs, dojo.forEach(window.layerUrls, function (info, idx) { ...
4
votes
1answer
160 views

Is it possible to implement sticky move tolerance in a ArcGIS JavaScript API application?

We are working on a project in ArcGIS JavaScript and is going fine. We want to add sticky move tolerance to our project so it will not be so easy to move features on the map. Is it not possible to ...
2
votes
0answers
2k views

How to dynamically add all feature layers using ArcGIS JavaScript API?

I have a mapserver http:// mymapserver/services/rest/xxx/mapserver/ which contains 7 layers with /mapserver /1 /through mapserver/7 If a define an ArcGISDynamicMapServiceLayer and 7 ...
2
votes
2answers
290 views

How to upload polygon data for appending to a geodatabase via a JS API web application

After a many hours of research, I am having a hard time determining the feasibility of an application I am trying to build. Basic proposed functionality is: user logs in, uploads polygon (either ...
1
vote
1answer
137 views

How to fix buffer selection issue in ESRI ArcGIS Javascript API and LGIM applications

I had strange LGIM application behavior where the map spatial search did not highlighted the parcels within the Geometry Buffer. What could be the possible reasons? LGIM stands for the Local ...
0
votes
1answer
268 views

ArcGIS Javascript Legend Is not Showing

I am trying to add a legend, and it gets to the console.log, but it fails at on the line after it. It does not show any errors saying it failed, but it wont continue past that line. map[map_div_id] ...
5
votes
1answer
307 views

Can we insert arbitrary HTML layers the ESRI ArcGIS JavaScript API?

We would like to implement a completely custom visualization to be included in a map, whose other layers we'd like the JavaScript API to control. This custom visualization would be updated by hand in ...
2
votes
0answers
311 views

ArcGIS in PhoneGap

I am trying to set up a PhoneGap application with an ArcGIS Map using a Windows Phone template in Visual Studio 2012. I have tried using an example from the ArcGIS Javascript API samples to ...
0
votes
1answer
833 views

need help with Legend in ArcGis JS Api 3.4

I've been told to write up a small site which displays data from our ArcGis server. As a first time user of the ArcGis Api I instantly ran into a serious problem. I am creating a map with a datagrid ...
0
votes
1answer
93 views

Need help in Symbology for ArcGIS JS API 3.2/3.3

I am displaying various symbols in my application and initially all are displaying at once (looks like bulky) so how do I set symbol levels in ArcGIS so that according to zoom level symbol size will ...
4
votes
1answer
309 views

What are offline/client geometry capabilities of ArcGIS JavaScript API?

Lately I've been going through ArcGIS JS API samples, but from what I've seen, it looks like all geometric functions always go through server, and use server side REST functions. There is no option to ...
6
votes
1answer
509 views

Looking for Alternatives to Google gmaps utility widget for ArcGIS JSAPI API

I have been using https://code.google.com/p/gmaps-utility-gis/ as a solution to displaying Google imagery as a base layer on a ESRI JSAPI map. With the advent of JSAPI 3.4 and full AMD support this ...
2
votes
1answer
253 views

ArcGIS JS API Polygon's WKID conversion with gsvc.project

I'm trying to convert polygon from wkid 3301 to wkid 4326. I've been using this code snippet for converting points, but I'm not sure how I would accomplish this to create a polygon object. I'm not ...
0
votes
0answers
141 views

cannot submit address to Google geocoder on iPad: ArcGIS JS webmap app

I am working on a web map app for desktop and iPads. The app uses a Google geocoder to locate addresses or intersections, added with the standard code in 'init': geocoder = new ...
3
votes
1answer
641 views

Need help in Print task in ArcGIS JSAPI 3.2/3.3

I am using print task in my code and using dynamic map service layer and graphics layer (not using feature service layer) and I am able to print the map but it’s not displaying info window and ...
4
votes
1answer
203 views

ArcGIS Javascipt Api Printing

I've got a webpage which prints a web map via the ArcGIS Javascript API. The DPI of the print is 72. To debug I added three different types of symbols 1. The default (most of them are) 2. One custom ...
3
votes
1answer
3k views

How to use ArcGIS JavaScript API's map.centerAndZoom()?

I'm trying to get the map to move and zoom in to a point when a function is executed. Point gets selected, but without zoom. Interestingly when I zoom in to a random location and then execute the ...
2
votes
1answer
559 views

Can I use SELECTION mode on FeatureLayer from ArcGIS.com Webmap in ESRI JS API

I am using an ArcGIS.com Webmap in an ESRI Javascript API application I am developing. One of the layers in my Webmap is rather large and cannot be rendered all at once when zoomed out, however I ...
0
votes
1answer
905 views

Arcgis JS api WMS layer on top of basemap

I'm trying to place WMSlayer on top of basemap "streets", but have ran into problems. Code: // mapHandler.mapextent = new esri.geometry.Extent(350000,6370000,750000,6630000,new ...
1
vote
1answer
47 views

Store Graphics in Local when browser refresh

Using arcgis javascript api i am adding different graphics to the map. Later i will save them in server. If i forgot to save or due to some reasons page is refreshed before saving i am losing all the ...
4
votes
1answer
347 views

How do I create a drop down box / combo box of bookmarks from an ArcGIS Online webmap?

Without using the clunky ArcGIS bookmark dijit, how do I create a drop down box of bookmarks from an ArcGIS Online webmap (or JSON) that zoom to the extents when clicked? //FYI, JSON format ...
2
votes
2answers
532 views

Create Friendly Labels for ArcGIS Print Service Options with JS API

How can I change the print options received from an ArcGIS print service to be more friendly and descriptive using the Esri sample print service?
2
votes
1answer
1k views

How to Hide InfoWindow/Popup when “no information available” or when buffering?

I have an app that does some buffering, only problem is when I click on the map to put in the point/line/polygon vertices to do the buffer, I get popups at every mouseclick. It doesn't interrupt the ...
1
vote
1answer
742 views

Querytask/query - executed select

Is there a way to get to the query condition, which is executed under the querytask ? I have an example, which is actually a copy of this ArcGIS example ...
3
votes
1answer
175 views

Debugger for ArcGIS Java Script API 3.x

It might be very basic question.. I am working on ArcGIS Java Script API version 3.2/3.3 and using IDE as aptana & notepad++(Currently testing all applications on Firefox and using Firebug while ...
5
votes
2answers
836 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 ...
1
vote
0answers
220 views

Error: Objects in this class cannot be edited outside an edit session

I'm simply trying to modify the Default Editing Widget ESRI sample to show my extent and service and am noticing the following error in Firebug when trying to add a point: ...
4
votes
1answer
776 views

Geocoding Multiple Addresses using ArcGis JS API

I am new to using the ArcGIS JavaScript API. I am currently trying to develop an application but I am having troubles with it. The application I am developing uses a .csv file with a bunch of ...
1
vote
1answer
252 views

Which marker did the user click on (ArcGIs JS API)?

I've got a simple map with a set of 10 markers on it. When they are clicked an infoWindow appears however I would like to instead display the data in the infoWindow in a table. How do I find out which ...
5
votes
1answer
2k views

PrintTask in ArcGIS Online JS Api

I'm using the PrintTask() function from the ArcGIS Online API. Works like a charm...untill you add your own graphics. When I don't run the addedAskedSymbolsToMap function in the code below, and only ...
5
votes
1answer
503 views

Editing without clicking on a map - ESRI JS API

I'm looking to build a new application that allows staff to edit a service/layer. They will be inputting new survey benchmark data based on lat/long. All of the current samples I have seen on the ...