Use this tag when ArcGIS API for JavaScript is the web mapping API that you are using from the ArcGIS platform.

learn more… | top users | synonyms

3
votes
2answers
62 views

Why does local ArcGIS API for JavaScript over https trigger info request over http?

I got the esri js api 3.14 deployed on a server and an application that is reachable over https. Now I got a proxy script that delivers the map requests. When you look at the requests of the page ...
3
votes
1answer
466 views

ArcGIS JavaScript API: onAnimate Error

I am trying to zoom to a point in ArcGIS JavaScript API (3.9). I am doing this one of two ways, I am either grabbing a point feature from ArcGIS Server (10.1), or I am grabbing the center of a polygon ...
0
votes
1answer
232 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. ...
0
votes
0answers
40 views

ArcGis Feature layer does not display symbols consistently on web browers

I have a Feature layer that does not display symbols consistently. Symbols at certain locations are randomly not be visible. Zooming in-out will randomly show/hide a symbol at a particular location ...
0
votes
0answers
9 views

Heatmap renderer geoprocess result?

I have a geoprocess that returns a featureset of points. from this i create a feature collection and from the collection i create a feature layer. when i try to attach a heatmap renderer to the layer ...
0
votes
1answer
56 views

Uncaught TypeError: webMercatorUtils.webMercatorToGeographic is not a function

I have write the following code for displaying coordinates of a map.But coordinates are not displayed and getting error i.e "Uncaught TypeError: webMercatorUtils.webMercatorToGeographic is not a ...
0
votes
0answers
12 views

Default symbol in ClassBreaksRenderer (ArcGIS javascript api) is not working

I have a dynamic Layer created by joining LayerDataSource and QueryDatasource. Everything seems to be OK, it has correct attributes and values. But when I try to apply ClassBreaksRenderer the default ...
0
votes
0answers
31 views

HTML <meta tag viewport “content=” >, why is maximum-scale=1.0 used in when user-scalable=no is also used?

so the example i saw in the tutorial im following in this book Mastering ArcGIS Server Development with JavaScript uses the following in the view port . My question is if maximum-scale=1 prevents ...
0
votes
1answer
35 views

CSVLayer: Unsupported query parameters

I have a CSVLayer with a number of features to display on top of my basemap. The layer is added to the basemap as follows: var map = new Map("map", {...}); var basemap = new ...
0
votes
2answers
42 views

uncaught type error:dom is undefined

