Tagged Questions

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

learn more… | top users | synonyms

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
676 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
435 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
149 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
287 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
487 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
230 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
453 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
140 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
526 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
382 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
289 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
641 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
137 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
449 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
263 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 ...
3
votes
0answers
553 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 ...
2
votes
1answer
865 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
177 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
284 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
325 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 ...
5
votes
2answers
949 views

Moveable ESRI / ArcGIS Identify Popup Window (Dojo)

I'm trying to get a popup window that identifies a location to be moveable. My code is similar to the API example: var popupOptions = { fillSymbol: new ...
2
votes
1answer
99 views

Why is there no Map.SnapToLevels property in the ESRI JS API?

The ESRI Silverlight and WPF API's both have a Map.SnapToLevels property that can be set on or off. It "gets or sets whether zooming will snap to scale levels if the map contains cached layers". But ...
-1
votes
2answers
265 views

Delete feature from geographic database

How do I delete a selected feature from database when it is clicked on in the ArcGIS API for javascript?
2
votes
1answer
178 views

What is the difference between the compact build and standard build of the ArcGIS JavaScript API?

I am creating a JSAPI application using version 3.2/3.3 and have recently gone through the page detailing the difference between the compact build and standard build. Right now, I am confused about ...
7
votes
3answers
2k views

ArcGIS Server 10.1 - Inconsistent Querying Errors

I have recently upgraded to ArcGIS Server 10.1 SP1. Since making the switch, I am getting a lot of inconsistent errors, specifically performing queries against a map service's REST API with the ...
1
vote
1answer
414 views

Responsive design via an iframe for ArcGIS Java Script API 3.2

Currently I am working on ArcGIS JSAPI ver 3.0/3.2 . I have created few maps in .html files then my IT admin putting this file in i-frame (at our custom site) I am not using i-frame in my .html ...
1
vote
1answer
1k views

sorted ItemFileReadStore list not pushed to dropdown menu // Dojo, ArcGIS

this may be more a Dojo question than ArcGIS, but I am not sure if the Javascript API is related to this issue. I am trying to alphabetically sort a Dojo store and show these items in a dropdown ...
2
votes
1answer
830 views

ESRI JS API 3.3- setExtent, when called twice, same code, different behavior, jumps

Our map has a toolbar 'home' button with code that grabs extent values from a config file, creates an Extent object from those values, and passes the Extent object to the map's setExtent function. We ...
1
vote
1answer
478 views

Identify Tool for JS API similar to the tool in ArcGIS Desktop?

As documented in my earlier questions, I am having trouble connecting multiple ArcGIS Server services to identifyTasks. Therefore, I'm wondering if there is a tool/process or if its possible to create ...
6
votes
4answers
1k views

ArcGIS JS API: Merging Popups with Relationship Queries (with fiddle)

I am trying to merge two ArcGIS JS API examples: Feature Layer with Popup and Query Related Records. The idea I have in mind is clicking on a country feature, retrieve all related records from a ...
0
votes
1answer
3k views

How to convert AutoCAD file to Shapefile for map from ArcGIS API 3.2 for JavaScript?

I have an AutoCAD file that I want to convert to Shapfile to appear in a map by API for JavaScript in .net. What do I do?
2
votes
1answer
2k views

How can I add an onmouseover tooltip pop-up to a PictureMarkerSymbol in JavaScript API?

When the mouse pointer hovers over a PictureMarkerSymbol, I need a tooltip to pop-up, then disappear onmouseout. If that's not possible, then how might I have the marker's esri.symbol.TextSymbol ...
3
votes
1answer
703 views

Dynamic Map Service with Zoom Slider in arcgis by API for javascript

I have ArcGISDynamicMapServiceLayer and I want to show Zoom Slider by API 3.2 for javascript
1
vote
1answer
1k views

How to Install the ArcGIS JavaScript 3.2 API library on an IIS Web Server? [closed]

I would like to deploy Server API for JavaScript 3.2 in my server to use it in my asp.net project instead of connect to server What are the steps to be followed in deploying it to a local ...
1
vote
0answers
482 views

ArcGIS API Javascript - FeatureLayer from json: problem with queries and popup

Hello everybody I've tried this code proposed by Derek Swingley in JSFIDDLE: JSFIDDLE-FeatureLayer from JSON Everything "seems" to work fine, but not always. If you go down to the closer scale (level ...
1
vote
1answer
2k views

How to setup proxy and use “POST” method when executing Geoprocessing Service in ArcGIS Server Javascript API

I am passing five featuresets to a ArcGIS Server Javascript API. When I do that I get 'Deferred Object not defined error'. Then I tried to use dojo.Deferred(). At that point the error goes away. But ...
4
votes
1answer
729 views

ArcGIS JS API: Convert ESRI Date Type into String

I am following this ESRI tutorial to display information from a related table for the selected features. The example in itself for my project works fine, however, my data include two Date fields and ...
2
votes
1answer
76 views

Method to find “if map data is available or not”

I am using Arcgis javascript api 3.2. I use the mapservice, https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer. I realized that map data is not available when the ...
3
votes
1answer
407 views

How to control the rendering priority/order of feature layers?

I am displaying polygon, line and point feature layers on a button click event and adding layers in order based on their geometry type, e.g.: polygon -> line -> point. In certain cases layers are ...
2
votes
1answer
488 views

Is there a Swipe tool for ArcGIS JavaScript API?

I was researching the ESRI JavaScript API, and was wondering if there is a sample which shows layer swiping in the browser. Is there such a Swipe sample?
1
vote
2answers
2k 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 ...
1
vote
1answer
230 views

ESRI Javascript APT FeatureSet input to custom Geoproecessing tool

I have an ESRI Javascript application that uses a geoprocessing service that uses a cutsom GP tool. Since I have a set of values to be passed to the GP service I am planning to pass in it as a record ...
5
votes
1answer
148 views

How to draw graphics in a child window?

I am adding some graphics to the map in a parent window, and I would like to show the same graphics in a child window. I am using the ArcGIS Javascript API (version 3.1). I have written code as below: ...