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)

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
285 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' ...
3
votes
1answer
396 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 ...
3
votes
2answers
336 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 ...
2
votes
2answers
273 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 ...
2
votes
1answer
464 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 ...
0
votes
1answer
500 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 ...
1
vote
0answers
27 views

TOC with secure services

I have secured map services with AGS. I also have the proxy.config, proxy.ashx, and web.config in my application. My map layers display OK using the proxy. When I try to display my legend using the ...
1
vote
1answer
28 views

Embed a map or OverviewMap in an InfoWindow/Popup

Our page has a main map area with sidebar widgets that trigger different functionality. The widget I'm working with at the moment is going to be annotating points on the map with details including ...
1
vote
1answer
30 views

Converting a Map Scale

I need some guidance. I'm using an ESRI Base Map with Web Mercator projection(Wkid - 102110) in an web application using JavaScript. I'm trying to display the Map Scale as range on the map. I got the ...
0
votes
1answer
2k views

Error executing tool.: Layer “layer1” Unable to connect to map server

I am using the Configurable Javascript Viewer, and have only changed a couple of the configuration settings. One change I made was to use my own Export Web Map Task. In viewer.js, I changed: ...
1
vote
1answer
28 views

Adding text to ArcGIS Javascript layer

I am using the ArcGIS Javascript API (v3.15) for a basic use case of placing some markers with text on a map. I am able to add the marker, but I am running into issues inserting text on that marker. ...
1
vote
0answers
15 views

Create a Map scale for Geodesic circles

I need some guidance. I'm using an ESRI Base Map with Web Mercator projection(Wkid - 102110) in an web application using JavaScript. I'm drawing geodesic circles on the Base Map for a given radius ...
0
votes
0answers
15 views

Multiuser geodatabase update and invocation of arcgis web service

Can you advise me on the following scenario? I have a web service that can be accessed by multiple users, it represents different states in the US with colors depending on a number data field, such ...
1
vote
1answer
594 views

How to add custom basemaps to BasemapGallery

I would like to add my own custom basemaps to the BasemapGallery. Is there any way I can create my own BasemapGallery with only my maps? I am using the ArcGIS API for javascript. EDIT: for clarity I ...
3
votes
1answer
212 views

Inconsistent Identify Task- Explain this bug?

Through some console.log debugging I've located the exact line of code that is failing me but I'm not quite sure how to fix the problem. Basically, I have an identify function that queries the ...
1
vote
1answer
826 views

How to zoom to layer using ArcGIS Javascript API

I tried to get the function "Zoom to Layer" done using the following code snippet. But it does not change anything. The layer is a feature service layer, and I can see the full extent object of the ...
2
votes
1answer
40 views

ESRI Javascript - Dynamically Create Points from Non Spatialized JSON Using Lat/Longs

I am working on application that needs to make use of a non spatial data set. The data is maintained by the group responsible for the installation of the asset item and thus it makes sense to pull ...
1
vote
1answer
230 views

Variable buffer radius in ArcGIS JavaScript API?

I'm hoping someone can help with this, I'm trying to combine the following Esri samples, to end up with the ability to create buffers based on a variable radius, that will then query data within the ...
1
vote
2answers
47 views

How to get Symbol from a feature layer

How can I get the symbol from a FeatureLayer? I want to use the symbol of a FeatureLayer to symbolize a graphic layer.
1
vote
1answer
252 views

Legend ArcGIS Javascript does not recognize Legend from ArcGIS for server 10.2.2

I have created maps in ArcGIS for desktop and published them to ArcGIS for server 10.2.2. Because of performance issues I have created a group layer of the same map with different levels of details. ...
1
vote
0answers
22 views

ArcGIS JSAPI Query Related Records/Relationship Table

I am using this example https://developers.arcgis.com/javascript/3/jssamples/fl_query_related.html to develop an application which queries related features. I have two feature classes and have ...
5
votes
2answers
1k views

Restricting base map on specific extent in ArcGIS JSAPI 3.3/3.4

Currently I am using ArcGIS JS API ver 3.3/3.5 in my application. I want to restrict the basemap for US only .For example one can use default navigation features like zoom in, zoom out for the US ...
10
votes
3answers
3k views

