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

learn more… | top users | synonyms

0
votes
1answer
324 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
361 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
378 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
941 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
108 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
347 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
618 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
315 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
171 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
781 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
243 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
4k 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
749 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
1k 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
52 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
396 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
653 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
2answers
2k 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
891 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
214 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
1k 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
286 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
982 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
285 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
3k 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
615 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
380 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
307 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
921 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
2k 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
485 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
519 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
279 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
376 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
1k 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
105 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
212 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 ...
2
votes
2answers
2k views

Add point to center of polygon graphic in the Esri javascript api

I’m using the ESRI JavaScript API 3.3 to develop an application. I am selecting parcels and adding a graphic for the selected polygon. What I would like to do is add a point marker to the center of ...
2
votes
1answer
794 views

MODE_SNAPSHOT or MODE_ONDEMAND? Issues with both, which one to focus on?

Our web app uses the ESRI JS API. With SNAPSHOT, our feature layers take a long time to show up on the map, especially after using setDefinitionExpression to restrict the feature layer to a date ...
5
votes
1answer
2k views

Can you dynamically set print options using ArcGIS JS API?

I'd like to create an option in my web application where a user can click on a print button and a list of options appears: Page template (already available via esri.dijit.print) Map Title Notes or ...
0
votes
1answer
499 views

Info Template not getting displayed

I have a layer like, realTimeLayer = new esri.layers.GraphicsLayer(); I have an infoTemplate like, infoTemplate=new esri.InfoTemplate("/*Content goes here*/"); I am creating a graphic, adding it ...
7
votes
2answers
4k views

How do I use my own basemap with Javascript API?

I'm trying to make a map using the Javascript API. I want to use my own basemap, but I can't find the most simple code to do this. I always see something like this: function init() { map = ...
1
vote
1answer
175 views

esri.tasks.PrintTask won't print WMS layers hosted by non-ESRI servers

I'm using the ESRI Javascript API. My esri.Map is successfully displaying WMS layers via esri.layers.WMSLayer. Some of the WMS layers are hosted by an ArcGIS Server and some are hosted by non-ESRI ...
2
votes
2answers
2k 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
347 views

How can I get the map to repeat to fill the screen?

I'm programming my first ArcGIS application. I've created a simple map. When I zoom out to a world view, the map doesn't fill the width of the screen. Ideally I'd like it to repeat until the available ...
3
votes
1answer
559 views

TitlePane not rendering - working with basemapGallery sample code

I am attempting to implement the basemapGallery code found in the API samples here. There seems to be an issue with the TitlePane into which my basemapGallery is nested. It simply does not render. ...
0
votes
1answer
3k views

ESRI Javascript API: setting feature layer selection symbol

This seems like it should be a relatively simple thing to do, but for whatever reason I can't figure it out. I'm trying to add functionality to select a group of parcels as laid out in this example, ...
1
vote
1answer
262 views

CORS lets one ArcGIS JavaScript (REST) request through but not the other

I have a problem with Cross-Origin-Requests invoked by the ArcGIS Javascript API. I'm able to access my web app without any issues if I use localhost:8080. But a REST call (by the ArcGIS JS API) ...
3
votes
1answer
484 views

Rendering error ArcGIS javascript API IE8

I have an issue when displaying features on a map in ArcGIS Javascript API V. 2.8. I want to know if this behavior is seen before, and what could cause it. In Internet Explorer 8 the map looks like ...