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
2k views

Populating a Dojo widget with country names based on an ESRI hosted layer

Wow, Javascript is not that easy - can someone help me make a simple breakthrough just to understand some basic concepts. Does anyone know how to populate a filteringSelect Dojo dijit with the names ...
0
votes
1answer
183 views

How to hide labels in ArcGISDynamicMapServiceLayer

Hi guys does anyone know how i would go about hiding labels in a ArcGISDynamicMapServiceLayer? This is part of my code so far: var routeLayer = ArcGISDynamicMapServiceLayer(...); ...
0
votes
1answer
2k views

Toggling layers with arcgis javascript api 3.5

I am using the two reference samples in the api, toggle and dynamic toggle. I tried to use the method in the basic toggle but the setvisbiblelayers doesn't seem to like my kml layers and I get a ...
1
vote
3answers
290 views

How to work on map created by using arcgisUtils.createMap

arcgisUtils.createMap(id,"map").then(function(response){ //update the app dom.byId("title").innerHTML = response.itemInfo.item.title; dom.byId("subtitle").innerHTML = ...
1
vote
2answers
212 views

ArcGIS Javascript Spatial Query with Lat Lng or X Y?

I am using Google Maps on the front end as all I need on this view is to show the points. When user clicks on the map in the view, it selects a point hence giving out lat and lng. I am trying to use ...
0
votes
0answers
27 views

How to use Esri ArcGIS JSAPI InfoTemplate and SimpleMarkerSymbol in conjunction with Query

I have a JavaScript API map where I would like to execute the following workflow : User enters address in locator Location candidate spatially intersects with any polygon feature that it falls ...
0
votes
1answer
48 views

ArcGISDynamicMapServiceLayer Zoom + LocateButton

Have few questions about DynamicMap options. 1.Can i implement LocateButton? 2.Can i set the starting Zoom on the map? This is my Code that is use only with LocateButton but wont work with him, if ...
0
votes
1answer
38 views

Querying/getting EID ( Edge id's of network ) in ArcGIS API for JavaScript?

I did a server-side(c#) network analysis and the output is the EID's(NetEid's) which needs a INETelements to query for features and Object Id's. It takes long time especially when you found many ...
0
votes
0answers
118 views

Esri Javascript Point Clustering Map Size

I am using Esri Javascript API to display points on a map that are pulled from a json object. Everything is working great, although i seem to be having issues trying to figure out how to get the map ...
6
votes
2answers
538 views

about token based authentication security

I am reading the authenticated services with token. I understand that a user have to get a token to using arcgis services. Example: https://domain.com/arcgis/rest/services/myMap/MapServer is my ...
2
votes
1answer
235 views

Can't close custom Web AppBuilder widget programmatically

I am creating a custom widget in ArcGIS Web AppBuilder. This page shows how you can use the WidgetManager to close a widget programmatically, saving the user from having to click the X button ...
0
votes
2answers
49 views

Adding NOAA Radar to JavaScript Application

I am atempting to add NOAA's Dopler Radar to my web. For whatever reason the later will not display on the map. No errors are being reported and I have used console.log() to confirm the data is being ...
0
votes
0answers
31 views

Making Search Widget with custom map

I whant to make Search Widget with autocomplete. I have seen Search Widget Sample : and its making the job that i need from search field. Now my Question is how to implement my map!? This is my ...
1
vote
1answer
26 views

Can I simplify geometry on the fly in a ArcGIS JavaScript map viewer?

We've got a polygon feature class of parcels around a lake boundary that is incredibly accurate. The editor did a really thorough job of following all the inlets and meanders along the edge. From just ...
0
votes
0answers
45 views

ZoomTo, Search, Find implementig in existing ESRI world project

I'm working on Map Tour project and I'm kind of new (1st Project) to ESRI world especially Dojo (working with Dojo less than 4 weaks) world. I need to add some widget to search that will find the ...
2
votes
1answer
36 views

How do I create a layer with popups that has hundreds of unique markers/symbols?

I am creating a layer in ArcGIS JavaScript API. I am looking for the best way to have a feature layer with popups and unique markers. This layer has hundreds of markers at a time. The markers are ...
1
vote
1answer
412 views

Creating time-aware layer (ArcGIS API for JavaScript + ruby rails) using data from server?

I have a data set of points. Each point has latitude, longitude, date and description sent from the server I already have a graphic layer which is used for represening the points in a static way with ...
0
votes
0answers
18 views

query task output as input to new query task

I am trying to display all features that intersect with the results from a query task. I am trying to execute a query task where the output is then passed as the geometry input to a second query task. ...
1
vote
0answers
58 views

ESRI Cluster layer dynamic label colors

I am using extras/clusterlayer to render clusters for a uniquevalue renderer.. all that works well and good except that the label colors are all white/black/whatever you set them to.. I though I'd ...
1
vote
1answer
43 views

M-N relationship class in geodatabase with existing linking table?

I have a parcel database with an M-N relationship (Parcels to Deeds). I have already created and populated a linking table. We have also set up two relationship classes in the geodatabase for the two ...
1
vote
4answers
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 ...
0
votes
0answers
48 views

ArcGIS API Browser Issues

I am having trouble with my maps displaying in different browsers. Chrome and Firefox seem to have no issues whereas Safari works sometimes and other times it does not. ...
1
vote
2answers
58 views

ESRI JavaScript FeatureLayer constructor makes graphic geometry null in featurecollection object

I'm pulling point data by lat long from my SQLServer database via webservice and creating a JSON FeatureCollection object as the webservic response. When I attempt to create a FeatureLayer from this ...
0
votes
0answers
37 views

Which version of Chrome supports ArcGIS JavaScript API (version 1.6)?

I need to use google chrome to open a html file. The html file contains arcgis javascript api (version 1.6). Since the ArcGIS js api version is too old, some functions not supported by the latest ...
2
votes
2answers
359 views

How to project US States in Transverse Mercator [duplicate]

Possible Duplicate: Layers having the same coordinate system should overlap, but they don’t. What’s wrong? I created two different MXDs, one for City of Tucson and another for US States. If ...
0
votes
1answer
30 views

Adding features dynamically to an ArcGIS Javascript FeatureLayer with applyEdits()

When attempting to add features to a featureLayer with applyEdits, the features do not get added to the layer. var featureCollection = JSON.parse(mapdata); var features = ...
3
votes
3answers
3k views

Displaying HTML popups for feature service

This bit of information caught my eye today as I was reading about Feature Services in the ArcGIS Server .NET help: Feature services also support HTML pop-ups setup in ArcMap. HTML pop-ups are ...
3
votes
0answers
29 views

How to move a point on a touch screen using esri map, dojo and javascript

I am new to map development. For touch screen devices, I need to add a point on an ESRI map and then move this point to other location on the map and get its coordinates.
0
votes
1answer
29 views

CMV (Configurable Map viewer) - Possible to use “Custom TiledMapServiceLayer” as a basemap?

Is it possible to use a "Custom TiledMapServiceLayer" as a Basemap? Is it possible to show a "Custom TiledMapServiceLayer" in BasemapGallery?
2
votes
0answers
11 views

Feature templates in ArcGIS JSAPI published maps

I have an ArcGIS map which is published on ArcGIS server (10.3) and while the feature templates for each layer are set up in the map, the published map service contains totally different set of ...
0
votes
0answers
18 views

Geojson live service in Configurable Map Viewer

I know that you can use the esri togeojson tool in there terraformer tool. But i was wondering if anyone has added this capability into a CMV viewer. I am looking at adding the capability so it would ...
2
votes
1answer
93 views

ArcGIS Geoprocessing Service Output Location

I am publishing an ArcGIS geoprocessing service using a Python script tool and can't seem to figure out the correct output path to use. I would like to share the results as a map service, which means ...
1
vote
1answer
24 views

Arcgis Gis :Change Color on clicking Graphics

I have a number of point graphics on a map with different colors depecting some meaning.My query is on clicking any graphic(s) I want to highlight it but if I click again it should revert to its ...
0
votes
1answer
38 views

Javascript API: queryTask error - where should I put the alert?

Where in the code do I add an error message if nothing is returned? function execute() { // var queryTask = new ...
3
votes
0answers
42 views

Add Shapefile code - Why all shapefile features added on the same location on map?

I am developing the JS app using 3.15. I have tried this code in my app Add shapefile from the esri samples. but shapefile features added at the same location on map.If the polygon features it ...
1
vote
2answers
89 views

Uncaught TypeError: Cannot read property 'on' of undefined

I have added a drawpolygon tool in navigation toolbar,but when clicking on this tool event is not firing. Please suggest me how to solve this error : Cannot read property 'on' of undefined. ...
2
votes
1answer
68 views

How to force QueryTask to always POST requests?

On ArcGIS API for JavaScript, how can we force QueryTask to always perform POST requests? I know that I can force POST for esriRequest via the usePost options parameter. Perhaps a similar, ...
2
votes
1answer
39 views

KMLLayer Infowindow

I am trying to add a KML layer to ESRI javascript project. That part is easy enough. I want the KML file to appear, but do not want any infowindow to display for items within that KML. All that I ...
1
vote
0answers
25 views

ESRI Javasacript API Legend digit: Modify Layer Names

I am using the ESRI Javascript API Legend Digit in a map application and I would like to alter the display names as they appear in the legend. I'm accessing map services with cryptic names like ...
2
votes
2answers
243 views

Is there a GroupRenderer in ArcGIS for javaScript?

Is there a GroupRenderer or similar functionality in ArcGIS for JavaScript? What I would like to do is to show PictureMarkers with a label showing an attribute on the Graphics object.
1
vote
0answers
25 views

Trying to select some features that are at a map service not featurelayer. (arcgis api)

I am trying to select(highlight) some features that are found at a map service. The selection is based on mouse clicking on map by the user. I am using Arcgis Javascript Api 3.15 Here are my steps. ...
1
vote
1answer
413 views

Proxy error with ArcGIS PrintTask - AMD

I am trying to add a simple layer of security to my ArcGIS JS app. I do not want to prompt my users for a login to retrieve a token. So instead I pass the username/password inside this PHP proxy: ...
1
vote
3answers
390 views

ArcGIS Javascript API: Get Map Object from DIV

So I am currently writing an application using the ArcGIS JavaScript API, and I want to access the map object that is held inside of my div from a js module I have. I was thinking it would be a simple ...
2
votes
2answers
6k views

Drawing circle of specified radius in meters using ArcGIS API for JavaScript?

I am trying to add a circle of a specified radius (let's say 200 meters) to a map. My thought is to create a SimpleMarkerSymbol object. The constructor asks for a size of the symbol in pixels, but I ...
0
votes
0answers
7 views

Javascript Manipulating Display Of WMSLayer

Is there a way to change the map display color for a esri WMSLayer? The only interactive method that is similar to what I am trying to do is setOpacity() var wmsLayer = new WMSLayer(wms, { ...
3
votes
1answer
59 views

Arcpy geoprocessing script running with default inputs

I have a pretty simple geoprocessing script. My javascript is supposed to be passing it a list of layers to query. Something like this for the Javascript: var params = { "Layers": ...
1
vote
0answers
46 views

Trying to query based on selected feature, but query is using previously selected feature

I'm not sure how to replicate this problem with just a code snippet, because it involves so many different elements of my HTML and JS. So here is a jsbin with the whole code. I use ESRI's popup ...
1
vote
0answers
37 views

ESRI Javascript KMLLayer and CSVLayer

I have a map where I have a KMLLayer that defines a geographic boundary and a CSVLayer that defines points within that boundary. I do not want any infoWindow information popping up for the KMLLayer ...
3
votes
2answers
49 views

How to pass arguments to query function in different module

I have a query (see this jsbin example) to find the percentile rank of a fields value. So it finds all records (N) and then how many records are less than itself (k). Percentile = k/N as a rounded ...
0
votes
0answers
27 views

QueryTask with StatisticDefinition throws Error: Unable to complete operation

I'm trying to run the following query on my layer, which is on ArcServer 10.1 and has outStatistics = true. My syntax all looks right to me. As I said above, I get Error: Unable to complete ...