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
2answers
80 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
43 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
368 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
46 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 = JSON.parse(mapdata)....
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
49 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
45 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
14 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
30 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
140 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
38 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
41 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 QueryTask("http://sepa-app-gis01/arcgis/rest/services/live/SEARCH/...
3
votes
0answers
49 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
421 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
107 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
49 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
28 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
245 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
32 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
454 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
433 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
9 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
68 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": "foo,bar,hello,...
1
vote
0answers
47 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
42 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
53 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
36 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
82 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
51 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
57 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
54 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
32 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
40 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
138 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
36 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
30 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 ...
3
votes
0answers
241 views

Increase maximum zoom level for a WebTiledLayer in ArcGIS

I am using the WebTiledLayer from the Javascript ArcGIS API to render a custom WMTS source. The WMTS I am using has zoom levels going from 18 to 21, however I cannot zoom in further than what appears ...
-1
votes
1answer
84 views

how to highlight map area with extent geometry onmouse click

I got this example in arcgis api ssample code . But the problem is that , i want to create it for any area of map . like if one click on any city , it should be selected.And the code is for mouse-over ...
-1
votes
1answer
72 views

Uncaught TypeError: registry.forEach is not a function

I am trying to add two dojo buttons for polyline and rectangle on a map, and i have written loop for two buttons, but i am getting error :"Uncaught TypeError: registry.forEach is not a function" ...
0
votes
1answer
61 views

Geosearch Esri controls in leaflet

It is possible to disable the Geosearch Esri controls in leaflet after the first geocode search? When I run Chrome console and I select the search geocode icon this is the code: <input class="...
1
vote
1answer
62 views

Configurable Map Viewer (CMV) Measurement Widget Error

I have several cmv widgets enabled, some I have built myself. All work great, but when I enable the Measurement widget I am getting this error upon loading the app: dojo/parser::parse() error ...
1
vote
1answer
51 views

Is there a way to get the vertices of segment of polyline?

I have a polyline with 3 co-ordinate, say (x1,y1), (x2,y2), (x3,y3). Can I get the vertices (x1,y1), (x2,y2) if clicked on line-segment drawn by (x1,y1), (x2,y2). I have a polyline on map that with ...
1
vote
0answers
33 views

Highlighted graphics resets on zoom in ArcGIS API for JavaScript?

I am highlighting graphic using graphic.setSymbol(pictureSymbol). It is working fine. But, when map is zoomed the symbol graphic is reset to default. If anyone has come over the issue, please help! ...
0
votes
1answer
74 views

zoom to all points in arcgis js api

Can anybody tell me what wrong in this code.Here I am passing point geometry to query task. var districtName = $('#ddlDistrictd').val(); function showresults() { $.ajax({ type: "POST", ...
0
votes
1answer
50 views

Table of Contents(TOC) Widget for ArcGIS JavaScript API in Legacy?

I want to develop a legend using Table of Contents(TOC) Widget for ArcGIS JavaScript API in Legacy code. I have tried its development by following the steps in the documentation of TOC Widget for ...