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
0answers
8 views

TOC with secure services

i have secured map services with AGS. I have the proxy.config, proxy.ashx, and web.config in my application. My map layers display OK using the proxy. When I try and display my legend using the proxy ...
1
vote
1answer
25 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
0answers
5 views

ESRI JS API - Get Data in Infowwindow when scrolling through multiple selected features

I would like to be able to grab attribute data from a popupwindow when its associated feature is clicked. When there is only one feature in the window this is no problem by accessing the features by --...
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
178 views

Plotting shapefile on map using ArcGIS API for JavaScript?

We are using dojo framework to develop our portal.We have bind the arcgis map in our web portal.Is there any arcgis JavaScript API which will accept the path of the shape file and plot that shape ...
1
vote
1answer
13 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
10 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
13 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
575 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
208 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
364 views

“Pagination not supported” error occurs when searching feature layers using the search widget

I just upgraded to the 3.13 version of the JavaScript API, and I'm working on getting the new search widget (esri.dijit.Search) working in our application. We have our own ArcGIS Server (10.1 I think)...
1
vote
1answer
790 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
26 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
219 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
0answers
12 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
2answers
27 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
242 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
1answer
216 views

How to create a infotemplate that displays automatically

I have created a postcode search that that highlights a polygon and zooms in. but I would like it to display a infoTemplate box with having to click in it. I want it to show when the function runs. ...
0
votes
1answer
439 views

esri/dijit/Search multiple sources not updating drop down list

I am trying to reproduce the tutorial on one of my own layers Here I have put in one of my own layers <!DOCTYPE html> <html><link rel="stylesheet" href="http://js.arcgis.com/3.13/...
1
vote
0answers
14 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 ...
0
votes
1answer
227 views

limiting circles to a specific radius

I am new to ArcGIS javascript api and I have created a map which allows users to draw circle geometries. I just want to limit the functionality so that the radius is specified at 10000km. This is ...
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
1answer
733 views

How to get the feature set for geoprocessing service?

I am calling a geoprocessing service in a web app. The geoprocessing service has one parameter (a feature set). But I am not sure how to find the parameter in the javascript code to send it to the ...
1
vote
2answers
40 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 ...
2
votes
1answer
553 views

Remove selected feature symbol

Background: I am dynamically populating a feature layer. On this feature layer I have set the symbol (as you can see) to a nice little .png image. Everything seems to work fine around the layer except ...
0
votes
1answer
212 views

Is there any Map event fired when map is loaded completely when we device is oriented from portrait to landscape mode?

We are using ESRI ArcGIS JavaScript API in one of our Mobile web app. When map is loaded first time, Onload event is fired. But when we change orientation from Portrait to Landscape, OnLoad event does ...
0
votes
0answers
25 views

Enter Latitude and Longitude in CSV file using Javascript [closed]

I used ESRI Geolocation code to get my current location then put the Longitude and Latitude into an array. On my computer I have a CSV file called "XYcoors.csv" and would like to put these ...
3
votes
1answer
159 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
200 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
29 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
32 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://...
4
votes
1answer
1k views

ArcGIS Javascript API 3.3 - Changing Layer Definitions / Refresh Not Behaving

I have an ArcGISDynamicMapService layer in my application that points to a fairly simple (6 layers) map service. In the application, there is a GUI/widget that allows the user to pick various options ...
0
votes
1answer
21 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 ...
1
vote
1answer
206 views

Polyline graphics not displaying in Javascript API?

I am getting features (graphics) back from an IdentifyTask, setting a symbol and adding to a graphics layer. Polygons and points show up just fine, but not lines. Has anyone else encountered this? ...
0
votes
2answers
402 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
27 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
1answer
561 views

how to disable duplicate items in the legend for ArcGIS JavaScript API

I have a problem with duplicate items in the legend panel! Can anyone help me? This is my feature Layer with popup info: // Feature Layer var msFeatureLayer = new esri.layers.FeatureLayer(...
2
votes
1answer
461 views

How to append result to Geocoder text box using ArcGIS JavaScript API?

I want to append result of a custom search in a Geocoder text box in ArcGIS JavaScript API by overriding the default result. I have written the below code for this, but I am not getting a ...
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 ...
1
vote
1answer
259 views

ArcGIS Javascript API FeatureLayer not available immediately upon show click event

I am adding a FeatureLayer in my application as follows: featureLayer00 = new FeatureLayer("http://webadaptorserviceurl/MapServer/0",{ mode: FeatureLayer.MODE_ONDEMAND, id: "0", ...
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; ...
1
vote
1answer
482 views

Why do I have to reload the page, to show the Map correctly?

I added a map, in the way I'm supposed to, but why do I have to reload/refresh the page, to get the map (almost) as I want to? This is, what I mean: Map before reloading the page: Map after ...
0
votes
1answer
611 views

Attribute Inspector for points - JavaScript API

I am attempting to get an application working where editors can click on a point feature and edit a form. I need the form to have a save button that when clicked will apply the edits to the feature. ...
2
votes
1answer
27 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
55 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
2answers
808 views

evt.layers undefined while trying to display Legend widget in Javascript API

I cannot get an ArcGIS Javascript API Legend widget to show up. An excerpt of my code is as follows. I believe I'm failing somewhere near the console.log that I call...undefined comes up in the ...
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
75 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/...