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

learn more… | top users | synonyms

0
votes
1answer
158 views

Display Lat/Lng coordinates from Oracle DB with ArcGIS HTML5 component

We have some experience in using ArcMap and ArcSDE, but this dates back to 2008, so we're not up to date with the recent developments in ESRI products. Now we're dealing with a database that has some ...
0
votes
0answers
287 views

ESRI javascipt agsjs TOC works in version 3.0 but not 3.5 of the API

Is there a way to get the TOC.js to work in version 3.5?
0
votes
0answers
145 views

ArcGIS map service not resizing for print-friendly page

( I asked this same question on ArcGIS forums, with no response...I hope someone here can help!) I am using ArcView, ArcServer 10.0 and the JS API v3.1 (so no print function) ... I have an app where ...
2
votes
1answer
200 views

ArcGIS 401 error during initialization of javascript map

I have a dumbed-down application to only reference a geometry service, and a feature service. When the map is being initialized, it sends out a GET request of: ...
1
vote
0answers
438 views

Looking for ArcGIS API for javascript and Jquery samples

I'm new in ArcGIS javascript API .I found tons of samples of ArcGIS javascript API and DOJO . it was very interesting for me but i know Jquery and i'd like to use Jquery to develop webgis.Is there ...
1
vote
2answers
280 views

Set custom extent in ArcGIS JSAPI 3.4/3.5

I am using ESRI suit 10.1 and ArcGIS JSAPI 3.4/3.5. I want to set custom extent (for India) for this map and trying to assign the coordinate in center but its not getting proper map. In previous ...
-1
votes
1answer
461 views

ESRI Javascript polygon

I'm using ESRI JavaScript API 3.5. My polygon cannot load. Please help. dojo.require("esri.map"); dojo.require("esri.graphic"); var map; function init() { map = new esri.Map("map",{ ...
-2
votes
3answers
130 views

Disable a button until selection is made [closed]

I have this section in my website: There is a drop down list of environments and an area for a user to input a Zip Code. What I am trying to achieve is making the button disabled until a selection ...
0
votes
2answers
96 views

Need to convert xy values to features in feature service using ArcGIS Server javascript API

I need to convert XY values in a textfile which the user uploads into point features(not graphics) in a feature service using ArcGIS Server Javascript API. The ARCGIS server version is 10.1 and API ...
3
votes
2answers
147 views

Does ArcGIS.com support dynamic map services (or only feature services and tiled services)?

Using ArcGIS Server it is possible to publish a map service, which has a URL like http://services.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_1990-2000_Population_Change/MapServer/1 In ...
3
votes
0answers
146 views

ArcGIS Javascript API - Looking For Styled Navigation Plugin/Widget

I am looking for a fancy navigation plugin to use with the ArcGIS Javascript API. Something along the lines of the Navigation Widget (see image below) available in the Flex Viewer would be great. ...
3
votes
1answer
441 views

Restricting base map on specific extent in ArcGIS JSAPI 3.3/3.4

Currently I am using ArcGIS JS API ver 3.3/3.5 in my application. I want to restrict the basemap for US only .For example one can use default navigation features like zoom in, zoom out for the US ...
1
vote
1answer
99 views

ArcGIS JS Modular Feature Layers? Possible?

My ultimate goal is a map which can toggle the visibility of layers on an ArcGIS map. However the data I need to use is not available as a feature service, I have to build it programatically from ...
0
votes
1answer
332 views

Show pie-chart values & legend in info-window for AGS_JSAPI 3.4/3.5

Currently I am going through this example and trying to insert values in pie chart (I have added that screenshot and want to show values & legend in the info window) I am using ArcGIS Suit 10.1 ...
2
votes
0answers
657 views

How to access ArcGISDynamicMapServiceLayer with credentials (token)

I know I simply need to append a token=XXX to the export query string but how, in code, do we initialize "esri/layers/ArcGISDynamicMapServiceLayer" to use credentials? In my case I only want to ...
6
votes
1answer
189 views

Duplicate items in the legend

I have recently created a web map that uses the legend snippet from the ESRI JavaScript API website. https://developers.arcgis.com/en/jav...et_legend.html It works great for the most part, but has ...
1
vote
2answers
84 views

How to find the width and height of the html content dynamically to pass to esri map infowindow.resize?

