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

learn more… | top users | synonyms

1
vote
0answers
20 views

Using PrintTask a Map with Graphics symbols not solid

I have a Web map using JavaScript API. One of the layers is a Graphics Layer that I add graphics to. The line symbol style for these graphics I add is STYLE_SHORTDOT. When I have a graphics drawn ...
1
vote
1answer
87 views

Polyline not showing on esri maps

I have list of points. I am pushing these points to an array. Now when i draw polyline through esri map graphics.add then its not shwoing anything. My code for drawing polyline on esri map is as ...
2
votes
2answers
107 views

Add a legend in an ArcGIS Javascript API

I am quite new to Javascript. I have made a html script that includes services I published to ArcGIS for server. It all does exactly what I want and I made it by copying working scripts together and ...
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
0answers
33 views

ESRI JavaScript HeatmapRenderer class and Print widget

I’m working on an application using ESRI’s HeatMapRenderer class from the JavaScript API. The issue that I am running into is that the Print widget fails if the heat map renderer layer is on the map. ...
1
vote
2answers
66 views

FeatureLayer fullExtent is being constricted by Dojo ContentPane side panel

I have an ArcGIS JavaScript application which displays one single FeatureLayer on a map which is in a Dojo BorderContainer/ContentPane template similar to the one shown here. I am trying to ...
1
vote
2answers
3k views

Converting from British National Grid (27700) to WGS84 (4326) to Web Mercator (102100)

I'm developing a web application that uses ArcGIS to display a map using JavaScript. We are holding all our data in MS SQL Server 2008 as Easting/Northing against the British National Grid. ...
1
vote
0answers
103 views

ESRI JavaScript API Web Application and SQL Queries in ASP.NET?

My workflow (and security restrictions) for a new html/javascript based web application is making me think that I could program an ASP.NET application, inside which I load the 'map' and the 'legends' ...
3
votes
3answers
186 views

Make InfoTemplate moveable but still highlight attributes

I’m using the esri/InfoTemplate in the Javascript API to identify features. However, it gets anchored to the mouse click and cannot be moved around. Based on this answer I used dojo/dnd/Moveable to ...
3
votes
1answer
158 views

Show an ArcGIS InfoWindow on Map Init

I have created a map with a simple marker at a specified location but I cannot figure out how to have an infowindow attached to the position open automatically on page load. This is my init function: ...
5
votes
2answers
350 views

How to run a python script on the server, returning the results to the client

