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

learn more… | top users | synonyms

7
votes
2answers
767 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
1k 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
174 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
118 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
111 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
345 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); ...
1
vote
1answer
172 views

Can I use a Esri geocoding service with my custom basemap?

I am looking at the JavaScript samples in here. I am searching some street by search bar. But not zooming to street, it only viewing city. I have a custom tiled map service layer in my server. Can I ...
1
vote
1answer
219 views

Hiding Rest Service Url in Javascript

While users using my application, they can view resource from browser and see my arcgis rest service URLs. So If I use token based security, security token can view. Can I hide this from users?
1
vote
0answers
239 views

How can I display popup when graphic object is added in map using Arcgis Javascript

We have to display callout popup for each graphic object that are available on map. i.e if point is created on map, it should be associated with callout popup which will display information about that ...
1
vote
1answer
161 views

Accessing ArcGIS server based services outside of firewall

I would like to know the options for making ArcGIS based map services (ArcGIS Server 10) available to users who are out of our firewall, mostly field crews and users with web access in the field. ...
3
votes
2answers
492 views

ArcGIS local server using javascript api still does http gets to services.arcgisonline.com (internet)

We have setup a local server hosting the ArcGIS server software (10.1). We installed the ArcGIS JavaScript API on the same local server. Our goal is to supply maps when the client has no internet ...
0
votes
1answer
928 views

Toggling layers with arcgis javascript api 3.5

I am using the two reference samples in the api, toggle and dynamic toggle. I tried to use the method in the basic toggle but the setvisbiblelayers doesn't seem to like my kml layers and I get a ...
2
votes
1answer
589 views

About proxy in javascript api

I am new about Arcgis javascript API. While I am doing a sample application, I confused. I am analyzing this sample application. This application is using the ...
5
votes
1answer
420 views

How to programmatically change the timeExtent of a Map & update the timeSlider?

I am developing with the ArcGIS JavaScript web API and ArcGIS server 10.0. I have a time-aware layer in in my map, and also a timeslider. The full time extent of the map is a year, with data every ...
1
vote
0answers
71 views

Changing kml marker in esri javascript api

I can load my kml file but I want to be able to define a marker for my points. I can't find anywhere in the api which allows me to define the marker. How can you define your own marker using a kml ...
3
votes
2answers
921 views

Loading KML file with ESRI javascript API

I am trying to load a kml file using the ESRI javascript API v. 3.5. What I did with v. 2.6 no longer works. How do you add KML data with the latest esri javascript api? I am testing on my local ...
0
votes
1answer
180 views

Knowing the polygon id and getting the extent [duplicate]

I have a text box where I have the polygon Id like, "id_of_the_polygon_12345". Is it possible to get its extent and zoom onto it? I have figured out how to do it upon clicking on the map. But could ...
2
votes
1answer
190 views

What is the best method to publish a large amount of data on ArcGIS Server?

I am publishing 2 million records using ArcGIS Server. We are using ArcGIS for Desktop 10.1 and ArcGIS for Server 10.1. We have district wise data for India (like State----District etc) all the data ...
2
votes
1answer
133 views

Arcgis javascript API & highcharts libraries

I'm working with jsviewer and JSAPI V:2.8.I try to display a query result in a chart. what I want to do is :first, I want to query on my table and once I got the result liste I have a button that ...
0
votes
2answers
92 views

Zooming into a particular polygon

I am getting the polygon id by doing identifyParams.geometry = evt.mapPoint; identifyParams.mapExtent = map.extent; identifyTask.execute(identifyParams, function(result) { var i; var ...
2
votes
0answers
112 views

Jsonp Callback error

Recently we have started migrating application from Javascript API 3.1 to 3.5 and we are finding this jsonp error coming sometimes during adding the layer.When we add the layer we also zoom to the ...
1
vote
1answer
313 views

ArcGIS Server 9.3 - Javascript API - Selecting Feature Problem

I have ArcGIS Server 9.3, and I'm trying to use the JS API. I successfully displayed the map, and I can locate and zoom to a feature based on ParcelID value. The problem is I can't highlight this ...
3
votes
2answers
923 views

How to share a hosted feature service with an application on ArcGIS Online?

According to the ESRI REST API documentation on authentication, a registered application can log in to AGOL via an App ID and App Secret and will then have access to the data that has been shared with ...
1
vote
2answers
607 views

ArcGIS javascript API Extent formats

I am trying to understand how the extent works in the javascript api. I create an extent like the following: var beginExt = new esri.geometry.Extent(-159.6716766, 19.520, -67.843, 64.8348, new ...
0
votes
1answer
259 views

Geoprocessing tool not executing when Map's SpatialReference is Web Mercartor

I am facing a strange issue when trying to execute GP service when my map's spatial-reference is Web Mercator. I appreciate all help. I have a JavaScript API application. Initially I only had my map ...
1
vote
0answers
174 views

Unable to reorder after layers from multiple ArcGISDynamicMapServiceLayers

I used the ArcGIS Javascript layer reordering sample as template. Initially I have 4 layers added to the map by ArcGISDynamicMapServiceLayer where reordering was working. Then, instead of using add ...
0
votes
2answers
405 views

ArcGIS JS API: How to get the lat/long of the viewport vertices? [duplicate]

I would like to get the min lat, min long, max lat, max long of my viewport in ArcGIS JS API. Is this possible?
1
vote
0answers
187 views

Point Within, Query in a buffer polygon in WMS like in ArcGIS ESRI

I need to do a query to filter the result inside a polygon or geometry, like this: http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/query_buffer.html But, i need to do this in a opengeo ...
0
votes
2answers
668 views

ArcGIS javascript api - layer reordering - how to add new layers?

I am learning ArcGIS javascript API and wanted to make a reordering panel for my webapp. I looked through the ArcGIS sample. but I'm stuck at addLake() function. If I'm understand the sample ...
0
votes
1answer
247 views

How do I initialize the ArcGIS proxy via server side .NET code (C#)?

I know how to do this via JavaScript code: esri.config.defaults.io.proxyUrl = "../proxy.ashx"; But, how do I do this in .NET? I am very new to the GIS space.
0
votes
1answer
44 views

Arcgis Server name include domain

When I create a web app using the template it points to cos-t420:8399/arcgisoutput but I need it to be cos-t420.web.com.sg:8399/arcgisoutput How can it be done? am using the java version.
1
vote
1answer
87 views

Problems editing geometry in JS script using a find task in a web application

I've generated a javascript code to my app based on the sample "Show find task results in a DataGrid" of ArcGIS API for JavaScript and I am using editable layers (WFS-T) and it works, but when after ...
4
votes
1answer
770 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
1k 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
134 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
269 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
435 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 ...
1
vote
1answer
392 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
522 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
160 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
147 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
263 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
126 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
247 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
292 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
292 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
797 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
89 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
296 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 ...