Tagged Questions

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

learn more… | top users | synonyms

4
votes
1answer
352 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
534 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
748 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
177 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
844 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
222 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
797 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
254 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
504 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
307 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
231 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
666 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
421 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
474 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
219 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
337 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
917 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
174 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 ...
1
vote
1answer
643 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
426 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 ...
6
votes
2answers
3k 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
148 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
271 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
2answers
478 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
216 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
442 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 ...
1
vote
0answers
134 views

MemoryLeak - http://help.arcgis.com/en/webapi/javascript/arcgis/samples/fl_any_projection/index.html

Attention ESRI - Loading http://help.arcgis.com/en/webapi/javascript/arcgis/samples/fl_any_projection/index.html inside of sIEve shows a significant amount of memory loss each time the page loads ...
2
votes
1answer
507 views

onLayerAdd function why dojo.connect?

I am building a map application, calling layers from an arcgis-server using the javascript api. Maybe I am being stubborn, but I am trying to minimize my use of dojo throughout this process. Much ...
1
vote
0answers
375 views

ESRI JavaScript API - Multiple KML Layers - Internal KML Parser Error

I am building a webmap with the ESRI Javascript API. I am trying to add several KML layers, as well as a Legend Toggle and am repeatedly getting "Internal KML Parser Error" and only some of my layers ...
0
votes
1answer
278 views

save features in personal geodatabase using arcgis javascript API

hi anyone can u please clear my doubt, thanks in advance i want to save the feature in the personal geodatabase using arcgis javascript. from the feature prospective i'm having the geometry of the ...
0
votes
1answer
620 views

Changing a legend elements from vertical to horizontal in ArcGIS Java Script API (version 3.2/3.3)

I want to change legend style vertical to horizontal in Java script API. I researched and tried few things on Google but not able to change style. I have published simple map service using ArcGIS ...
1
vote
1answer
134 views

What ArcGIS Online feature layer can I use to display European states with unique country codes?

I'm writing a web page to display ECB statistics on an ArcGIS JavaScript API-based web map. I'm a bit lost when selecting a feature layer so that I can use the UniqueValueRenderer to make the states ...
3
votes
2answers
442 views

ESRI Javascript v API 3.3: Format Info Window Content

I'm attempting to query a parcel layer and display the information in a popup infoWindow when I click on a parcel, and I'm having some issues dealing with different datatypes. var content = ...
3
votes
1answer
254 views

ESRI Javascript Web Application Hosted on Amazon Web Services

I have just deployed my first web application to Amazon S3. This web application is a simple web mapping app using the ESRI Javascript API and consuming a web map from ArcGIS Online. I have been ...
2
votes
0answers
534 views

ArcGIS Javascript API 3.3 - Changing Layer Definitions / Refresh Not Behaving

I have an ArcGISDynamicMapService layer in my application that points to a fairly simple (6 layers) map service. In the application, there is a GUI/widget that allows the user to pick various options ...
3
votes
1answer
841 views

Trouble with accesing API code: “ReferenceError: esri is not defined”

I am developing a web map application in the ArcGIS API for Javascript. I two have ArcGISDynamicMapServiceLayer layers that I am trying to run a simple query task on. The code I am using works in ...
4
votes
2answers
2k 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 ...
0
votes
0answers
172 views

How to add GeoTagged images to the map and store as KML

I have the requirement that i need to add a GeoTagged Image into the map and save that image in KML format. Give the approach to do this task.
4
votes
1answer
1k views

Tiled map service base layer does not display properly in ESRI Javascript map

I am adding a map to a website built in asp.net and Javascript. When I add the esri.Map using a tiled map service layer base map, the map overlaps the map div and what I assume are tiles show up out ...
2
votes
1answer
273 views

ArcGis Javascript api detect one second hover

For reference I am using arcgis_js_v33 api. I am trying to figure out a good way to detect if a user has hovered over the map for at least one second and if they have to pop up the info box ...
2
votes
1answer
320 views

UTM NAD 1927 to DMS

I have requirement to convert UTM NAD 1927 Northing (4804172), Esting(753352) to Geographic coordinatesystem(Degrees Minutes, Seconds). Iam doing like below m_mapPoint[0] = new ...