Here's the end result I'm trying for: the user clicks on a feature on an ArcGIS Server JS map a Python script is triggered on the server the Python script uses an attribute from the feature (eg its ...
3
votes
1answer
937 views

Interacting with the Map after selecting a button/tool

I am using the ESRI Javascript API 2.0 and Dojo dijits. Does anyone know how to wire up a dojo button (or toggle button) in a toolbar to a mouse click event on the map? I want the user to have to ...
2
votes
1answer
2k views

ArcGIS JavaScript API layer order?

I have the below code which ensures a layer is valid before adding it to the map. mapConfig.Services is an array of service url's and loadMapService is a simple function which returns an ESRI layer. ...
2
votes
1answer
410 views

Positioning esri.symbol.PictureMarkerSymbol at the center when clicked?

I use ArcGis Javascript api 3.2. I have a symbol: candidateSymbol=new esri.symbol.PictureMarkerSymbol('image/PushPin.png', 30, 30); I want to center it when it is being clicked. PS: There will be ...
5
votes
2answers
1k views

Moveable 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 ...
0
votes
1answer
61 views

What would cause Dojo in later versions of ArcGIS Javascript (v3.12) from working in Internet Explorer?

On my testing machine I experience no problems with using http://developers.arcgis.com/javascript/samples/featuretable/ but if I run the same example on my client's machine I get "'require' is ...
1
vote
0answers
17 views

Narrow viewport => not showing map in browser?

I have a webapplication using the arcgis javascript API and it works great. Unfortunately I ran into a small peculiarity: If the viewport for the map is smaller than 930 pixels it refuses to load my ...
1
vote
1answer
47 views

Feature Layers fail every second time the page loads, with “Error: Unable to complete operation”

If I create a very simple map based on the Feature Layer On Demand sample, and change the URL to my own feature layer, the map consistently fails every second time: Error: Unable to complete ...
1
vote
3answers
82 views

How to work on map created by using arcgisUtils.createMap

arcgisUtils.createMap(id,"map").then(function(response){ //update the app dom.byId("title").innerHTML = response.itemInfo.item.title; dom.byId("subtitle").innerHTML = ...
24
votes
6answers
5k views

What are differences between ArcGIS Web APIs (JavaScript/WPF/Silverlight/Flex)?

Esri currently offers 3 different web API's that can be freely downloaded. Are they all equal? If not, what are the relative strengths/weaknesses of each of these API's?
2
votes
0answers
30 views

How to use items param in TemplatePicker to draw with?

I have been checking the JS API of TemplatePicker and it says to either use featureLayers or items in the params object: https://developers.arcgis.com/javascript/jsapi/templatepicker-amd.html I ...
5
votes
1answer
566 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 ...
0
votes
1answer
17 views

Tile Loaded Event in ARC Gis

I wanted to know tile loaded event in ARCGIS. As soon as tile is loaded this event should be called which give me tile specific information like tiles coordinates etc.
11
votes
5answers
4k views

Looking for a Table of Contents sample for the ArcGIS Server JavaScript API

Where can I find an example of a Table of Contents control to plug into the ArcGIS Server JavaScript API 2.3? Ideally it should support feature/dynamic/tiled layers; show symbology; and allow grouped ...
4
votes
1answer
4k views
4
votes
2answers
2k views

ArcGIS Javascript API - Using Proxy For Specific Layers

With ESRI's Javascript API - is it possible to make only certain layers go through the proxy? I know this is possible in the Flex API via proxyUrl property of applicable layers. Right now i have this ...
2
votes
1answer
932 views

Is ArcGIS API for JavaScript compatible with Internet Explorer 7 and 8?

I've developed a web map using ArcGIS API for JavaScrip version 3.8 and its not compatible with IE 7 or 8. I've advised the people who have reported this to update their version of IE but, if it ...
1
vote
1answer
70 views

Arcgis javascript tutorials help

I'm going through some of the javascript tutorials - build your first application. It works fine when I create an html file that holds the style and script tags but when I separate the files out to ...
0
votes
1answer
491 views

How to avoid Esri secure layer identity manager popup?

I am new to Esri Identity manager, I am creating a secure layer service using identity manager, I have to avoid the secure layer login popup.
1
vote
0answers
36 views

Plot Multiple Series from Related Table in One Chart

I'm trying to figure out how to plot multiple line series/charts in one chart in a popup window from attributes in a related table using the Javascript API. It seems like the only way to create a ...
0
votes
1answer
158 views

ArcGIS API V 3.5 Navigation toolbar (zoomToPrevExtent) not working

I am just getting started with learning Dojo and ArcGIS API so please bear with me. I have an existing prototype of an application that use ArcGIS version 3.5. I am looking at the navigation toolbar ...
0
votes
1answer
88 views

Adding feature layer to ArcGIS Online from REST API?

I need to add a feature layer to ArcGIS Online account from code. i have created a developer account where if i want to create a feature layer i have to upload a CSV file and it makes the feature ...
1
vote
0answers
24 views

Disabling TextSymbol Scaling on Zoom in/out (ESRI JavaScript API)

I am looking for a way to disable text scaling when a user zooms in/out on a map with a TextSymbol on it. It this possible?
1
vote
1answer
40 views

Javascript App works fine…and then it doesn't

This question probably won't fit into the Stack Exchange guidelines because of a number of factors, so bare with me. I have built a GIS web app at http://matthewiannowlin.com/planning/thesis. I used ...
1
vote
1answer
36 views

ESRI Javascript API pan parameters

Using the ESRI javasript API, is there a way to set the distance the map will move when panning? When I fire the map.panUp(), for example, it pans, but about twice as far as I would like it to.
1
vote
1answer
175 views

Arcgis Javascript API Editor Widget gives a different result when loading through AMD

Currently i'm working on a Arcgis based drawing tool. What we've done so far is create a system where we can easily create local feauture layers and edit those with the standard Editor Widget. Drawing ...
0
votes
1answer
60 views

Network analyst scaled cost barriers in ArcGIS JS API or REST API

I am developping a GIS web application using the ArcGIS JS API. I know that scaled cost barriers are available in ArcMap, but I am wondering if they exist in the JS API or in the REST API and if not I ...
1
vote
1answer
53 views

ArcGIS JS api - how to hide attributes editor when new graphic is added

I use ArcGIS Javascript api in 3.12 version. I have followed this sample in order to display editing toolbar plus template picker. It works pretty good. However I would like to hide popup window with ...
4
votes
1answer
4k views

How to use ArcGIS JavaScript API's map.centerAndZoom()?

I'm trying to get the map to move and zoom in to a point when a function is executed. Point gets selected, but without zoom. Interestingly when I zoom in to a random location and then execute the ...
2
votes
1answer
339 views

How to generate thumbnails from shape file and display them on my website?

I tried to generate thumbnails from shape file and display them on my website(using jsp).I had been read this and this question .Very similarity questions ,but I know nothing about python... Is ...
0
votes
1answer
263 views

Customize ESRI Template Picker Widget

I am using the template picker from the ESRI JS API. As far as I see it, the look and feel of the picker, cannot be customized very much at all. The rows and columns can be controlled, and in the ...
2
votes
1answer
694 views

Does the ArcGIS Javascript API support multiple map service urls per layer?

I've called tilecache from OpenLayers in the same manner as the example below. Is it possible to do something similar with the ArcGIS WMS map layer? var urlArray = ...
0
votes
1answer
40 views

How to edit the layers defined when initializing a Editor?

I am having some problems with editing the Editor object. We have multiple layers that are editable by the user, and the user can enable and disable layers. When a layer is disable/enabled the Editor ...
1
vote
1answer
78 views

Feature Layer Vs Query Task

I'm using ArcGIS Javascript API, and I need to query the GIS and show the results on the map. Currently I have used a Query Task by specifying the layer, the "where" statement, graphic symbol, ...
0
votes
1answer
58 views

Add curved features to map with the ArcGIS JS API

I've tried without much success to add a curved line feature to the ArcGIS JavaScript map. I created a polygon with a curved edge in ArcMap: However, when I load this same feature in the web API, ...
4
votes
2answers
387 views

How to disable double-click zoom in Arcgis Javascript API

I am using ArcGIS java script API for creating map. I am trying to disable the double-click zoom in the map. Here is link of my map: http://urbanaccessregulations.eu/mindcrew/mobile-popup.html I used ...
0
votes
2answers
56 views

How to download a GPdatafile from arcgis server

I want to download an GPdataFile from the GIS server. In fact, I am using the PrintTask Service, which generates my map instance in various formats. I have the url of the specific file on the sever, ...
0
votes
2answers
36 views

Using LocateButton with Tracking enabled

I have been using esri's LocateButton on a map for almost a year now and it works well. I'm now trying to enable the Tracking option to create a moving map for staff and I can't seem to get it working ...
2
votes
1answer
137 views

Loading Simple ESRI html JavaScript in Internet Explorer 11?

Is there any particular reason this Simple ESRI html javascript wont load in IE11? Chrome works fine <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" ...
2
votes
1answer
46 views

Takes Two Clicks to Select New Feature

I'm writing a web app using ESRI's Javascript API and a map I created in ArcMap 10.1 hosted on ArcGIS online (Feature Service, not WebMap). I have written the code necessary to print attributes in a ...