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

learn more… | top users | synonyms

0
votes
0answers
18 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
13 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
22 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
14 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
27 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
17 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
9 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
18 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
1answer
33 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
30 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
11 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
15 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
30 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
27 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
25 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
22 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
34 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
34 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
30 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
25 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
38 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
26 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
50 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
19 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
76 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
35 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
52 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
33 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
16 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
31 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
25 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
20 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
40 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
37 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
32 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
24 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
70 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
20 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
37 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 = ...
3
votes
1answer
36 views

Data will not load into the popup using the Basic Viewer template for ArcGIS

I have downloaded the zip file for the Basic Map Viewer (https://github.com/Esri/Viewer) in ArcGIS and am trying to configure the layers to have popups. I've reviewed some of the code behind other ...
1
vote
2answers
53 views

Is it possible to read geojson geometry from ArcGIS Javascript API?

I'd like to know if it is possible to read geojson geometries using the ArcGIS Javascript Api.
0
votes
0answers
18 views

Use downloaded arcgis js api for require js consumption

Thanks for your solution to the post How to reference the ArcGIS Server JS API using RequireJS I need a way to use a downloaded version of the arcgis api and use it in the require js. Basically, we ...
3
votes
1answer
62 views

ArcGIS Javascript API AMD require syntax and Dojo ContentPane compatibility

I am trying to recreate the ArcGIS Javascript API/Dojo ContentPane layout template shown here for my own custom application. I would like to switch from using dojo.require() legacy syntax to using AMD ...
3
votes
1answer
35 views

Define a circle extent using the circle tool - arcgis javascript api

I have the following script for drawing a circle and I want to limit the user to a predefined radius: $('#circle').click(function () { clearPreviousSearch(); ...
0
votes
1answer
31 views

ArcGIS API for Javascript Not Adding Layer and/or Graphic during mouse event handler?

I am trying to add a graphic to my graphics layer during a map mouse event. In the javascript console, I can see that my graphic object is created and no error is thrown when I add the graphic to my ...