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

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

PopUpTemplate displaying at wrong place

When I click on the point in mapImageLayer the popup is pointing/displaying at wrong place. var mapDataLayer = new MapImageLayer({ url: sArcgisURL, sublayers: [ { id: sSelectedMapLayer,...
0
votes
1answer
36 views
+50

ArcGIS JS 4.15 Cluster Popup navigation for Cluster

I would like to migrate from ArcGIS JS API 3.x to 4.16. One other feature I am using from 3.x version is clustering. In 3.x is it allow user to click on Cluster marker and navigate between all ...
0
votes
1answer
28 views

PopupTemplate Content strips HTML Data-* Attributes in ArcGIS API for JavaScript 4.16

Working with the ArcGIS JavaScript API version 4.13 and was able to build popup templates that included data attributes to work with the Semantic UI library for their Tab module (https://semantic-ui....
0
votes
1answer
44 views

Responsive Esri app: not sure how to collapse sidebar to button

Currently, I have a sidebar with text. How do I collapse it to a button when the screen size is below a certain pixel width? Here's the app on Code Pen: Click for App. This sample code does what I ...
0
votes
0answers
14 views

How can i add time series to FeatureLayer Arcgis

I converted shape file(geojson) to ArcGis Json via terraformer-arcgis-parser. It will render the map but how can i add a csv or json file to the FeatureLayer in order to use TimeSlider? let ...
3
votes
1answer
63 views

How to use a .tpk or GeoTiff file as a Google Maps Overlay

I am building a webapp using Google Maps, and want to have an image overlaid on top of the usual Map that represents Light Pollution data. I don't have ArcGIS myself, but I was able to download a 400 ...
0
votes
0answers
11 views

Change order of polygons within a feature layer? (arcgis js 4.xx)

I have tried using the below in my initial query, and query right before drawing my polygons with class breaks. query.orderByFields = ["Shape__Area DESC"]; However this did not seem to ...
1
vote
1answer
25 views

Converting GeoJSON (or shapefile) data to FeatureLayer

I am creating an interactive map using ArcGIS and React. Presently, I am creating a GeoJSONLayer. However, I'm now trying to use a UniqueValueRenderer for some of the layers. From the docs, it appears ...
0
votes
0answers
19 views

ESRI proxy for Python

I have used ESRI Proxy in multiple projects which were developed using ESRI JS API and Java backend. Now I have to use secured services in a Django project. I am searching for similar proxy but it is ...
0
votes
0answers
11 views

How to get fields of subLayer of MapImageLayer?

I have MapImageLayer which has sublayers. I need to show a popup of sublayer feature and popup should contain all attributes(default popup content) with a custom title. Before 4.12 version we can use ...
0
votes
0answers
31 views

Drawing line in reference of Geographic point (WGS84) using X,Y in meters and ArcGIS API for JavaScript

I have a CAD drawing (lines are circles) which I am trying to draw on an ArcGIS Map using JavaScript API. I have a base reference Geographic point (WGS84) and North Angle in my source drawing, the ...
0
votes
0answers
20 views

Adding extern SOAP libray to ArcGIS Widget

I am trying to use tinysoap library (https://github.com/mhzed/tinysoap) in an ESRI widget. I am able to use this library in ESRI WebAppBuilder, as I show on the following sample code (real code ...
0
votes
0answers
19 views

ArcGIS JavaScript API for OGC WMTS vector tiles

Are there the plans to support OGC WMTS vector tile in ArcGIS JavaScript API? As I understand esri adopted mapbox format while opengis.net developed a format around a classic WMTS: kind a WMTS, but ...
1
vote
1answer
20 views

Update is not a known function on Bounds in version 3.32 of Javascript API

The typescript code below compiles, but bounds is getting a runtime error suggesting that update is not a known function. var bounds = self.esriHelper.requireModule('esri/geometry/Extent'); bounds = ...
0
votes
0answers
14 views

Add items to map, collectively, one at a time, per attribute ID

I have successfully been able to filter, for instance shakemaps, by attribute id - I have successfully achieved this multiple ways - but all ending with the same problem. With the where filter ...
1
vote
0answers
34 views

Getting longitude and latitude from a GraphicsLayer using ArcGIS API for JavaScript ( 3.32 )

Update : I have to position a button at the bottom of a layer, i try with Point, fullExtent and xyToLngLat. but the result seems offset sometime. I have a hard time getting longitude & latitude ...
0
votes
0answers
20 views

Display image from attribute table in infotemplate

I have added image in attribute table. It looks like this: Now I want to display this image into InfoTemplate. so far I am doing like this: var content = "<b>Name</b>: ${name}" +...
0
votes
0answers
22 views

Mouse click on map not acurrately selecting feature for InfoTemplate popup

I have a web application that incorporate an infoTemplate (esriPopup) when the user clicks on a road feature in the map. This works fine in the main map, but I have additional maps that compare 2 ...
0
votes
0answers
18 views

ArcGIS JS 4.15, MapImageLayer, after rendered event

I'm using the ArcGIS JS 4.15 API. In my application, I have a map that includes a MapImageLayer with a dynamic layer as a sublayer. The user can change that dynamic sublayer as he's using the ...
0
votes
0answers
12 views

ArcGIS JS API 4.15 - Edit widget styling

I've got a problem: new version of Edit Widget is able to edit attributes and attachments. By default if content heigth is too large - vertical scroll appears, look at this Esri's example: https://...
0
votes
0answers
23 views

Why does my featureLayer load later if in the function it has to be loaded (ArcGIS JS API)?

I'm modifying the Esri editor widget to load my feature layer programatically if the widget opens. I don't understand the flow of the app. Here is the loader function: addErrorReportLyr: function(){ ...
0
votes
0answers
36 views

ESRI IdentityManager.registerToken unable to register Multiple servers

I have multiple secured service that needs to be added to my map for which I need to register multiple servers using ESRi IdentityManager.registerToken method IdentityManager.registerToken({ ...
0
votes
1answer
38 views

Multiple queries on feature layer ArcGIS JS API

I have been stuck with an issue, that I thought will be simple to fix. I am developing a web application (with ArcGIS Javascript 4.15) where I can click on a property. From the geometry of the ...
0
votes
1answer
21 views

In ArcGIS Web appbuilder widget, how can i use a variable what is declared in another widget file?

In Edit widget, i modified the RelatedRecordsEditor.js to automatically upload input fields with data like webMapId. var mapid=dijit.byId("dijit_form_ValidationTextBox_1").attr("value"); ...
0
votes
1answer
27 views

How to hide feature layer outside of boundary feature layer using ArcGIS JavaScript API?

I am developing JavaScript application. I have two feature layers one for features with point symbol and one for boundary with line symbol. I have added these two layers on map like below image. I ...
0
votes
1answer
20 views

applyEdits to FeatureLayer does not add geometry

I'm trying to add the feature into the layer with a geometry type polygon. When I call applyEdits it adds the feature attributes into the layer but not its geometry. Here is my dummy data object which ...
1
vote
0answers
26 views

Need assistance in project regarding Change Detection

My task initially was to classify the area into land-use classes like forest, sparse vegetation, agriculture, river, etc I had done that by clustering the whole area and then reclassing it. I had to ...
1
vote
1answer
29 views

ESRI JS API - CIMSymbol with text from graphic attribute

The following sample shows a great use of the CIMSymbol in the ESRI JS API. https://developers.arcgis.com/javascript/latest/sample-code/cim-symbols/index.html Is it possible to set the textString ...
0
votes
1answer
20 views

Adding feature layer in ArcGIS

I am trying to add client-side feature graphics to a feature layer in a map with a roadmap baselayer using the following code, but nothing seems to appear on the map: function CreateFeatureLayer() { ...
0
votes
0answers
21 views

Move new graphic layer to a higher index (move up)

I have created a simple polyline line graphic layer, i.e. below: const polyline = { type: "polyline", paths: [ [lineY, lineX], [coordinatesBx, ...
0
votes
0answers
22 views

Cannot read property 'demographics' of undefined in ArcGIS API

I have create a custom HTML page for Find Existing Location analysis following this link https://developers.arcgis.com/javascript/3/jsapi/findexistinglocations-amd.html#event-job-submit I am able to ...
0
votes
0answers
26 views

How to create own login page in ArcGIS API for JavaScript

I have created some custom HTML pages using ArcGIS API for javascript. I want to secure access to the ArcGIS services from ArcGIS API using username and password of the ArcGIS Online portal.I want to ...
0
votes
0answers
33 views

ArcGIS JS API 4.x @renderable() @aliasOf

I am trying to implement custom widget which renders results after changing property value which works fine like this (when results property is changed in the same widget): @renderable() ...
1
vote
1answer
42 views

Setting minZoom at runtime in ArcGIS API for JavaScript

I want to set maxZoom and minZoom at runtime. Initially I set maxZoom and minZoom as shown in below code new this.Map("map1", { basemap: "streets", center: new this.Point3(-98.35, 39.50), ...
1
vote
1answer
21 views

Problem creating FeatureLayer object in esri javascript API

I'm just a simple farmer tending to his ArcGIS online hosted feature layers. I pinpointed the problem as that I can't seem to properly create a FeatureLayer object based on a url to a hosted feature ...
0
votes
0answers
18 views

Viewing Revit file using ArcGIS Javascript API

I have a Revit file with GPS information in it. Is there any provision to view that Revit model in ArcGIS Web directly without using ArcGIS desktop by publishing it as a web view and then opening ...
1
vote
1answer
29 views

ESRI Converting JSON Object to Polygon Object

I am using require.js // output of polygonString is // {"spatialReference":{"latestWkid":3414,"wkid":3414},"rings":[[[18240.432900000364,43817.389900000766],[18214.047899999656,43880.139900000766],[...
0
votes
0answers
20 views

Publish a feature service from a shapefile in ArcGIS Online using JavaScript

I have created a custom HTML page for data extract analysis using ArcGIS API, the API save the shapefile in zip format by default in my ArcGIS portal, so I just want to publish the shapefile(.zip) as ...
0
votes
2answers
27 views

Resetting all layers one time, when click is fired

Within a click function, I have the below code: home.addEventListener('click', () => { myAPP.mapview.map.layers.items.forEach(item => { item.visible = false; }); ...
0
votes
1answer
32 views

Creating map with multiple selectable layers using ArcGIS

I want to make a map with an option for the user to choose between 3 layers to view. All layers with a certain type of point. If possible, I would also like the user to view more than one layer at a ...
0
votes
1answer
31 views

Possible to loop through and turn off ALL layers?

The below finds my layer and shows visible property in the console, when I toggle it there from 'true' or 'false' it changes. myApp.mapview.map.findLayerById('cool_layer'); But when I run the below ...
1
vote
0answers
23 views

Restrict layers in attribute table widget in JavaScript?

I'm building a webapp, where you can change from several map services. In every map service there are several layers with same naming, but not with the same number of layers. I cannot set the ...
-1
votes
1answer
50 views

Sketch Widget in JavaScript API for ArcGIS

Is there any way to extract the coordinates of the vertices of the graphics drawn using sketch widget? I want to use those coordinates to generate a kml file.
0
votes
0answers
23 views

Basemaps without a portalitem ID

The goal is to save the state of a basemap from the basemap gallery, then re-render it later. I have done this sucesfully with all my basemap using the below portalItem.id however there are a few ...
0
votes
1answer
30 views

init.js:36 GET https://js.arcgis.com/3.28/esri/WebMap.js net::ERR_ABORTED 404

I got above error in my browser developer tools window. This happened when I added esri/WebMap to my widget.js file of custom widget I was building.
1
vote
1answer
32 views

Programatically toggle Basemap labels

I can toggle the active basemap programmatically using the code below, but how can I also include a widget to show or hide the basemap labels programmatically? myApp.widgets.basemapManager....
0
votes
2answers
73 views

Hyperlink in ArcGIS JavaScript API map identify dialog?

IBM's Maximo Spatial 7.6.1 uses the ArcGIS JavaScript API/map service to serve up a web map to Maximo: In the Maximo map, I've included URLs as values in the GIS layer. I want to be able to use the ...
1
vote
1answer
26 views

On the fly/Dynamic measuring not working on Measurement Widget with different Basemap

I am developing an application with OS Open Carto Map as a Basemap and I have added a Measurement widget in the app. The measurement widget works fine for when the points are clicked for distance and ...
3
votes
1answer
139 views

Creating Custom Vector Basemap with ArcGIS API for JavaScript

I am using the ArcGIS API for JavaScript 3.x and would like to add a vector tile layer that I created to my map as a basemap that appears in the basemap gallery dijit. I am able to load my layer into ...
0
votes
2answers
40 views

restrict search to specific city - ArcGIS JS API 3.31

I'd like to use the Search widget to search for addresses and intersections in a custom web app (JS v3.31). Is there any way to restrict this search to a particular city? I see how to restrict it to ...

1
2 3 4 5
40