There will be a html content stored in a variable with div id to pass into infowindow map.infoWindow.resize(width,height); map.infoWindow.setTitle("Callout"); map.infoWindow.setContent(calloutData ); ...
0
votes
1answer
155 views

Undomanager did not remove graphics when undo()

My attempted on using the UndoManager has been unsuccessful for a couple days and I'm stuck. I did not setup a proxy. I create a FeatureLayer object in memory with var drawingPointLayer = new ...
2
votes
2answers
728 views

How to install ArcGIS Code Assist in Aptana 3?

I have downloaded Aptana and ArcGIS Code Assist but I don't know how to "DRAG" the vsDOC into Aptana. Aptana 3 Installation Instructions Download the zip file that contains the VSDoc file for ...
1
vote
1answer
704 views

ArcGIS JavaScript API: How to add a CSV as a Layer?

I've created a map on ArcGIS online, adding a layer by uploading a csv file. This works fine, see map at link http://www.arcgis.com/home/webmap/vi...1ba43a0256c06b. Now I'm trying to simulate this in ...
1
vote
3answers
227 views

Is it possible to create a tooltip with a map service?

I am trying to modify the ESRI Parks Finder application to include a tooltip that shows the name of a park when you mouse hover over the icon. It is a map service. Most of the documentation I have ...
1
vote
1answer
586 views

Populating a Dojox Grid

The problem I am having is getting my grid to fill when I run my select command. It sees the number of features and creates the correct number of cells in my grid but that is about it. It should ...
3
votes
1answer
488 views

Tutorial for publishing and consuming toolbox using ArcGIS Server 10.1

Is there a simple tutorial for publishing and consuming toolbox using ArcGIS Server 10.1. In 10 I can just right click and publish my tools but in 10.1, things seems to change a lot. May I know if ...
0
votes
1answer
75 views

Need help in Geo-RSS

I am new to GeoRSS (& RSS also) and I have created small sample which displaying latest earthquake on map. According to GeoRSS definition/concept, it is showing the feeds across the world using ...
0
votes
0answers
25 views

What is a simple way to create a popup table on map

Using arcgis javascript, is there a way to create a popup table after i perform some processing? Basically my user will select an extend and all address that fall within the extend will be shown.
0
votes
2answers
233 views

Identify task: Input polygon into IdentifyParameters

I wish to find all the features within a polygon/circle drawn by my user. May I know if I should use IdentifyTask https://developers.arcgis.com/en/javascript/jsapi/identifytask.html Or is there a ...
0
votes
1answer
53 views

How to select a polygon feature on mapservice?

I manage to publish a mapservice with lots of polygon. I wish to select a polygon and see its attributes. May I know how to I perform that with javascript API? There doesn't seems to be a straight ...
1
vote
2answers
343 views

JS API WebApp Zoom Problem in IE8

I implemented a zoom to feature extent function in my code, it works fine in new FireFox, Chrome, and IE10, but the tester's are having troubles with it in IE8. I noticed that all the data shows up on ...
2
votes
4answers
431 views

ArcGIS JSAPI draw toolbar tooltips not displayed in IE10

I am experiencing an issue where the draw toolbar tooltips are not displayed in Internet Explorer 10 when using the ArcGIS Javascript API. Try the following example in Internet Explorer 10 and ...
2
votes
3answers
3k views

CORS for XHR in IE10

I am getting these errors when someone attempts to open my app in IE. I get a popup asking to Allow Blocked Content, and when this is clicked everything works fine. Is there anyway I can go about ...
1
vote
1answer
393 views

ESRI World Light Gray Base Map JavaScript - Prevent zoom out no more than the full extent

It is my first attempt to use JavaScript and the ESRI products. I am using the World Light Gray Base map for my first web GIS application. I have a question about the map full extent method. I would ...
0
votes
1answer
79 views

GCS_WGS_1984 Map in Esri Javascript

I created a dynamic map service in Arcmap and published to my server. The spatial reference used: GCS_WGS_1984. I used the javascript without basemap to display in a html. I cannot do a ...
0
votes
1answer
342 views

ArcGIS Javascript example for geometry services?

I have a client that wishes to show him all the geometry services example in Javascript API http://help.arcgis.com/EN/ARCGISSERVER/10.0/APIS/REST/geometryserver.html ... I'm new to Javascript and ...
0
votes
2answers
383 views

Zoom to Results on Map

