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

learn more… | top users | synonyms

1
vote
2answers
32 views

ArcGIS Javascript API - How to define spatial reference for WMS layer?

I'm just starting with the ArcGIS Javascript API, and I'm having some issues adding layers from my geoserver to my basic map application. I started with the WMS resource info sample from the ESRI ...
0
votes
0answers
18 views

ArcGIS JavaScript API Proxy page

I'm developing a Web Application that is using the ArcGIS Javascript API. When adding a Feature Layer I'm using the setDefinitionExpression to limit the features that are returned. The expression ...
0
votes
0answers
13 views

browser crashes when loading legends at startup

After much perusing for solutions, I've decided to post my problem as a question. I'm trying to load the legends that are built into the ArcGIS Service Layers I'm using. I'm loading about 7 Dynamic ...
0
votes
1answer
7 views

Making Operational Layer from WebTiledLayer and MapImage?

I'm attempting to use the CMV and put a WebTiled layer in as an operational layer. I've been able to get the layer into the basemap without issue, but can't get sort it out for the Operational Layer. ...
1
vote
1answer
31 views

Can't retrieve data from featureLayer

I can't get any value from featurelayer. This is the code: function testarvin1() { require([ "esri/Map", "esri/layers/FeatureLayer"], function (FeatureLayer) { ...
0
votes
1answer
23 views

Change Header/Background Color For Attribute Popup Window (JavaScript Web AppBuilder)

After creating a web app and downloading it using the JavaScript Web AppBuilder for ArcGIS (Developer Edition), I was able to change the site header and widget popup color schemes via an existing ...
0
votes
0answers
14 views

Move Zoom In & Out Button in ArcGIS JavaScript Web AppBuilder (Developer Edition Download)

After creating a web app in ArcGIS Online, I downloaded the app using the Web AppBuilder for ArcGIS (Developer Edition). Several folders, .json, .html, .js, and .css files are contained within the ...
2
votes
0answers
25 views

developing a Talking Map

I need to develop a prototype of a web application that speaks : When you click on a city (point) it says the city name (Audio files are ready) I want to use ArcGIS Javascript API. do you have any ...
0
votes
1answer
19 views

How to get the Shape.STLength() value from JSON

I'm trying to get the Shape.STLength() value from a feature returned from a query. something like var myLength = returnedJSON.features[0].attributes.Shape.STLength(); "Shape.STLength()" is ...
0
votes
1answer
21 views

ArcGIS JavaScript API 3.13 error with Measurement setTool() function

When upgrading to 3.13 the following code to disable the measurement tool returns an error: measurement.setTool("distance", false); Here is the error: Uncaught TypeError: Cannot read property ...
0
votes
1answer
19 views

Autopopulated combobox value passed to definition query - results won't display on map

I have a dojo combobox that is populated with unique values. The user chooses a value, and the value is passed to a definition query, and the results displayed on the map. I can't get the results to ...
1
vote
2answers
56 views

ArcGIS JS API: parse GP Service messages

I am working on a JS app where the user draws a polygon and then a python-based GP Service task queries the parcels and generates mailing labels. The GP task works great, but once the PDF is created ...
0
votes
1answer
14 views

ArcGIS JavaScript API - measurement widget doesn't work with other widgets

I am having an issue with the Measurement-Widget in combination to other widgets with the newest ArcGIS API for JavaScript (3.13). With the sandbox, i was able to create a Map which includes ...
0
votes
0answers
20 views

How to create a ClassBreakRenderer without data coming from table?

I´m trying to get a classbreakrenderer without a table or from Feature Layer. I read the question : How to create a ClassBreakRenderer without data coming from Feature Layer? I´m not able to ...
0
votes
0answers
20 views

How to force the urlUtils proxy perform only POST requests

