Questions tagged [arcgis-javascript-api]

For questions about ArcGIS API for JavaScript 2.x and 3.x. For 4.x use arcgis-javascript-api-4 instead

316 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
183 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.
4
votes
0answers
5k views

Populate an existing popup with an AttributeInspector after RelationshipQuery returns results

Here's the workflow: A user selects a feature layer polygon, views a popup. A link added to the popup will run a RelationshipQuery to view related records. How can I get the RelationshipQuery results ...
4
votes
1answer
274 views

What would prevent ESRI JSAPI AMD modules from being cached?

I am using AMD style in the ESRI Javascript API (along with the esri application boilerplate: https://github.com/Esri/application-boilerplate-js). For some reason, the AMD modules from the js.arcgis....
4
votes
1answer
674 views

How to offset/displace overlapping lines in a web map?

I have a dataset of points representing a To/From status - something like distribution centres and delivery addresses. When the user clicks on a point I'd like to show the relationships between this ...
3
votes
1answer
203 views

HTTP Basic Auth Failure: Esri JS API

I am unable to prompt the Basic Authorization popup to appear using the Esri JS API with a Secured OGC WMS service. A concise description: Using a basic fetch request, with credentials: "include" ...
3
votes
1answer
229 views

Add new fields to the FeatureLayer dynamically - arcgis JS API Version 4.7

I've uploaded GeoJSON to Esri cloud and created a feature layer. Now I'm able to plot the featurelayer into my map. I'm trying to color each feature based on measures which comes from my DB. Here ...
3
votes
1answer
157 views

Parameters for ArcGIS REST “…/MapServer?f=jsapi”?

What parameters can be used with .../MapServer?f=jsapi to alter the results, like turning on or off a single layer? Background: When browsing an ArcGIS REST Services Directory one of the options at ...
3
votes
1answer
47 views

Panning to Point in WrapAround180 past initial extent in Arcgis Javascript API

With my map set to WrapAround180: true, I have a icon list outside of the map that pans to a location on the map when you select an icon in the list. If you are outside of the initial extent and ...
3
votes
0answers
75 views

Rotating non-symmetrical symbols, or avoiding upside down symbols

I have a lovely symbol of a vehicle on a map (as an SVG path). I'd like to show current heading. Trouble is, cars aren't symmetrical. I am ending up with a lot of vehicles that look like this. Not ...
3
votes
0answers
300 views

Get Styles for Feature Layer in Feature Collection, Customize Layer List

so I'm using the JavaScript API to customize an ArcGIS web app and I need to take feature layers and group them in the layer list widget. Here's the code I have that does that (in the widget.js file ...
3
votes
0answers
257 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 ...
3
votes
0answers
186 views

Feature layers don't appear in print result?

I have a problem when I print my map, when I display the result I find only one feauture of twenty. the result does't contain all features. I used esri/dijit/PrintTask verifier: function(){ //...
3
votes
0answers
424 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 ...
3
votes
0answers
829 views

High-DPI printing with ArcGIS API for JavaScript and esri.dijit.Print?

I've got cached tiles for all map layers at various zoom levels, and would like to print at DPI higher than the default (around 96) by using tiles from a deeper zoom level. It doesn't matter if map ...
3
votes
0answers
296 views

Adding Edit button to ArcGIS Javascript template?

We've been able to successfully download the Find, Edit, Filter template, customize the configurations, and host it on our own server but here is the issue we are facing now. We're looking to use ...
3
votes
0answers
231 views

Automatically update the result of a QueryTask

I have developed a application using the ESRI JS API to allow users to create and edit features in a web map. I have used the QueryTask to create summary statistics to report back to the user on ...
3
votes
0answers
1k views

Can I highlight a selected feature using the ArcGIS REST API only?

I have a .Net web application with embedded maps, using the Arcgis javascript API. For non-interactive maps, I thought I would just make calls using c# to the REST endpoints. This works fine for ...
3
votes
0answers
182 views

Cannot use published zonal stats geoprocessing service (Arcgis Java API)

I am primarily following this tutorial. Here is the signature for the service used in the sample. It is slightly different than the one I have had any success with, though if I recall correctly the ...
3
votes
0answers
700 views

View attachments in popup when using the editor widget

I am using ArcGIS javascript API to construct an editor app for a layer. I am using the default out of the box editor widget to edit and display data for an app. The layers I am editing contain ...
3
votes
0answers
198 views

ArcGIS Javascript API - Looking For Styled Navigation Plugin/Widget

I am looking for a fancy navigation plugin to use with the ArcGIS Javascript API. Something along the lines of the Navigation Widget (see image below) available in the Flex Viewer would be great. ...
3
votes
0answers
2k views

How to access ArcGISDynamicMapServiceLayer with credentials (token)

I know I simply need to append a token=XXX to the export query string but how, in code, do we initialize "esri/layers/ArcGISDynamicMapServiceLayer" to use credentials? In my case I only want to ...
3
votes
0answers
3k views

Simple Dojo Pop Up Window

I'm working on my first web application using the JS API and am looking to add a simple tabbed pop-up window that can be called on the load of the page that can display map instructions and a general ...
3
votes
0answers
1k views

How to create a custom Attribute Inspector for mobile app using the ESRI JS API

I am making a mobile version of a JS web application I developed. I'm noticing though that the AttributeInspector widget by default uses standard dojo/form controls. This means that the form within ...
3
votes
2answers
66 views

Snapping does not work for WFSLayer in ArcGIS JavaScript API 3

I have a web application that I now need to use WFSLayer for some of the map layers. The problem is that snapping does not seem to work for WFS layers. The layer I use for drawing is a FeatureLayer. ...
2
votes
0answers
60 views

Esri mapview USGS earthquake trigger popup from outside of map

I am trying to show some recent earthquake information in Esri maps using USGS earthquake API data. I am able to fetch the list from API data and also I got the map with those listed information ...
2
votes
1answer
37 views

ArcGIS JavaScript API popup-show all attributes

I'm publishing services to ArcGIS server and I want to test them out in a simple HTML web map. I would like to create a pop-up window to test if the attributes are coming through. Since I will be ...
2
votes
1answer
120 views

ArcGIS API 4.11 JavaScript - “Click” “drag” stopPropagation()

Using JavaScript in the ArcGIS API, I am querying a feature layer from a Map View, calculating points within a certain radius when the user "click" "drag" with the mouse. I want to be able to stop ...
2
votes
0answers
22 views

Issues with ArcGIS Web AppBuilder creating custom widget by inheriting existing widget

I am trying to extend the inbuilt Select widget in the ArcGIS Web AppBuilder for Desktop using dojo. According to the documentation by ESRI we always inherit the 'dijit/_WidgetBase' module to create ...
2
votes
1answer
138 views

Emitting map click using ArcGIS API for JavaScript?

I am trying to emit a map click from the MapView object using its emit method. I have successfully done this in the 3x API from the Map object. This same method, however, is not working for me in the ...
2
votes
1answer
71 views

ESRI Search Widget - Alter Search Parameters (ArcGIS JS v4.9)

The Search widget within the ArcGIS JavaScript API (v 4.9) works by returning all records that contain your search string. In other words, if you search for "123" You'll get "123 S Main St", "5123 W ...
2
votes
1answer
101 views

How to get mapPoint z coordinate by Lat and Lon

Please see the map on: https://codepen.io/stzdzyhs/pen/WamYav the whole code is also inserted below. When click on the scene(A IntegratedMeshLayer), it can show the Lon, Lat, and Z values in the ...
2
votes
0answers
117 views

ArcGIS Javascript API - Limit Map extent to a 100 mile radius

I'm using ArcGIS JavaScript API 3.24 and im displaying the location of a lat/long and displaying features of a feature layer with 50 miles of that lat/long. Is there way to limit the extent to a 100 ...
2
votes
0answers
92 views

How to use FeatureLayer's opacity settings?

I'm pretty new to GIS development and I'm trying to load a FeatureLayer that has opacity set (layer is outlined areas that are color-filled and translucent). However, when the layer is displayed in my ...
2
votes
0answers
297 views

Using a widget outside of web app builder

I am building a simple mapping application using the ArcGIS-JS-API 4.X. Here, is my sample code which plots a marker on the map. require([ "esri/Map", "esri/views/SceneView", "esri/...
2
votes
0answers
130 views

Handling “exact” scale close to layer's minScale/maxScale in ArcGIS js api

We deliver web apps for our customer based on common platform which in turn is developed on top of ArcGIS JS API 3. Customers publish their map layers to get whatever maps they need. Customers have ...
2
votes
0answers
54 views

wkid error using buffer GeometryService - ArcGIS JS API 3.2

First of all, going to this url for the geometry service referenced in the documentation shows it's been deactivated so I instead chose this url - both with /GeometryServer and /GeometryServer/buffer. ...
2
votes
0answers
43 views

Supported Interfaces: REST SOAP

I am trying to create a simple webmap and I want to add the layers of a map that I published to the GIS server. But the rest URL from the published map do not display these layers. Anyone know what ...
2
votes
0answers
222 views

Map disappearing when zoom in or panning using ArcGIS API for JavaScript 3?

I am using ArcGIS API for JavaScript 3.19. I have added a dynamic layer without a base map, without the extent, its working , i can do map activities . But when i added extent in the map while ...
2
votes
0answers
718 views

ArcGIS JavaScript API: SEC7127: Redirect was blocked for CORS request after submitting geoprocessing job

Using the ArcGIS for JavaScript API 3.19, I'm submitting a job to the ExtractData geoprocessing service at: https://analysis7.arcgis.com/arcgis/rest/services/tasks/GPServer/ExtractData/submitJob The ...
2
votes
0answers
114 views

Javascript syntax error on print map, only when feature count > 8000 (updated)

I am using arcgis jsapi v3.10, and esri/dijit/Print for my map printing. I am encountering an very weird bug where the browser return: SyntaxError: Unexpected token < at Object.b.fromJson (init....
2
votes
0answers
130 views

How update location field (geometry) in Oracle Spatial using asp.net web application?

I want to update a geometry column in Oracle Spatial database via Asp.net web application, I couldn't find samples for update query or datatypes that can hold geometry data in asp.net. I use C# for ...
2
votes
1answer
289 views

Graphics disappear when zoom in

Recently I have this really weird bug : I have a new graphics-layer, that I build on runtime, with a point-graphic in it. On higher extent - ever thing's great, on lower extent (zoom-in) the graphic ...
2
votes
0answers
31 views

ArcGIS layers not scaling when attribute table is open

I've recently discovered an issue in Chrome and I'm wondering if anyone else has had this issue or if anyone can tell me how to fix it. Basically, when I zoom in and out on my map when the ...
2
votes
1answer
284 views

Cannot set map extent in ArcGIS JavaScript API 3.17

I have my map set to a custom projection SVY21/3414 This map service only supports Tiled and not Dynamic. I manually convert the projection coordinates using proj4 and it works fine for my graphics. ...
2
votes
0answers
99 views

ESRI ARCGIS Flex - Javascript migration

We have a current architecture of FlexViewer and part ArcGIS Flex API based custom tool that's sitting on a IIS server to draw zones. ESRI is migrating to ESRI Javascript API and we have two options ...
2
votes
0answers
145 views

error printing a map with feature layer with feature collection using esri jsapi

I have this single page web map app with esri js api 3.4 and arcgis server 10.1. I have added a print widget and that works fine (with two base map layers and an empty feature layer with feature ...
2
votes
0answers
102 views

Tiled Map and Picture Marker Symbol not rendered using Print Task with ArcGIS JavaScript API

I have located a hospital and provided a new symbol to it. Also added a STREETS basemap to it. I can see both of them on the map on screen. But when I try to generate a report (using Print Task), ...
2
votes
0answers
22 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 ...
2
votes
0answers
155 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. ...
2
votes
0answers
609 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 ...