when trying to find radiobutton id using dom.byId("id") getting the error dom is undefined. require([ "esri/map", "esri/layers/ArcGISDynamicMapServiceLayer", ...
3
votes
1answer
823 views

Check if lat/long point is within shape

I'm a bit new to ESRI and GIS so forgive me if this is a simple question. Looking at this example ESRI Javascript sample (source code is here) I see you can click on a shape (via a published shape ...
0
votes
0answers
13 views

How to add a table to printTemplate layout using ArcGIS JS API?

I have a table data from a .NET service, and would like to add that table to the map layout. How to add the table as part of my template?
3
votes
1answer
1k views

Setting options for individual layers within ArcGIS Server Map Service?

I've been working on an internet mapping site to include Esri basemap layers, and in-house map services broken out by layer. I am also still fairly new to javascript so this might be a javascript ...
7
votes
3answers
3k views

Application Templates for ArcGIS Server?

Esri provide a lot of excellent template applications for us in conjunction with web maps. These templates are specifically designed for using with your resources on ArcGIS Online as opposed to ...
1
vote
1answer
56 views

Export legend element using arcpy.mapping

I'm working on an ArcGIS JS API web application that requires a heavily customized PDF report. When a user submits their desired extent to our reporting function, we need to convert their webmap to ...
1
vote
1answer
50 views

SVG for symbols in ArcGIS JavaScript API

I'm developing a web app based on ArcGIS for Javascript. My customer's problem requires using many different point symbols, some of them graphically quite complex. I use PictureMarkerSymbols to create ...
0
votes
0answers
25 views

Updating Popup window inside ClusterLayer on cluster refresh of ArcGIS API for JavaScript?

va content = '<div class="win" id="uPopup">' + '<img width=30 height=30 class="img-circle" src="UploadedFiles/' + p.ProfilePicFilename + '"></img>' + '<p ...
3
votes
2answers
266 views

Geocode an address and then buffer

I have a script which geocode an address and buffer that address by 1, 5 and 10 mile radius. The problem I am having is that the address on the map shows 4 different points not sure what's causing it. ...
1
vote
1answer
60 views

Zoom out grayed out in ArcGIS API for JavaScript?

I'm using ArcGIS API for JavaScript 3.13 The zoom out slide button is grayed out, however it works when clicked. Does anybody know how to make it not grayed out? My map initialization code looks ...
8
votes
3answers
517 views

How “complex” should a JavaScript map become? When does a plugin make more sense?

Background: A client is looking to upgrade an ancient ArcIMS site, which is quite complex. It has a table of contents, the ability to change symbology on-the-fly, print the map, use spatial ...
0
votes
0answers
24 views

Zooming to selected polyline draws with no vertices other than start and end points - ArcGIS Javascript API 3.14

I have a search data tool in my mapping application using ArcGIS Javascript API 3.14. The search data tool I created allows a user to search a pipeline by pipeline id like so: Once clicking the ...
2
votes
1answer
67 views

Not getting updated zoom level after extent is set? (ArcGIS JavaScript API)

There is a function in my map that works very nicely for zooming to a polygon (parcel) that has been selected: _zoomToParcel: function(parcel) { ...
0
votes
1answer
41 views

How to show 100K results of a complex query on map without using graphics

I need to show all 100K points on the map without using any sort of clustering. Since they are too much they cannot be shown using a graphics layer. since they are result of a very complex Oracle ...
2
votes
1answer
1k 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> ...
5
votes
1answer
769 views

Using download JavaScript code option of ArcGIS Online without getting basemap too?

I am trying to create a Web App, using the ArcGIS Online feature of downloading the javascript code, with the map id being used for connecting to the ArcGIS Online. I was able to do that successfully ...
8
votes
1answer
2k views

Adding custom basemap in ArcGIS.Com that can be used in Javascript API?

It's possible to add a layer as a basemap in ArcGIS.com by checking the check box use as baselayer: But when I consume the map using: var mapDeferred = esri.arcgis.utils.createMap("<guid>", ...
5
votes
1answer
103 views

ESRI Javascript FeatureLayer Select by Attributes

I am trying to select a group of features in an ESRI javascript API featureLayer by attribute. The call errors out. My code is as follows. Here is the layer definition: var fieldDefs = [{ ...
9
votes
4answers
2k views

ArcGIS Server 10.1 - Inconsistent Querying Errors

I have recently upgraded to ArcGIS Server 10.1 SP1. Since making the switch, I am getting a lot of inconsistent errors, specifically performing queries against a map service's REST API with the ...
0
votes
0answers
10 views

esri.geometry.normalizeCentralMeridian error on calling gp.submitJob

I'm getting an error Error: esri.geometry.normalizeCentralMeridian: 'geometryService' argument is missing. when I call submitJob on my GP service. I'm not making a call to normalizeCentralMeridian ...
1
vote
1answer
75 views

ArcGIS Javascript API using CMV - Tiled Map Service Popup

Using ArcGIS Online webmaps, you can enable a popup for a tiled map service by selecting a feature layer either currently in the map, or providing a url to the feature layer service. I believe then ...
0
votes
1answer
70 views

select features within buffer arcgis javascript

I am trying to use the arcgis javascript to create a buffer select. when I try to add the script to select the features within the buffer, nothing works, but when I remove the selection part of the ...
0
votes
3answers
1k views

Explode clusters of overlapping points in ArcGIS Javascript API

In my map application built on ESRI's javascript API there are a number of points that share a lat/long. I need a way to allow the user to see all of the points at a specific location by exploding ...
1
vote
2answers
730 views

Update multiple features attributes in loop - JavaScript

I am trying to update multiple features in a feature layer through a loop. I have a feature layer that I would like to select and then assign someone to the features (through an attribute update. I ...
0
votes
1answer
148 views

jsbin require is not defined

Here is the simplest example of the web map using ArcGIS Javascript API in jsbin. I'm getting a Reference error: "require is not defined". Does anyone know why is this happening since require ...
1
vote
1answer
87 views

Automating Pop up configuration of web app in ArcGIS for Portal?

I have been tasked to customize several hundred layers (pop up windows) in Portal for ArcGIS (web app). I was wondering if there is a faster way to accomplish this, instead of using the on client pop ...
0
votes
1answer
23 views

Not Able to Add a RasterLayer to ArcGIS API For JavaScript Map

Can you please take a look at This Demo and let me know why I am not able to add the Raster Layer Layer: fishing_effort.tif (ID: 53) into the Map? var map; require([ "esri/map", ...
0
votes
0answers
41 views

Using Advance Search function and Proxy in Configurable Map Viewer?

I am having a problem with the CMV and Advanced Search tool. When searching by selection, if I input a 200 mile buffer, the system crashes. I believe this is because the request is over the 2000 ...
1
vote
0answers
41 views

Use a dropdown menu to display various feature layers

I am trying to develop a dropdown menu that can display various feature layers, something similar to the following, except that I don't need the relocation function and when each option is selected, ...
1
vote
1answer
186 views

Popup design change

I am trying to put another link (Notes Methodologiques) next to "Zoom to" in InfoWindowLite popup window but I don't know how I can have them in the same area. What I have right now looks like this: ...
1
vote
1answer
45 views

Arcgis JS API WMS Layer zoom without basemap

I have an OGC WMS resource which I am adding to a map without any basemap. To view this resource I have to zoom in, so I have decided to set a center point and zoom to this point. The problem is that ...
1
vote
1answer
51 views

Getting email addresses of pointers after selection with JSON or array and ArcGIS API for JavaScript?

I am trying to create a map where I can create a selection area, and get info of all graphic pointers under it, I tried to modify with following example, but they are using web service and queries, ...
2
votes
1answer
41 views

Story Map SpyGlass without ArcGIS Online?

I am looking to see if there is an implementation example of the Spy Glass widget without ArcGIS Online or Story Maps. I have found the LayerSwipe documentation and can implement that fine, but I ...
5
votes
1answer
792 views

What platform to use for building mapping application using existing ArcGIS Rest Services? [closed]

I have clients that have an existing ArcGIS Server. Map layers are published as rest services and I am going to build a mapping application that displays their datasets. Functionality should include ...
0
votes
0answers
40 views

Adding/Removing Service Layer by Checkbox In ArcGIS API for JavaScript?

Can you please take a look at this code and let me know how I can add and remove some layers based on their index number in a Map Service? I tried this before but it is not working! Here is the HTML ...
1
vote
2answers
355 views

add featureset in graphics layer without iterating

I have a geoprocessing service that returns a large amount of features (featureSet). I want to attach them in a graphics layer, but I dont wont to iterate over all them. I tried using the ...
2
votes
2answers
33 views

Esri Distance Calculation

What is the difference of using esri/geometry/geometryEngine distance method and GeometryService length method? Which is faster and capable of calculating distance on Mouse Move event on client side ...
2
votes
1answer
106 views

Detecting onClick event for clicking Printout button of ArcGIS API for JavaScript?

I am wondering if there is a way to detect when a user clicks the "Printout" link after using the print task in ArcGIS Javascript 3.14. I have set up many custom options in my mapping application ...
2
votes
1answer
441 views

Using FeatureLayer as pure client side query in ArcGIS API for JavaScript?

I've created this wrapper around feature layer where I create the empty feature layer as is in the API help page : new FeatureLayer(featureCollectionObject, options?) providing the first ...
1
vote
0answers
23 views

Apply.Edit Function for Delete

i have problem with my json of delete feature form Applyedit Jason on the arcgis server Json. Here my code. delMaintData: function(){ console.log('Bri'); var maintTable = new ...
1
vote
1answer
55 views

Unable to find all points in extent area using ArcGIS API for JavaScript?

I am trying to create a map where I can draw a selection area, and get info of all graphic pointers under it, I tried to modify ArcGis example but the problem now is that I can only able to select ...