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

learn more… | top users | synonyms

0
votes
0answers
7 views

Graphic Layer graphics redraw incorrectly after map zoom event

I have a web map application which adds arrows onto street segments signifying direction as a Graphics Layer. The direction of each arrow is calculated by this process: 1) build an array of the street ...
0
votes
0answers
12 views

Querying ARCGIS to find feature having specified point

I am trying to query features by point, so that it returns a feature that CONTAINS the point given. With the screenshot below, you can see that inspite of giving all the fields correctly, the server ...
1
vote
0answers
15 views

IWorkspaceEdit2Proxy equivalent in ArcGis Javascript api

Is there any equivalent for IWorkspaceEdit2Proxy in JS ArcGis API ? I've gone through the whole JS API documentation and haven't seen anything that would help to implement grouping edit operations. I ...
1
vote
1answer
26 views

ArcGIS API for JavaScript RouteParameters vs REST API

I have the network analysis service and I need to get the route between two points, but I don't want the single path polyline, but rather set of paths representing the edges it travels though (pretty ...
0
votes
1answer
13 views

Calculate print extent in arcgis from screen extent?

I am printing with preserveScale set to false as I need the extent on paper to match what is displayed on screen as closely as possible. Unfortunately the print server does need to fill the paper and ...
0
votes
0answers
24 views

how to get the features of a definition expression without having to project them on the map

I want to perform a definiton expression on a feature layer and get the graphics/features. If I set the visibility of the layer to false, the features cannot be retrieved. Is there any way to get the ...
1
vote
1answer
13 views

Exporting map.graphics to image using ArcGIS API for JavaScript?

I'm developing a GIS Map Application, I'm using Esri JS API . I have a facility to highlight some parts in the map, however I'm wondering if I can - in any way - export these graphics into an image ...
0
votes
1answer
39 views

ArcGIS Javascript Spatial Query with Lat Lng or X Y?

I am using Google Maps on the front end as all I need on this view is to show the points. When user clicks on the map in the view, it selects a point hence giving out lat and lng. I am trying to use ...
0
votes
0answers
43 views

Accessing Draw toolbar of ArcGIS JavaScript API without dojo?

I am building an application using Angular JS, and have been accessing ESRI classes thus far in the following way: var graphicsLayer = new esri.layers.GraphicsLayer(); I have access to the 'esri' ...
1
vote
0answers
39 views

Variable buffer radius in ArcGIS JavaScript API?

I'm hoping someone can help with this, I'm trying to combine the following Esri samples, to end up with the ability to create buffers based on a variable radius, that will then query data within the ...
-1
votes
1answer
50 views

Is ArcGIS JavaScript API and SDK free? [duplicate]

I wish to integrate my .NET web Application to ArcGIS via JS Web API but the application is for commercial use and at an organizational level. Can someone please give me an insight on: available ...
0
votes
0answers
35 views

Arcgis routing is taking file protocol instead of http protocol in phonegap [closed]

I am using arcgis routing service for displaying the directions between two points in map(arcgis). In internet explorer browser it is working fine. But in android(phonegap App), the service calli is ...
0
votes
1answer
37 views

How to add spatial reference ESRI:102100 as a custom CRS to Geoserver?

I've been struggling with this for over a week. I'm using the ArcGIS Javascript API to create a basic map application, and I'm trying to add a WMS layer from my geoserver to this application. The ...
0
votes
1answer
39 views

Change the symbology of a dynamic map service in client

I am trying to use someone else's map service in my web map, but their symbology is atrocious so I need to render new colors through JavaScript API. I try the following (amongst many other efforts ...
1
vote
3answers
65 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
1answer
39 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
31 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
22 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
48 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
54 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
22 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
28 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
30 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 ...
1
vote
1answer
31 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
26 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
64 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
30 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
22 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
27 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
38 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
32 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
62 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
19 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
36 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
20 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
40 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
33 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
29 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
20 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
50 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
33 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
37 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
36 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
51 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
29 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
47 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
17 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
50 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
83 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
22 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. ...