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

learn more… | top users | synonyms

1
vote
2answers
85 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
123 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
46 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
27 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?
3
votes
1answer
82 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 ...
1
vote
1answer
51 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
57 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
80 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
73 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
18 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.
2
votes
1answer
173 views

Adding image watermark to map via ArcGIS API for JavaScript?

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. I'm using ArcGIS 10.1
2
votes
1answer
126 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
46 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
78 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
55 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
88 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, ...
2
votes
1answer
219 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
35 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
281 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
95 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
703 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
151 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
56 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
37 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
52 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
29 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
37 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
102 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
139 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
72 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
73 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
35 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? ...
2
votes
1answer
446 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
38 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 ...
1
vote
1answer
223 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
72 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
117 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
28 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
219 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
71 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
121 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 ...
0
votes
1answer
158 views

Unable to print using ArcGIS javascript under IE9

I am trying to print a web map using ArcGIS javascript 3.10 under IE9 but got RequestError: Unable to load ...
1
vote
1answer
206 views

query.where statement using date range in JS API

I'm trying to construct a query.where statement using 2 input type=date fields on the page. The date field in SQL Server in the format 2014-12-31 00:00:00.0000000. The input fields date is in the ...
0
votes
0answers
34 views

Prevent rendering of a layer until time definition is applied

I want to add layers to a map, with some criteria. Before the layer is drawn, I want to a set a time definition on the client-side to limit the data being rendered. I've tried setting the time ...
1
vote
1answer
215 views

Programatically add feature to Feature Layer with ArcGIS JavaScript API

I've so far been able to add a feature layer from an ArcGIS server, and I've also been able to add an editor widget which allows me to draw to feature with the mouse. The added features are being ...
1
vote
1answer
89 views

ESRI Javascript API OAuth support for non-arcgis-online application

We are just in the opening salvos of developing a self-hosted ArcGIS Web application. All the OAuth examples I see seem to be assuming ArcGIS Online logins, or that the application will use those ...
1
vote
0answers
57 views

How to print CJK characters in the title using ArcGIS javascript api?

I am trying to print Chinese characters title using ArcGIS javascript (3.10); however, the characters becomes a square block. I am able to see the characters in the JSON passed to the print task but ...
0
votes
1answer
64 views

displaying coded names in the grid

I am trying to display coded names (treespecies) in the grid, instead of values using arcgis java script. It says updateFeature is undefined. Below is my entire code, which I tried. <!DOCTYPE ...
0
votes
1answer
284 views

Chrome/Firefox Performance Issues

Just curious if anyone else is having performance issues with Chrome and Firefox while using an arcgis javascript web application. I have been developing an application that works great in Internet ...
1
vote
1answer
216 views

Plotting the centroid of a polygon feature layer

I'm working with arcGIS javascript api 3.12. My current call for displaying the feature layer is as follows: var recLayer = new ...