I made a web app that displays delivery routes associated with a user-input zip code. My question is, how can I get the map to zoom to the results? Here is my code. Im thinking of some sort of ...
1
vote
1answer
310 views

ArcGIS JavaScript API filter raster dataset

I have around 1000 rasters (b&w tiffs) and most of them overlay each other. At this moment, I'm holding them in mosaic dataset and I want them to be displayed in my javascript webapp. I am able to ...
0
votes
1answer
505 views

ArcGIS JS API Legend Dijit not refreshing correctly

I have a web application built with v3.5 of the JS API. I have some Jquery functionality that changes the map being built based on user input. My problem is that I can't get the legend to stay in sync ...
3
votes
1answer
128 views

Making Geoprocessing Service results table sortable using ArcGIS API for JavaScript?

Im aware a sort() function exists, just not sure where it should be placed in my code. I have a function that draws routes on the map and i'm getting my results that are in my table from those routes. ...
1
vote
1answer
128 views

ArcGIS API For Javascript - Custom DynamicMapServiceLayer Image Being Distorted In Map

I am having some trouble with a custom DynamicMapServiceLayer that I hope someone can either help me out with, or explain what is happening... On the application I am currently working on, there is a ...
5
votes
1answer
439 views

ESRI JS API, how to disable panning with the numeric keypad?

We have a web-based mapping application that uses the ESRI JS API. We would like to disable panning with the numeric keypad. There is a method in the API, esri.Map.disableKeyboardNavigation(), that ...
1
vote
2answers
415 views

ESRI JS API - How to get event object from Draw Toolbar onDrawEnd

I am using the Draw Toolbar in the Esri Javascript API v3.4 and connecting to the onDrawEnd event using aspect.after(drawingToolbar, "onDrawEnd", drawEndHandleFunction, true); I am using the Draw ...
0
votes
1answer
1k views

Problem with loading ArcGIS Javascript API sample locally

I'm new to the ArcGIS Javascript API and I'm trying to set up a local development environment for a web application. I'm having trouble with getting on of the example scripts provided by ESRI to load ...
1
vote
1answer
284 views

How to create a drop-down list of geoprocessing tasks?

I need to construct a drop down menu with each choice enabling a different geoprocessing task to run over my script. <select id="myList" onchange="environment()"> ...
4
votes
1answer
227 views

about token based authentication security

I am reading the authenticated services with token. I understand that a user have to get a token to using arcgis services. Example: https://domain.com/arcgis/rest/services/myMap/MapServer is my ...
0
votes
1answer
63 views

Reference Error: selectZIP is not defined

In Firebug I keep getting this error when I try to click a button I made. <button type="button" onclick="selectZIP()">Execute</button> I declared a function called selectZIP in a .js ...
7
votes
2answers
946 views

How to use the ESRI JS API to map SQL Server Spatial Types without ArcGIS Server

I have heard of people using the ESRI Javascript API to create webmaps with spatial data from SQL Server or other RDBMS's. From what I can tell, they are not using ArcGIS Server as a middleware. In ...
3
votes
2answers
2k views

How do I get that polygon from Javascript ArcGIS API?

I would like to have a user draw a Polygon (or Line) onto a web map with the Javascript ArcGIS API drawing tools. For the life of me I can't figure out how to pull that polygon from the client and get ...
2
votes
1answer
218 views

Executing GP Task for JavaScript API

I recently started using JavaScript API in attempt to construct a web app. After taking a recent ESRI online course, I thought I had some base knowledge on how to do this. This geoprocessing service ...
2
votes
1answer
140 views

Add button to map

I know this is a a stupid and direct question. How do I add a button to a normal map? Example: http://developers.arcgis.com/en/javascript/samples/map_simple/ I'm finding a way to make a button ...
2
votes
1answer
131 views

Web browser capacity to display maximum records on Map using ArcGIS JSAPI 3.3/3.4

I have created ArcGIS JSAPI application in which I am displaying almost 50 thousand records at specific point. As usual, my browser hangs (until 30 thousand its showing but after 30 thousand it ...
1
vote
1answer
453 views

Conversion problems from mappoint to screenpoint using ArcGis Javascript API

I am getting a very strange problem when converting from mappoint to screenpoint. I am using the following code: var sp = esri.geometry.ScreenPoint(512, 151); mp = map.toMap(screenPoint); ...