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

learn more… | top users | synonyms

3
votes
2answers
3k views

Changing infoWindow style in ArcGIS JavaScript API (v3.2)

See below a screenshot of the infoWindow's appearance in my ArcGIS JavaScript API (v3.2) application. As you can see the transparent title bar with the white buttons doesn't work too well against a ...
3
votes
1answer
200 views

is there an API-level error handler in the ArcGIS Server JS API?

I'm seeing an error message in FireBug: Error: Internal kml parser error.http://serverapi.arcgisonline.com/js.../?v=3.2compact Line 34 I'm not worried about fixing this error for the moment - I'd ...
0
votes
1answer
517 views

how do i load map service from using JavaScript API? [closed]

I created a Map Service in arc catalog. Now How i can load this map with javascript api ? I have this sample : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" ...
2
votes
1answer
398 views

Create dynamically multiple layers in ArcGIS Server 10.1

I am using ArcGIS Server 10.1 and Desktop 10.1 software. I am publishing table from sqlserver to the ArcGIS server, that table (from sqlserver) is updating hourly, and the types are increasing. I ...
2
votes
1answer
553 views

ArcGIS JS Api: Click on feature, create a particular new map?

I have a polygon layer visible from scales 0 to 8 (bigger to smaller). The thing is that I would like to click on a SINGLE feature of this polygon layer and then going to a different map (but in same ...
1
vote
1answer
215 views

Represent joined data in Info window (ArcGIS JSAPI 3.1)

Currently I am facing following problem I have joined the SQL Server data base to my shape files (In ArcGIS Desktop using “join” option)and published on ArcGIS Server and working on REST service in ...
3
votes
3answers
1k views

How to count point features in polygon using ArcGIS API for JavaScript?

I have published in my ArcGIS Server two layers: A polygon one and a point feature one. Points are contained in polygons. I would like to know how to count the number of points belonging/contained to ...
1
vote
1answer
1k views

is it possible to obtain layerInfo from the Layer's URL

I am trying to fetch the names of the layers in the MapService, so that I can populate them in the dijit.form.select. I am able to get the layerInfo when the ArcGISDynamicMapServiceLayer is added to ...
2
votes
1answer
615 views

Displaying ArcGIS Server dates without javascript localized date offset?

Esri recommends that databases are in UTC time. And if I’ve got this right, unless you set a time zone in your layer, you are entering a date in a date field as UTC. Mostly this is fine.You understand ...
0
votes
1answer
396 views

Integrating ArcGIS Online Web map to my Java script file(test.html)

Is it possible to integrate ArcGIS Online web map to my java script API?? I check the samples but in which only web map is added..I have few layers in .html file (Like feature,dynamic etc. and I want ...
3
votes
1answer
294 views

getResultImageLayer is not working

I am trying to obtain the shapefile output that I am receiving from the gpTool, which is hosted on the ArcServer, and placing it on the Map using, gp.getResultImageLayer(jobInfo.jobId,"final_shp", ...
2
votes
1answer
1k views

Customizing the time slider in ArcGIS Java Script API 3.1

I want to customize the time slider. Currently I am using "esriTimeUnitsMonths" in which I am getting only months not the year (Please check the image) I want to put month name +year ex. Jan 09 Feb ...
1
vote
1answer
2k views

Adding layers using ArcGISDynamicMapServiceLayer

I am right now adding individual layers using FeatureLayer but it takes quite some time to load as the map is for US Counties (3076 count). I tried to load it using ArcGISDynamicMapServiceLayer but I ...
2
votes
2answers
557 views

Insert a loading message into DataGrid

I'd like to show a loading message (Loading...) that shows while the datagrid is being populated. It would show when the search button is clicked and disappear when the grid results have populated. ...
2
votes
2answers
935 views

Load One Layer from ArcGIS Server MapServer

I am pretty new to ArcGIS Server and am building a map applications using the Javascript API. I can easily load the map layer below by adding it as a ArcGISDynamicMapServiceLayer ...
1
vote
1answer
234 views

Geodata Service in ArcGIS Java script api (3.1)

Can I use Geodata service in ArcGIS JavaScript API 3.1 ??? Background : I have simple map service and the all attribute data is stored in Sql Server database. I want to perform query operation on map ...
4
votes
2answers
3k views

Compute Angle of line in conventional bearing using ArcGIS API for JavaScript?

I am trying to compute angle between two lines (line segment) using ESRI (ArcGIS, JS) in conventional bearing (Eg: N29'E) I am using Add Toolbar to draw a line segment where point A is a fixed point ...
4
votes
2answers
1k views

ArcGIS JS API Edit Toolbar permits MOVE but not EDIT_VERTICES or ROTATE - JavaScript error thrown

I'm putting together an ArcGIS (v10.1) JS API (v3.2) application and I've hit a snag in drawing / editing functionality. Users can draw a new geometry or edit an existing one. I'm using the draw and ...
2
votes
2answers
2k views

Customize the legend elements

I want to customize the legend box elements .Please check the screenshot (I want to remove the highlighted information ...its the map service name and symbol in ArcMap) How its possible? Is there any ...
1
vote
1answer
1k views

Unable to removeLayers from Map

I was trying to create a FeatureLayer from the features returned from the ViewShed GP and I was successful at doing it. So when I click on the map, that featureSet is sent to the GP Tool and the ...
4
votes
2answers
1k views

ArcGIS JS Api: Getting information by location from multiple layers

I have two layers published in my ArcGIS Server 10.1 server. One is a polygon layer representing the World map by country and the other is a point layer depicting cities. Please, note that cities ...
2
votes
2answers
230 views

How to project US States in Transverse Mercator [duplicate]

Possible Duplicate: Layers having the same coordinate system should overlap, but they don’t. What’s wrong? I created two different MXDs, one for City of Tucson and another for US States. If ...
8
votes
3answers
1k views

Map Application Requires Refresh to Initialize

I tried this question over on StackOverflow but didn't get any answers. Hoping you all might be able to help. Creating a web mapping application in Javascript/Dojo: When I load the app in a browser ...
2
votes
1answer
1k views

ArcGIS Javascript: upgrade ComboBox to FIlteringSelect using ItemFileReadStore

I would like to upgrade a web app I am working on from v2.1 to v3.1 of the Javascript API (I have tried 3.2 but I am getting some very odd rending problems, so I'm settling with 3.1 for now...) One ...
1
vote
1answer
1k views

displaying scale of dyamic map service layer using ArcGIS JS API

In ArcGIS JS API, I would like to know and display the scale of a dynamic service layer by using the onExtentChange event, but the LOD argument is only valid for tile map services. Is there an ...
1
vote
1answer
945 views

ArcGIS JavaScript API layerDrawingOptions seem restricted to 1 option, and it doesn't have any effect

I have two problems with ArcGIS Server's (10.0) dynamic layers when calling Layer.setLayerDrawingOptions from v3.2 of the JavaScript API. 1) It doesn't work. I set the layerDrawingOptions array for a ...
1
vote
2answers
480 views

Enable FIND in ArcGIS Server 10.1

Trying to get a FindTask working via this sample and the only difference between my code and the samples that I can see is that the sample data has a find operation enabled. I can't find in my server ...
1
vote
1answer
821 views

create buffer around locator-derived point

I am trying to create a buffer around a point derived from a locator search, using this example: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm ..but I am getting no ...
0
votes
1answer
2k views

Feature Layer from JSON file

I would like to project my shapefile information on the maps. I converted my shapefile into a JSON file. How can use the Json file to create a featurecollection object in the ARCGIS Javascript API. ...
2
votes
1answer
518 views

Event for Selected Feature when Editing?

Are there Events in the ArcGIS JavaScript API that I can use to get the selected features being used by the attribute inspector and when features are added to the map? I am using the editor widget in ...
1
vote
1answer
478 views

open current selection's tab in tabbed infoWindow container: ArcGIS Javascript API

I am updating a webApp using ArcGIS Javscript API 2.1 I have an infoWindow with tabs which shows all of the features in my map. I built it based on this example: ...
0
votes
0answers
231 views

infoWindow does not open on initial page load (ArcGIS Javascript API)

I am working on a webapp using the ArcGIS Javascript API. I noticed that when I first load the map (currently living on a development server), the infoWindow does not open (when clicking on a ...
1
vote
1answer
440 views

load map parameters after opening new window

I am trying to open a new window from an existing window, which will contain a map with an extent derived from the original window. In other words, the user will zoom to an area in the original ...
1
vote
0answers
105 views

Esri ArcGIS plot point

I have created a java function to plot the points on the map, and I need to pass the x-y coordinates and the taskevent as the parameters. I would like to ask what should be the input parameter for ...
4
votes
2answers
2k views

“TypeError: Unable to draw graphic (geometry:null, symbol:null)” after adding tiled and feature layers

I'm seeing the following error when attempting to add a tiled and feature layer to the same map when using the ArcGIS Server JS API 3.1: TypeError: Unable to draw graphic (geometry:null, ...
0
votes
2answers
780 views

Toggle Visibility of Features in FeatureLayer

How to toggle the visibility of features in a feature-layer using check-boxes .I have grid containing check-boxes in a columns representing each feature in Feature-layer and so if I check off the ...
4
votes
2answers
1k views

Does the ArcGIS JavaScript API let me build / package my application using Dojo?

I'm currently getting to grips with the new (3.1) ArcGIS JavaScript API and how it bundles Dojo and relies on Dojo's Asynchronous Module Definition (AMD) approach. I'm familiar with AMD and recently ...
2
votes
1answer
390 views

Clustering Point for StatePlane WKID 2236

Does anyone have an example to point me in the right direction to utilize Clustering with the ESRI JS API working with a State Plane wkid: 2236? I want to provide a solution for an internal ...
5
votes
1answer
456 views

Unclear on proxy used for AJAX in Javascript

I do understand how the proxy helps in transferring the XMLHttpRequest between the ArcServer and the Server (IIS/Apache) but where I am confused is that the first time the Html Doc loads, doesn't the ...
2
votes
2answers
2k views

ArcGIS Javascript API - Refresh

The ArcGIS Javascript API has a nice refresh interface for ArcGISDynamicMapServiceLayer: var dynamicMapServiceLayer = new ...
6
votes
1answer
230 views

Is it possible to install ArcPy on a server for use in a geoprocessing web application?

I have a website on my intranet and would like to add some geoprocessing tools to it with Python. Many Users will not have Arc installed on their machines, so I think I need to have the scripts set ...
5
votes
1answer
563 views

ArcGIS Online without basemap

I am trying to create a Web App, using the ArcGIS Online feature of downloading the javascript code, with the map id being used for connecting to the ArcGIS Online. I was able to do that successfully ...
0
votes
2answers
4k views

Differences between ExtJS and Dojo Framework

I have been using OpenLayers and the ESRI's JavaScript API and found that both using different set of JavaScript libraries have some implications on the quality of application that they deliver. Dojo ...
1
vote
0answers
132 views

locator service to use with ArcGIS Javascript API v2.1

I am hoping to find a locator service that will locate by address or intersection, and that will work with version 2.1 of the ArcGIS Javascript API. I tried this locator given in the examples, which ...
3
votes
1answer
216 views

Dynamically rendering polygon, point, and line features

I have a Feature Collection consisting of features having id, color_code, etc as attributes. I have to render this feature with the color in the color_code attribute. Is this possible and please ...
1
vote
1answer
388 views

Query a polyline layer using arcGIS's Javascript API

I'm attempting to query a polyline layer using the ArcGIS Javascript API I all ready have a lot of experience doing this with Point layers. So I set my Polyline layer up the same way and stopped and ...
3
votes
2answers
331 views

Fundamental concepts of ESRI Javascript API

I am building a Web Application for the first time using the ESRI's Javascript API and wanted to know the basic fundamental concepts that I should keep in mind?
1
vote
2answers
815 views

How to get an ArcGISTiledMapServiceLayer + WMSTLayer based on same service to align?

The image below can be obtained by adding WorldTimeZone layers to the JSAPI map: wmtsLayer = new ...
1
vote
0answers
189 views

esri.dijit.popup custom layout

I'm looking for a way to customize the layout of popup. What is asket to me is to change the defined labels of navigation inserting a custom string and move and change the icons to navigate the first ...
1
vote
1answer
933 views

Overlaping graphics not visible in featureLayer

I have constructed featureCollection from Json and feature collection has 44 features. I have given this feature collection as input to the Featurelayer which is showing only 32 graphics objects of ...