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

1
vote
1answer
33 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
47 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
39 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
417 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
19 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
66 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
54 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
2k 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
49 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
68 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
41 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
363 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
36 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
36 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
35 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
12 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
23 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
105 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
30 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
39 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
45 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
191 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
83 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
45 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
26 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
244 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
30 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
435 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
417 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 ...
3
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
8 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
62 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
40 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
50 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
28 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 ...
2
votes
1answer
364 views

GGeoXml error with Arcgis extension for google maps api [closed]

I'm using the ArcGis google maps extension. I've created a simple page based on the esri example here... I have successfully buffered a polyline, however, when I create a query and execute the ...
1
vote
0answers
30 views

Info template displayed far from mouse click

I've consistently noticed in my ESRI webmap that the info template is displayed below the mouse click. For example, if I click on a polygon the one below it is displayed. Sometimes, I cannot get the ...
0
votes
1answer
57 views

ESRI Javascript CSVLayer onClick Event

I have a CSVLayer that I loaded into a web application. The data that I want to display within the infowindow of that CSVLayer is too large to display nicely in the existing map window. Therefore ...
6
votes
3answers
2k views

How to share a hosted feature service with an application on ArcGIS Online?

According to the ESRI REST API documentation on authentication, a registered application can log in to AGOL via an App ID and App Secret and will then have access to the data that has been shared with ...
0
votes
1answer
40 views

InfoWindow.getSelectedFeature() not working

When I select a geometry on map, the method map.infoWindow.getSelectedFeature() always returns "undefined". It looks like it is not working. This behavior is with InfoWindow and also with Popup. Also ...
2
votes
1answer
52 views

ArcGIS network analyst JavaScript API “No Facility found” error

I am using below code for ArcGIS SERVER Network Analyst API: ArcGIS JavaScript API for Network Analyst I need to customize it for my own NA server. I have successfully created an NA-SERVER on ArcGIS ...
2
votes
2answers
48 views

ESRI JS API - Unable to register Basemap Gallery (ID is already registered)

I am attempting to add a BasemapGallery to my web application. I prefer to create my layout dynamically using constructors such as: layout.cpRight = new ContentPane({ region:"right", ... ...
1
vote
1answer
1k views

How to determine the accuracy of getFeatureInfo on a WMS layer?

I have added a WMS layer to the ArcGIS Server JSAPI and am attempting to query it using getFeatureInfo when the user clicks on the map. This is mostly working, except that the accuracy of the ...
1
vote
0answers
31 views

Showing only legend items that are actually displayed within current map extent using ArcGIS API for JavaScript?

I'm using TOC/Legend widget as a default legend panel in my ArcGIS based JavaScript API web app. It works great, beside now i want to filter this legend panel based on users current map extent. The ...
0
votes
1answer
36 views

Using Click Event on Layer A to query Layer B in ArcGIS API for JavaScript?

I have two polygon layers in a webmap service and want to do a dynamic query on click, such that when the user clicks on a lake (layer A) with ID = 100, the corresponding watershed boundary (layer B) ...
4
votes
2answers
106 views

ESRI JavaScript API - Add Layer using esriRequest Response

For various reasons I need to add layers to a map object using a response returned by an esriRequest to an ArcGIS Server. One reason being the data will change constantly and hard coding FeatureLayer ...
0
votes
1answer
29 views

Arcgis Javascript Api Identity Manager with proxy

I'm trying to setup an authentication architecture with a web app using arcgis Javascript api with a configured .NET proxy and a web adaptor. When i load my app the identity manager shows up for ...
0
votes
1answer
26 views

Setting color info without defining new instance of renderer

I have an esri map with five feature layers. Each also has an id, and it is used in a toggle layer function to update layer visibility in the map. For most layers, I just need to set one static color ...