Tagged Questions

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

learn more… | top users | synonyms

4
votes
1answer
910 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
156 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
322 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
487 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 ...
0
votes
1answer
422 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
639 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
197 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
171 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
302 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
140 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
278 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
325 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
323 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
858 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
95 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
319 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
528 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
261 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
147 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
674 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
211 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 ...
4
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
588 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
945 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
48 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
359 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
556 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
774 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
187 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
875 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
227 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
838 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
257 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
517 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 ...
3
votes
1answer
315 views

URL “ http:// <mygisServer>/ArcGIS/rest/service/GPTask/MapServer/jobs/<jobid>” not found in the ArcGIS Server?

I am Using ArcGIS Server 10.03 SP3. I created a geoprocessing service in the server which returns a result map service. I successfully created the gp service and map service with same name. I need to ...
3
votes
2answers
242 views

Error with ArcGIS js API Create web map by ID sample

I have been trying to use the updated ArcGIS API for Javascript, with ArcGIS Online. I have been testing with the sample code found on the "Create web map by ID" page: ...
7
votes
3answers
2k views

CORS issue ArcGIS 10.1 IIS (Cross Origin Resource Sharing)

I have ArcGIS 10.1 installed with the web adapter for IIS. I've added a config file to the root of IIS7 to enable Cross Origin Resource Sharing (CORS) as per this page. I've pushed the cors enabled ...
0
votes
1answer
711 views

ESRI JS API - don't trigger onClick event when panning Map

I have a custom onClick handler for my map that is meant to add a point wherever the map is clicked. I'm finding that this function is triggered even when I click the map to pan. Is it possible to ...
3
votes
2answers
1k 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. ...
3
votes
0answers
428 views

How to create a custom Attribute Inspector for mobile app using the ESRI JS API

I am making a mobile version of a JS web application I developed. I'm noticing though that the AttributeInspector widget by default uses standard dojo/form controls. This means that the form within ...
2
votes
1answer
475 views

call child div function from parent (not using window.opener)

This is a a Javascript/JQuery question that is directly related to the ArcGIS Javascript API... I have a map div created using a 'data' tag in HTML, which becomes visible on a button click. (I'll ...
0
votes
0answers
223 views

how do i get coordinates from a polygon like a drive time map

I want to do this locally in Javascript without using an ArcGIS service. The ideas is to get census group block and block data under drive time polygon overlays. An example of how the drive time ...
0
votes
0answers
341 views

ESRI JS API PopupMobile - view attribute page directly

I am using the ESRI Javascript API to write a mobile web application. I have used the PopupMobile widget for viewing/editing attributes. This widget creates a popup on the map when a feature(s) is ...
0
votes
1answer
956 views

How do I create dynamic legend in REST?

I am going through Generate renderer sample in ArcGIS Java Script API and I want to make similar example using my rest service. I am going through the sample REST service and wondering that how they ...
1
vote
1answer
98 views

Interpreting Firebug results on ESRI Javascript feature layers in the NET tab

This was cross-posted to the ESRI Javascript API forum yesterday. I need help in interpreting what I am seeing and wondering why I'm seeing duplicate features. I'm using this example: ...
6
votes
1answer
182 views

CSS Spritesheets and picture marker symbols in the AGS Javascript API

I'm working on improving the load performance of a large ArcGIS Javascript application, and one area where we can have trouble is that there is a visible delay between putting a graphic with a ...