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

learn more… | top users | synonyms

-2
votes
0answers
6 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 ...
0
votes
0answers
16 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 ...
1
vote
2answers
24 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
0answers
5 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
27 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
171 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
34 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 ...
0
votes
0answers
17 views

Data synchronization on server between a mobile app and a web app [on hold]

I wanna develop a mobile app that will have forms, and the data that will be filled in those forms need to be sent in the database on server, which is the database of the web application. Maybe "in ...
1
vote
1answer
27 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 ...
0
votes
0answers
7 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
17 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
32 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 ...
0
votes
0answers
19 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) { ...
0
votes
0answers
13 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
20 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
41 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 ...
0
votes
1answer
39 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
0answers
14 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 ...
1
vote
0answers
16 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?
2
votes
0answers
35 views

Changing width and height attribute with ArcGIS Javascript API?

We've got a client side drawing application working with the Arcgis Javascript API, works pretty well with most of the standard components so far. This is our first Arcgis application and we really ...
0
votes
1answer
28 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
27 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.
0
votes
1answer
25 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 ...
0
votes
1answer
36 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 ...
0
votes
1answer
13 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.
0
votes
0answers
37 views

arcgis 10.1 how to add an image watermark to a map

i need to use a png as a watermark for a map that is generated via javascript api. Don't know how to do that.
0
votes
1answer
32 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
26 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 ...
0
votes
1answer
40 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, ...
0
votes
2answers
15 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 ...
0
votes
2answers
27 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, ...
1
vote
1answer
52 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" ...
0
votes
0answers
21 views

Configurable map viewer (CMV) - Help dialog

I have the help widget set to open on start. I was wondering if there was a way to have the help widget display one tab on start and another when the help button is clicked?
1
vote
1answer
92 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 ...
1
vote
1answer
38 views

Running ArcGIS API for JavaScript locally?

I'm pretty new to arcgis javascript api, and I'm wondering how to run it locally. I have downloaded the api, and put the folder "arcgis_js_api" in the root folder of my apachi server, and edited the ...
1
vote
1answer
61 views

How to Create a arrow PolyLine with curved (geoDesic) using ArcGIS PolyLine

Trying to draw two markers(points) with a curved and arrow PolyLine using ArcGIS maps. Below is the source code, able to draw Poly line but it is coming as straight line. <!DOCTYPE html> ...
0
votes
0answers
38 views

esri Print dijit fails when using the Export service of my arcgis Server and works when the same is hosted in arcgis online

I am using the print dijit so as to export a web map that contain a WebTiledLayer. When I use as of the export servive one that directs to arcgis online it works properly. On the other hand when I ...
0
votes
1answer
20 views

How to use PrintTask with preserveScale and WebTiledLayer and when to use the Print dijit?

I have some enquiries relatively to the use of PrintTask, so as to export the map in various formats: Should I use the esri/dijit/Print dijit like in this example ? or it is better to usee the ...
0
votes
1answer
32 views

Is there any navigation dijit or map option , used for panning the map?

I want to add an add-on to my map that will allow the user pan the map by clicking on it. I am thinking something like the zoom toolbar where the user csn click on the +- buttons to zoom in/out. Any ...
0
votes
2answers
44 views

How to show which layers are currently visible

I feel like this is a rather easy one, I just cant get it to work... Basically, I want to show which layers are visible from a dynamic layer. I see all the objects being returned in the console with ...
2
votes
1answer
26 views

ArcGIS find conflict between layer and geometry

I have a problem I could use some help with. In our application we have multiple FeatureLayers and on some of these layers a user can draw new objects. When a user draws a new object, lets call it a ...
1
vote
0answers
22 views

Is there a limit of the number of legend labels passed to ArcGIS server print service?

Is there any limit on the ArcGIS print service for the number of legend labels? I am using ArcGIS server 10.2 and ArcGIS Javascript version 3.10 and am able to print with legend labels (item ...
0
votes
0answers
42 views

Problem hosting web map template in local web server

This is the Webmap I have prepared in ArcGIS online. http://www.arcgis.com/apps/Viewer/index.html?appid=c72a0fc5e554462daec7df89bcc3adf4 I have downloaded a sample template from ...
1
vote
1answer
38 views

Set definition expression from click event

I'm trying to set a definition expression according to a user-selected value from a drop down menu, but I can't get the map to update the feature layers according to the expression. The user is able ...
0
votes
2answers
33 views

Use try, catch when querytask times out using JS API

When I do a querytask and the date range criteria used is too vast, I get a 500 internal server error after 1.7 minutes every time (unless the query takes less than 1.7 minutes, then it runs fine). Is ...
0
votes
0answers
27 views

WebTiledLayer is not shown in exported map of PrintTask - arcgis 10.2.2

I am using PrintTask as show in the code below. My basemap is a WebTiledLayer. My problem is that when I am exporting the map , the basemap is not shown (shown blank basemap), but only the other ...
0
votes
0answers
17 views

Webmap print out is missing half of an operational layer

It used to works without any problem but suddenly part of the feature layer in the print out is missing. I am using ArcGIS Javascript API version 3.10. Anyone has any idea on what could be the case? ...
1
vote
1answer
73 views

Define spatial reference of layer in ArcGis JavaScript API

I get an error "Map: Geometry (wkid: 3301) cannot be converted to spatial reference of the map (wkid: 4326)" when I want to add only graphics layer. I found that spatial reference for a map is defined ...
0
votes
1answer
21 views

Hash of Feature Layer Graphics

On a web application I'm currently working on, some of the data for the GIS Service is bad. For instance, there may be multiple polygons that should be a singular graphic, but instead they are each ...
0
votes
1answer
40 views

query featureLayer using date field and Esri JS api

I can query a featureLayer in my javascript map to only show features meeting criteria for normal attributes (strings/integers), as below for example featurelayer.setDefinitionExpression("status = ...