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

0
votes
1answer
28 views

Change display name for feature layer when using LayerList widget

I'm building an app with the ArcGIS JavaScript API, version 3.16. I have a map with two feature layers and I'd like to use the LayerList widget so the user can toggle them on and off. It's functional ...
3
votes
1answer
53 views

ArcGIS Online - How to change underlying planet?

Background: I am a high school teacher with a brand-new ConnectED K-12 account from ESRI for ArcGIS Online and am trying to figure out the very basics to use this for planetary science. I have loaded ...
1
vote
2answers
250 views

Is it possible to make a stackable label with the Esri LabelLayer

I'd like to add a line break, but the textstring is always taken literally. For example: labels.addFeatureLayer(states, statesLabelRenderer, "Line 1 \r\n Line 2"); is displayed on the map as: ...
3
votes
1answer
44 views

I want to calculate the distance between two points using network analysis

function drawroute(allcordinate) { var Coordinate = new Array(); Coordinate = allcordinate; var long = Coordinate.split(",")[0]; var lat = Coordinate.split(",")[1]; ...
-1
votes
1answer
205 views

Manually setting basemap using ArcGIS API for JavaScript?

Looked over the example can NOT figure out how to set basemap MANUALLY. I don't want a dijit widget, or any other libraries or anything like that. Just want to manually set a basemap to any of the ...
0
votes
2answers
32 views

ArcGIS JavaScript API Drawing Graphics to Wrong Places

I am working on a web application using ArcGIS JavaScript API. I used query and got a group of graphics. However, the map.graphics.add draws the graphics to wrong locations. They should be in Arizona ...
1
vote
1answer
656 views

Configurable Map Viewer (CMV) - Configure dynamic layer to not display all sub-layers?

Using the example below, from the CMV, what would be the best way to not show the Fire Stations layer in the Louisville Public Safety map service assuming I wanted to see everything else and I wanted ...
3
votes
2answers
4k views

How to Use Custom Basemaps with BasemapToggle widget?

I'm trying to upgrade my app from version 3.3 to version 3.7 of the JavaScript API and am switching out the basemap gallery for the new BasemapToggle widget. I have two custom basemaps that I want to ...
0
votes
1answer
32 views

ArcGIS JavaScript API Query

I am working on a web map using ArcGIS JavaScript API. The map should be able to query a layer and show the result. Since this is my first time using query task of the API, I got some issue. Below is ...
0
votes
1answer
251 views

Defining custom basemap gallery in ArcGIS API for JavaScript?

I'm using arcgis js spi for 3.13 edition, when I using basemaptoggle widget from https://developers.arcgis.com/javascript/jssamples/widget_basemap.html is ok, but when defining my own basemap is doesn'...
1
vote
1answer
46 views

ArcGIS JavaScript API Graphic doesn't Display

I am using map.graphic layer to present a query result, which is a featureset. I assigned symbol and template to the graphics and added them to map.graphics. However, when I apply the function, it ...
1
vote
1answer
11 views

Grabbing current map extent when using State Plane coordinate system?

When using the Share widget in the Configurable Map Viewer (CMV), I'm unable to grab and dispaly the current map extent while using a custom basemap projected in the State Plane coordinate system. It'...
1
vote
3answers
313 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 = ...
0
votes
0answers
37 views

Arcgis rest services map is not showing up

I just got done installing arcgis (10.3.1) for desktop and arcgis for server along with the web adaptor. I have a problem with the rest end point of my service. I can get to the rest end point but ...
2
votes
1answer
180 views

Toggle between custom basemaps (different projections/tile structures)

Wondering if it is possible to toggle between two basemaps with that have a different wkid and tile structure? I have tried with a basemap gallery and a basemap toggle with no luck. We have one ...
1
vote
1answer
16 views

Change Order of Features in Popup with ESRI ArcGIS Javascript API

I am using version 3.12 of the ESRI ArcGIS Javascript API and have noticed that the order of the features that show up in my info window popup does not correspond to the order layers those features ...
0
votes
1answer
40 views

Arcgis FeatureLayer.MODE_ONDEMAND not select exactly coodinate?

I'm working with ArcGis API. I push my Feature Layer on map in MODE_ONDEMAND. But when I select feature (selectTask), the coordinates come out as [692010, 101011], with no decimal places. What I want ...
10
votes
5answers
2k views

what is the right way to delete all features from featureLayer

I have a featureLayer and I don't want to kill it and create another one. I want to delete all features from the current featureLayer. I found that I can use applyEdits method but in order to use it I ...
0
votes
2answers
63 views

Not able to remove layer from map

I am using arcgis javascript api . I want to remove a recently added layer , i wrote like this var a = map.layerIds; var b = map.getLayer(a[2]); map.removeLayer(b); But I am not able to remove any ...
6
votes
2answers
249 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 = [{ ...
0
votes
2answers
49 views

Scrolling down a page with a map

I'm using version 4.0 of the ArcGIS API for my maps. I have this problem with maps whenever the page has to be scrolled down to view the map. My map is somewhere in the middle of the page so the user ...
0
votes
2answers
216 views

CMV Viewer Floating Widgets

I asked this question on Gitter but I think it got lost pretty quickly. Does anyone have an example CMV site without the side bar or any indication whether it would be worth pursuing CMV if what I ...
0
votes
1answer
28 views

Can I increase up to 5000 points limit of feature layer?

I have created searching functionality to using the JavaScript API and I have feature layers which has grater than 1000 points. I want to put all point of particular feature layers on map but ...
2
votes
1answer
21 views

AttributeTable sending an alert that data was not found when clicking on table row

I have an AttributeTable that I have opening when I start a widget. When I click on a table row in this instance, I am able to get the information back correctly and not see this message. I did this ...
1
vote
2answers
35 views

How to Get Dynamic Map Service Layer Name On ArcGIS API

Can you please take a look at This Demo and let me know how I can get the Selected Layer Name through API when check boxes are checked? As you can see at This Link the service is providing 3 layers ...
0
votes
1answer
463 views

Plotting GeoJSON data on map using ArcGIS API for JavaScript?

We are developing the portal in which we are using Arcgis javascript APIs.The requirement in our project is one of the weather provider is going to publish the webservice which will return the weather ...
0
votes
1answer
208 views

Create a polygon from an array of coordinates in arcgis javascript api

Well I am building a GIS web app using ArcGIS Javascript API , I want to create a user interface in which the user provides an array of coordinates and I have to get those coordinates and create a ...
2
votes
2answers
315 views

ArcGIS Javascript API: Adding a shapefile with more than 1000 points

I am able to add shapefiles with less than 1000 points by using the ArcGIS Portal REST API as shown in this example: https://developers.arcgis.com/javascript/jssamples/portal_addshapefile.html ...
0
votes
1answer
199 views

How activate href link in ArcGIS API?

I have some problems with opening a link in ArcGIS API. I have my popup window where LAT, LONG and LINK are shown. function addPoint(evt) { var latitude = evt.mapPoint.getLatitude(); ...
2
votes
0answers
98 views

How to correctly display SVG path graphic after map scale change using ESRI JavaScript API?

I've built a web map that shows the locations of fleet vehicles based on their GPS data. I managed to add a nice feature that animates the routes these vehicles take on their way to destinations using ...
2
votes
1answer
293 views

Remove 'zoom to' tool in pop up feature information ArcGIS API for JS, or define the number of clicks i.e. defined scale

How can I remove at all 'zoom to' tool in the pop up attribute information? Or how can I define the scale (number of clicks) in case if the 'zoom to' can not be removed. I have particular layers ...
3
votes
1answer
358 views

How do I modify the WebAppBuilder "LayerList' widget to use radio buttons instead of checkboxes?

I've downloaded the developer version of the Web app builder and installed in on my machine. I can open up the widget '\LayerList\LayerListView.js', and I have been exploring the source code. I would ...
0
votes
1answer
29 views

Draw and save graphics to IndexedDB / Local Storage using ArcGIS API for JavaScript?

I need to add graphics to a map with class. Is it any sample or way to save it to IndexedDB or Local Storage ? I tried to use offline-editor-js but this library don´t offer possibility to save ...
0
votes
1answer
13 views

force re-render of graphic symbol after modifying it on click event in arcgis js

I'm using ArcGIS javascript sdk to render some points on a map with simple marker symbols. I setup an event for mouse clicks to change the outline color of a point symbol when clicking on one, like ...
1
vote
1answer
1k views

ArcGis Server Java script API error code 500 while using proxy.ashx on one particular server

I am looking for help with using proxy.ashx in Javascript API on one particular server at a client site. We have a GP service that the proxy is used to access (when request is more than 2048 ...
1
vote
1answer
46 views

ArcGis Javascript

I am trying to make map, that on mouse over displays the mgrs coordinates. Example map with lat, long: https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=map_xycoords I know ...
2
votes
1answer
444 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 ...
1
vote
1answer
606 views

ArcGIS javascript API setDefinitionExpression returns wrong result set

New to GIS and ArcGIS. I am trying to use the javascript API setDefinitionExpression to limit the output of a FeatureLayer on the map; however, the result set returned by the function is incorrect. ...
2
votes
2answers
245 views

Browser-based user login (ESRI dojo Javascript 3.14)

I have a web application (several custom Javascript modules plus a single HTML page) hosted on our local server. This works fine when the services that the application consumes are shared to 'Everyone'...
0
votes
1answer
32 views

Arcgis Javascript API WMTS Layer don't use the configured proxy

I am new about Arcgis javascript API. I'm using WMTSLayer and i have configured to use a proxy. esriConfig.defaults.io.proxyUrl = <Proxy_url> When the API does the GetCapabilities request, ...
1
vote
2answers
255 views

How to add an attribute value to info window as a link? (ArcGIS JavaScript API)

I am using ArcGIS API for JavaScript and I want to use a value from a feature class attribute as a hyperlink. For example, "template.setContent("Web Address: http://www.esri.com>${Web_Address}"); This ...
0
votes
0answers
36 views

ArcGIS Javscript API Legend - Print Set Legend Columns & Picture

I have a web application that displays map, based on dynamic layers, and provides basic functionality like zoom\pan, print(pdf export option) etc. Application is based on Arc GIS Server 10.4 platform ...
0
votes
1answer
26 views

Using ArcGIS Javascript API and need help understanding asynchronous programming in accessing the fields property of a FeatureLayer Object

I'm creating a new FeatureLayer, and I want to populate the popup with a list of all the fields. Here is part of my code: var featureLayer = new FeatureLayer(url, { mode: FeatureLayer....
1
vote
1answer
27 views

Altering the suggestQueryParameters in ESRI javascript API

I'm using a modified version of the CMV application and I'm trying to alter the query used by the suggestions query of a search widget. The suggestQueryParamters seems to allow for a custom where ...
1
vote
1answer
17 views

ArcGIS javascript, convert Graphic to Polygon

I am trying to call GeometryService.autoComplete which has Polygon[] as the first parameter. In my case, I would put the all of the features of my featureLayer. The only property that would seems to ...
1
vote
0answers
43 views

ArcGIS Javascript Legend widget does not show full color ramp

Has anyone used the legend widget with raster map services? I have created a GP service that returns raster maps, but the legend is incomplete. The ArcGIS layer properties are shown here, and below ...
0
votes
1answer
56 views

Use HTML button tag to select different feature layers in ArcGIS JavaScript API 4.0

I am trying to build a row of buttons on the top of a page which changes the feature layer being viewed. I am using sample code from here: https://blogs.esri.com/esri/arcgis/2016/01/25/3d-...
0
votes
0answers
11 views

Geocoding with xml response

I'm new to coding and I've set myself the task of geocoding some postcodes and addresses on a map. I've been going through the Arcgis javascript api and followed the geocode tutorials but now I want ...
1
vote
1answer
265 views

Accessing Draw toolbar of ArcGIS JavaScript API without dojo?

I am building an application using Angular JS, and have been accessing ESRI classes thus far in the following way: var graphicsLayer = new esri.layers.GraphicsLayer(); I have access to the 'esri' ...
2
votes
1answer
38 views

What is the correct tileInfo for MapBox basemaps in the ArcGIS JavaScript API (3.16)?

I'm trying to use a MapBox basemap in a JS API (3.16) app and they are using tiles that are 512px instead of the typical 256px. This causes the map to be one zoom level off and the labels and such ...