How can I force the urlUtils to use only POST requests. I a using it as shown in the following block described also in the how to use proxy section, and I have noticed that some times (maybe when ...
1
vote
1answer
23 views

10.3 js callback appended to query call not working

I have two 10.3 ags servers that i thought were the same. But on one i can send this request to the rest api endpoint and it does not work: ...
0
votes
1answer
29 views

Arcgis JS Api mapping mashup how?

I have gis data which i can access over Arcgis Rest with Arcgis js api and i have non-gis data which i get from different db.I want to mashup this two like in this link ...
0
votes
0answers
48 views

How to generate exportable report from web map (ArcGIS JavaScript API)

I would like to build a web map using ArcGIS JavaScript API containing 1 layer of polygons & 1+ layers of points (or lines) contained within said polygons. I want this to be enabled with some sort ...
0
votes
1answer
17 views

Displaying geotagged photos on arcgis javascript web application

I have a web application which displays tanks mapservice.I want to display geotagged photos in infotemplate.
0
votes
1answer
29 views

ArcGIS API for JavaScript Web Optimizer: 'Queued' forever

Although ArcGIS web app optimizer behind the scenes uses the same dojo build system, it runs at least a twice slower. But the most unpleasant thing is it puts a building task in a queue with the “Your ...
0
votes
0answers
17 views

Labels that don't overrun polygon features using ArcGIS API for JavaScript

I'm creating my first web map using the ArcGIS API for JavaScript. I have a working polygon FeatureLayer and the associated LabelLayer, but the resulting labels are cluttered and detract from the ...
0
votes
0answers
31 views

Dojo TypeError for ArcGIS Javascript API App

I recently updated the app to the 3.13 framework, and now am getting the following error when I load my application. Uncaught TypeError: Cannot read property 'missingMessage' of undefined Chrome ...
0
votes
1answer
26 views

Printing ArcMap layouts from ArcGIS Server Services (10.1+)

I've prepared a map with multiple data frames using ArcMap and setup my desired layout. I published the map onto the ArcGIS Server and setup a printing service which uses the custom layout of the ...
0
votes
1answer
27 views

ArcGIS Javascript Api - QueryTask and setDefinitionExpression

I've written some code to query a Feature Layer using either a QueryTask or using the setDefinitionExpression when adding the layer. For testing I am using the ASP.Net Development Server. I've ...
1
vote
0answers
11 views

ESRI addProxyRule causing issues with back button functionality in Firefox

Currently, i'm using the addProxyRule to set up the proxy to be used when calling arcgis. I'm then taking that result and generating a url to take the user to a different part of our site pertaining ...
1
vote
2answers
45 views

Checkbox becomes unchecked when map pans

I have a table of contents that is used to toggle visibility of layers. I also have a dialog box that populates with the visible layers so that the user can pick from the visible layers what layer ...
1
vote
0answers
27 views

Print two different maps object in one layout template in Arcgis javascript api

I'm trying to publish a print service that accepts two maps objects, sent by javascript and print them, I found PrintTask() wedjit, something like printTask.map=map, my goal is to try to send two map, ...
1
vote
1answer
31 views

Passing Arguments Between Widgets with Mixedin Templates - CMV Builder

I am attempting to manipulate a custom widget (Table) I built. I first initialize the widget in the viewer.js class and attach it to the 'sidebarBottom' pane in the viewer. Since the 'Find' widget is ...
2
votes
1answer
30 views

Toggle between custom basemaps (different projections/tile structures)

Wondering if it is possible to toggle between two basemaps with that have a different wkid and tile structure? I have tried with a basemap gallery and a basemap toggle with no luck. We have one ...
1
vote
1answer
43 views

Legend ArcGIS Javascript does not recognize Legend from ArcGIS for server 10.2.2

I have created maps in ArcGIS for desktop and published them to ArcGIS for server 10.2.2. Because of performance issues I have created a group layer of the same map with different levels of details. ...
1
vote
2answers
26 views

Programatically retrieve units from a map's SpatialReference

I'm trying to retrieve the units (like feet or meters) of the current spatial reference from an ArcGIS map, using the JavaScript API. I have the map's spatial reference object, with it's well-known ...
1
vote
1answer
37 views

ArcGIS Javascript 3.12 ApplyEdits Issue

In my application I am drawing a freehand polygon, clicking a "Save" button and adding the polygon to my feature layer. This works correctly except when the polygon crosses itself (Image 1). When ...
1
vote
0answers
15 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 ...
-4
votes
0answers
29 views

Unable to create a proxy in ArcGIS javascript API from local server

XMLHttpRequest cannot load http://nit445/EdtBaseMap/proxy.ashx?http://nit445/ArcGIS/rest/services/bmptlinJS/FeatureServer/0/applyEdits. No 'Access-Control-Allow-Origin' header is present on the ...
1
vote
1answer
43 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
73 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 ...
1
vote
0answers
17 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
0answers
59 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' ...
5
votes
2answers
223 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 ...
0
votes
0answers
73 views

ArcGIS JavaScript API JSONP request

I am trying to add featues to esri.layers.FeatureLayer from response of JSONP request with esri.request. Interestingly I have right response and all features are perfectly shown on the map,BUT I get ...
1
vote
2answers
50 views

connect query to click event

I have a value that is passed to a query, and a button that will execute the search function. The click event doesn't seem to work. The query works, but it's supposed to run once the button is ...
1
vote
0answers
14 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
28 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 ...
0
votes
1answer
51 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
32 views

How to access feature layer properties in an array in arcgis javascript

I can't seem to access my feature layer properties in an array. I am adding my feature layers to an array as such: dojo.forEach(globals.layers, function (addit, i) { ...
1
vote
0answers
30 views

How do I modify the WebAppBuilder "LayerList' widget to use radio buttons instead of checkboxes?

I've downloaded the developer version of the Web app builder and installed in on my machine. I can open up the widget '\LayerList\LayerListView.js', and I have been exploring the source code. I would ...
2
votes
0answers
22 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 ...
1
vote
2answers
56 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
1answer
48 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 ...
1
vote
0answers
24 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 ...