arcgis-javascript-api-4's questions - English 1answer

109 arcgis-javascript-api-4 questions.

I am trying to create a FeatureLayer from a JSON object that will be fetched from another service. I am not looking for something complicated, just something that works. var layer = new FeatureLayer({...

I'm working with the ArcGIS Javascript API v4.7 and I've run into a roadblock. I have several points on my map with the same coordinates. Therefore they show up exactly on top of one another with no ...

I have a basemap layer that I published and placed on my application and this layer has a number of blank areas that shows up as white areas since the background of the layer itself is white. Is ...

Asked this already in GeonNet, but asking here as well as I can get valuable help from both sites. I'd like to change the view.spatialReference property in place to be able to switch between basemaps ...

Hopefully something silly I'm overlooking. I started building my map with this sample code But once I started using my own data, it isn't appearing correctly on the map. Example: These coordinates [...

I was wondering if there is a graphic or geometry element that can be access within CSVLayer in arcgis JS 4.7, I have been unable to extract the geometry which I want to save as a JSON or array that I ...

I'm in the process of updating my application from ArcGIS JS API3.x to 4.7. I'm unable to add labeling to a feature class. As per ESRI, they support labeling only for 3D or a MapImage layer in 2D. In ...

I've implemented a 'route between points' site using the 4.7 JavaScript API. The logic works fine, but I'm having a graphical display issue: when a point is picked up and dragged to a new location it ...

I am using JavaScript 4.7 and I am able to retrieve json using esriRequest from our ArcGIS server. However, I have difficulty in showing this data on the map layer. the call map.addLayer(...

I am trying to add a WebTileLayer to my ESRI map and the code runs without any problems. I can see the protobuf files being received by looking at the network inspector, however they do not appear on ...

I have some issues connecting to my ArcGis Portal JavaScript API. I don't know what to specify in: require(["in here"], function (in here) { }); And also where to put authentification ...

I am attempting to display related fields in a popup window. I've created a GraphicsLayer, consisting of features from the results of a QueryTask. Upon adding the features to the GraphicsLayer, I am ...

I am using version 4.5 of the ESRI ArcGIS Javascript API with a MapImageLayer. I'm setting popup templates on each layer. The problem is that, when showing the Popup following a click in the map, if ...

I'm trying to get the geometry in an array from a queryTask using the Esri JavaScript API v4.7. I'm sure I'm missing something but I dont know what. I want to take geometry from this to then create a ...

I am trying to update legacy map code to the latest ArcGIS version of 4.6 and noticed this warning in the console when querying a feature layer. [esri.core.Promise] DEPRECATED: then() -- use .when(...

I am trying to add a different map marker for every lat/long point added through a csv file using CSV Layer,is it possible to loop through each of the point for which I am going to add map marker and ...

I am attempting to join 2 layers from the same ArcGIS Online service together, using ESRI's limited sample for MapImageLayer. I would like to join the first [ID: 0] and second [ID: 1] layers in my ...

I use ArcGIS API for JS 4.0 but I didn't find a widget to add a scalebar to my web application. So, I tried to use ArcGIS API for JS 3.16 which has a scalebar widget, but I don't know if it's a good ...

I am looking for a way to add a georeferenced image file to a map in the ESRI 4.x Javascript api. In the 3.x version this was possible through the addImage method on MapImageLayer. It looked like: ...

Can you use a renderer function for a MapImageLayer sublayer? The documentation says you can use a renderer function with MapImageLayer. I am using a MapImageLayer and sublayers so that I can label ...

I have an attachment in ArcMap attribute table and would like to show the image attachment in the popup when a feature layer element is clicked but the code I tried to show the attachment but this ...

Using esri javascript api 4.3 in an Angular 2 application. I initially generate the map using this code: OnInit() { this.map = new Map({ basemap: 'streets' }); this.map.layers.add(new ...

The below code works to change the Graphic Symbol and Geometry in ArcGIS 3.18 JavaScript API. /********************** * Create a point graphic **********************/ ...

I have a geoprocessing widget that does some spatial queries, and currently returns a string in the output tab using SetParameter. The string is a URL. What's the best way to display this as: 1. a ...

I am trying to use JS API v4.x on Federated ArcGIS Server, but I am having problem regarding setting up the JS API v4.x. I am deploying arcgis javascript library and sdk v4.6 in an IIS server ...

We are having a problem with fast drag event on the new esri js 4.6 api. When a user drags the map too fast, the map extent's changes rapidly. I've detected that on a fast drag, there's an animation ...

I have a basic ASP.net web app that loads an ESRI base map. The index page looks like this: The JavaScript code: function (Map, FeatureLayer, LabelLayer, InfoTemplate) { var map; ...

My code as below: require([ "esri/Map", "esri/views/SceneView", "esri/layers/FeatureLayer", "dojo/domReady!" ], function (Map, SceneView, FeatureLayer) { var featureLayer = new ...

I am trying to create a map with the the ArcGIS API for JavaScript v4.3. Some of the points that I want to visualize are on the same location and I would like to use some type of point clustering to ...

I'm classifying images of Red River Delta. Unfortunately, the region is split into two consecutive Sentinel 1A images. Therefore, I want to mosaic them into single image for convenient classification. ...

I am able to cluster the points in the map using the following code: var serviceUrl = "https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Places_of_Worship_India/FeatureServer/0"; ...

I'm looking for ways to customize built in widgets, but couldn't find anything in version 4.x. In version 3.x you can do it in following way as mentioned in doc https://developers.arcgis.com/...

I am using a SceneView and SceneLayer with the ArcGIS Javascript API 4.5. My SceneLayer has point features and I want to display them as cones with the point of the cone pointing to the ground. I can ...

I'm newbie in this ArcGIS API for javascript. The problem is I want to change the fieldName value . In SQL Query, it is like Select ....,Length_m_, CASE WHEN Length_m_ <= 0 OR Length_m_ IS NULL ...

i am using the Esri default basemap 'hybrid'(which comes with a layer of imagery and labels) in a arcgis api v4.x map, when i put a featurelayer on top of the basemap, the labels are covered by the ...

I am trying to add an event listener for when the scale of the map changes, that is scale or zoom level changes in order to enable or disable feature layer label text. When the user zooms in to a ...

I have a feature layer and a related table. I want retrieve information from the related table and show them. Which API is referenced when using ArcGIS JavaScript API 4.1.?

I'm using the Print widget in the ArcGIS JavaScript API (4.4) and would like to set the File format to default to PDF instead of PNG8. I've read through the documentation and don't see a ...

I am currently working on a 3D map. I am wondering if it is possible to create a drop down list to toggle between 2D to 3D map.

See below: require(["esri/Map","esri/views/MapView"], function(Map, MapView) { var map = new Map({ basemap: "streets" }); var view = new MapView({ container: "viewDiv", map: ...

the print service of application works well, but after converting the map area to pdf , the legend shows null filled values for polygon features(as in figure for Build up area,Forest dense area). I ...

Can we find the event when basemapGallery is completely loaded in arc GIS JS API 4.4 ? Because when try to find the items in basemapGallery view model, it is taking sometime to get it loaded, ...

I'm struggling with an ArcGIS JavaScript API 4.4 popup. There are dozens of attributes on dozens of layers, which is a lot of coding if I have to specifically mention and format every single one. I ...

I'm trying to write a handler for a mouse-over event on a FeatureLayer in ArcGIS JS API 4.4. It seems in the previous API this was built in, but I'm not finding it anywhere in the new API. Am I ...

Can you please let me know if it is possible to present an ArcMap Generated Layer (.lyr) on top of ArcGIS JavaScript API Map without using ArcGIS Server? Like using server uploaded file from URL ?

I'm attempting to set the spatialReference property of the view to 102667. The console logs the error: init.js:321 [esri.views.MapView] The view could not be initialized with the spatialReference ...

I have a system (ArcGIS Server 10.5, ArcGIS JavaScript 4.3) whereby I'm allowing the user to rotate the map, and then request a PDF output of the map. I need to ensure that the symbology is always ...

I am trying to get the current basemap after user selection, in the sandbox provided by ArcGIS, sandbox link. I added a piece of code: basemapGallery.on("selection-change", function() { ...

I started following the code sample the Esri provided, but when I run it the map doesn't show up. This is the link: https://developers.arcgis.com/javascript/latest/sample-code/get-started-mapview/...

In desktop, there is http://pro.arcgis.com/en/pro-app/help/editing/create-arc-segments-and-curves.htm to create arc and curves, but I can't find any tutorial about how to make and create arc or curves ...

Language

Popular Tags