Restrict pan and zoom in ArcGIS Javascript API? [duplicate]

I'm creating a web map of a university campus. I have the map functioning, but I don't want to be able to pan off of the basemap, into whitespace. Do you know of a function that will auto-pan the ...
1
vote
2answers
45 views

Arcgis 3D map development when display PictureMarkerSymbol in sceneview

When I am displaying PictureMarkerSymbol it gives below exception in console. > DOMException: Failed to execute 'texImage2D' on > 'WebGLRenderingContext': The cross-origin image at "image url ...
3
votes
1answer
160 views

Options to Replace Interactive Mapping System

I have been tasked with replacing our organizations online interactive mapping system. It is your run of the mill County Government interactive map. Its bulky, unreliable, slow and out of date. It is ...
0
votes
1answer
217 views

Javascript API Scalebar halo CSS Styling

I am very new to HTML, CSS, and JS. I have added a scalebar to my map and figured out how to add a halo around the labels so they can be seen better against dark or light backgrounds, but I can't ...
1
vote
0answers
56 views

Can I create a selection on Feature Table by attribute with ArcGIS JS API?

I have a simple app built using the 3.16 API that includes a flat table (so no spatial attributes) using the Feature Table widget. Can I select rows by attribute rather than just by the user clicking ...
2
votes
1answer
37 views

Filtering an ArcGIS Feature Service by Related Table

With a feature service that has a related table, is there a way to set a definition expression using the fields in the related table? For example, with the feature service located at https://...
0
votes
1answer
25 views

Popup from InfoTemplate only showing attributes in Firefox, but not in Chrome or Internet Explorer

I have a map service I am testing on internally with some popups on a dynamic map service layer. They work perfectly in Firefox (version 45.0.1), but not in Chrome (version 50.0.2661.102) or Internet ...
0
votes
2answers
419 views

Adding KML layers to ArcGIS JS API v4 (beta)?

I have been building a web application using ArcGIS JS API v4.0.Beta1. I am having difficulties finding out how to add KML layers to the scene. How do I add the KMLs? I have tried adding a new feature ...
0
votes
1answer
29 views

How to prevent adding/editing with AttachmentEditor?

I have a WAB (for developers, version 1.4, JS API 3.16) widget with an AttachmentEditor. Depending on the user's privileges (managed through MVC), I want to prevent some of the users from modifying ...
3
votes
2answers
3k views

Javascript Api's ArcGISTiledMapServiceLayer won't show map

I am currently trying to show a map that has been tiled. I am using version 10 of the arcgis server, and version 2.5 of the javascript api, the odd thing i am running into is that the map will not ...
0
votes
1answer
23 views

Trying to update field in a feature Without “attInspector” …Using ArcGis JavScript api

I cannot find any changes in the field. Please help me out. I am attaching my code: for (var i = 0; i < features.length; i++) { feature = features[i]; feature.attributes["X"] = Value; ...
2
votes
1answer
31 views

Customizing map layers in Esri Javascript

I'm working on creating an outdoors-app-thingy where I'm required to divide up parts of 3 different rivers where the app is focused around into different "zones".   After a lot of calling ...
0
votes
0answers
60 views

Problems with a function - query a JSON array to return fields in a map service url?

This is an extract of my JSON. {"id": "1", "layer": "0", "min_scale": "0", "url": "http://example.service.url" "max_scale": "5000000", "field": [ "NAME", ...
0
votes
0answers
27 views

Map service layers drawing beneath basemap

I have created a geoprocessing service that displays the results as a map service. For some reason only the first layer of this map service is being displayed. The other two are actually being drawn ...
2
votes
0answers
78 views

Adding ArcGIS JS Direction widget in separate function

I am working with ArcGIS JS library, I am trying to add direction widget in my code, and it is working fine. I am following this example: https://developers.arcgis.com/javascript/jssamples/...
0
votes
1answer
39 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
56 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 ...
3
votes
1answer
51 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
225 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
670 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
38 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
274 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
48 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
17 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'...
0
votes
0answers
40 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 ...