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

learn more… | top users | synonyms

1
vote
1answer
69 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
1
vote
1answer
54 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
36 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
43 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
24 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
37 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
67 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
25 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
121 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
40 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
111 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
57 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
33 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
46 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
24 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
56 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
51 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
39 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
34 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
20 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
124 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
27 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
57 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
52 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
58 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
22 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
86 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
47 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
50 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
55 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
72 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
32 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
68 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
41 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
32 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
29 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
100 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
60 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 ...
2
votes
1answer
102 views

arcgis javascript api map spatialreference changes when i add a layer

This one is strange: i have a map that takes features from a gp service and turns them into a graphics layer. If i add the layer, for some reason the map's spatialreference changes from 4686 to 4326, ...
0
votes
1answer
33 views

Is it possible to use the symbology of an already published map service, so as to create a renderer in javascript api?

I have created a map service with fixed symbology. I want to create a graphics layer which will use the same symbology, through a renderer. In other words, I want to use the already existing ...
2
votes
1answer
43 views

Takes Two Clicks to Select New Feature

I'm writing a web app using ESRI's Javascript API and a map I created in ArcMap 10.1 hosted on ArcGIS online (Feature Service, not WebMap). I have written the code necessary to print attributes in a ...
1
vote
0answers
36 views

graphics all change to same color when map zooms in or out

As the title states, I have a working "draw tool" where you can draw on the map using polygons, simple marker symbols, lines, and text. Whenever you draw any of these symbols on the map using ...
0
votes
1answer
29 views

Automatically select the default feature in TemplatePicker ARCGIS Javascript

I am using this example to implement the editing on my map. Editing Without Widget ARCGIS Javascript The code employs a templatepicker which uses the layers on the map to show the features which can ...
0
votes
1answer
93 views

Configurable map viewer (CMV) - Find the area of drawn polygon

I am trying to get the area of a polygon and divide that by 16.94 ft^2. I have plugged in a Template I found. I am missing something. I am trying to get the template and my original code to talk. ...
1
vote
1answer
56 views

set definition expression based on slider values

Using the Esri JavaScript API I want to control the set.DefinitionExpression values based on a user controlled range slider. The data is loaded from REST as ondemand using: var POP_Total = new ...
0
votes
1answer
45 views

How to get drive distance polygon with ServiceAreaTask?

I'm using an ArcGIS Online ServiceAreaTask to calculate drive-distance polygons. In the ServiceAreaParameters that I pass to ServiceAreaTask.solve(), there is an attribute named impedanceAttribute. In ...
0
votes
1answer
70 views

How to customize the ArcGIS print legend text using javascript

Is there a way to customize ArcGIS print service so that it will not print the layer id and the string that is given in ClassBreakRenderer in the legend. var layer = new FeatuerLayer(url, { id: ...
0
votes
1answer
58 views

How to add customization to Configurable Map Viewer (CMV)?

Looking to learn more about CMV Viewer. For example, how would I add capability like: map on load: for learning how to configure CMV Viewer for my own needs, I'd like to start by learning to add ...