Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
1 answer
150 views

Applying specific styling to group layers in the LayerList Widget in ArcGIS Maps SDK for JavaScript

Using ArcGIS Maps SDK for JavaScript 4.24, I would like to change the formatting of Group Layers within the LayerList Widget, such that the group layers can be immediately distinguished from non-group ...
Stephen Lead's user avatar
  • 21.3k
0 votes
0 answers
53 views

Adjust the zoom of MapImageLayer, according to what is to be shown

I need to find a way to programmatically adjust the map's zoom when it gets loaded, so that only the sublayer to be shown, is visible in the area displayed in the map. With FeatureLayer maps, I use ...
Beauty's user avatar
  • 1
0 votes
2 answers
204 views

Disable "world hillshade" layer from esri/map in JS

I'm using arcGis on the web with js api. I'm creating a new map: new Map({ basemap: 'topo-vector', } when i observe the map, i see that besides the 'topo-vector' the is another layer: "world ...
Normal's user avatar
  • 133
2 votes
1 answer
363 views

ArcGIS API GraphicsLayer is not visible on map

I'm creating an onClick eventhandler to create a point on every click on the map, but the Graphics layer is not visible; Has anyone else encountered this? Is there something special I'm supposed to do ...
Namoat's user avatar
  • 307
2 votes
1 answer
1k views

One popup for multiple layers in ArcGIS JS API

I am trying to have multiple feature layers that all share one popup in an ArcGIS JavaScript map. As far as I know, the only way to define a popup is on a specific layer, when you do something like: ...
Seth Lutske's user avatar
0 votes
1 answer
72 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 ...
Elena Correa's user avatar
-1 votes
1 answer
337 views

Get existing layer by name from map having multiple map/feature services in ArcGIS Javascript API 3.x

I want to get existing layers from map and toggle on the visibility of the layers. The map has multiple services. I have the rest url for the service or the layer. And able to access the layer by ...
Venkat's user avatar
  • 79
0 votes
2 answers
2k views

Add a local GeoJSON file as a layer with GeoJsonLayer

I turned a state boundary feature class into a geojson file called region2_boundary.json: { "type" : "FeatureCollection", "crs" : { "type" : "name", "properties" : { "name" : "...
gwydion93's user avatar
  • 1,935
0 votes
1 answer
149 views

Have GraphicsLayer working but now need to put it in or convert to FeatureLayer (JavaScript)

I have a GraphicsLayer working for "Regions" and the corresponding popup template information for the staff within each region (below). function fillRegionMarkers() { // Create ...
Pats2kDynasty's user avatar
0 votes
1 answer
1k views

ArcGIS JS API SimpleMarkerSymbol is not a subclass of Layer

I have polar ArcGIS map and want to display my own data on it. I will get data using AJAX REST queries to my server. As I understand, it isn't commonly used way to get data in ArcGIS, but presenting ...
QuarK's user avatar
  • 149
2 votes
1 answer
408 views

Displaying WMS sublayers on ArcGIS JavaScript

I want to display layers of a WMS service containing sublayers on ArcGIS using JavaScript 3. No layers appear, but the WMSLayer is marked as loaded. the WMS is described here: data shom WMS My code ...
user5329403's user avatar
2 votes
1 answer
3k views

Creating FeatureLayer from JSON data using ArcGIS API for JavaScript 4?

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({...
J. Doe's user avatar
  • 21
2 votes
1 answer
442 views

How to retrieve data from a related table by using ArcGIS JavaScript API 4.1?

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.?
Dayanidhi Khanda's user avatar
0 votes
1 answer
930 views

Button to turn off all layers in ToC at once?

I have created a map that has a Table of Content that i use to turn on and off desired layers. Is there a way to create a 'Clear' button that will untoggle the selected layers? I have a clear button ...
Chris Lai's user avatar
0 votes
1 answer
1k views

Removing Layer on ArcGIS API For JavaScript>

I am adding a markers layer called layer1 like this to map function drawPoints(mapInfo) { layer1 = new esri.layers.GraphicsLayer(); for (var i = 0; i < mapInfo.length; i++) { var ...
Suffii's user avatar
  • 588
1 vote
1 answer
609 views

Should I use Basemaps or Layers to overlay two maps?

I'm trying to create a map that essentially has two maps on top of each other (chosen from many map choices) at the same time. One of maps will have an opacity slider. Should I be trying to use two ...
Programmer's user avatar
3 votes
1 answer
4k views

Define spatial reference of layer in ArcGis JavaScript API

I get an error "Map: Geometry (wkid: 3301) cannot be converted to spatial reference of the map (wkid: 4326)" when I want to add only graphics layer. I found that spatial reference for a map is defined ...
Anuket's user avatar
  • 371
2 votes
1 answer
1k views

ArcGIS API for Javascript Not Adding Layer and/or Graphic during mouse event handler?

I am trying to add a graphic to my graphics layer during a map mouse event. In the javascript console, I can see that my graphic object is created and no error is thrown when I add the graphic to my ...
JavaScript_Guru's user avatar
2 votes
2 answers
1k views

Add featureset in graphics layer without iterating

I have a geoprocessing service that returns a large amount of features (featureSet). I want to attach them in a graphics layer, but I don't want to iterate over all them. I tried using the ...
Smalis's user avatar
  • 776
0 votes
1 answer
64 views

Legend hangs with large featurelayers at startup of ArcGIS API for JavaScript? [closed]

My problem is that I created an app with a lot of services that the user can use. The problem is that when I implement the legend widget and the code goes over startup(), the app becomes stuck and it ...
kartGIS's user avatar
  • 129
3 votes
1 answer
151 views

Change projections depending on the zoom level

Is it possible in ArcGis (from a technology/performance/… point of view) to switch projections depending on the zoom level? For example, Is it possible when zooming at some extent to the poles, my ...
Smalis's user avatar
  • 776
2 votes
1 answer
286 views

Restrict WMSLayer (not map) extent with ArcGIS JavaScript API

Is there a way to restrict the rendering of a WMSLayer to a specified extent without restricting map panning and zooming? That is, I need the client to be able to pan outside the limits of the ...
MattiasSp's user avatar
  • 328
3 votes
1 answer
483 views

How to replace the legacy function "doQueries " to AMD ESRI Javascript format?

I'm trying to understand the migration of ESRI API for javascript, from legacy to AMD. In the case of this example, how replace the fucntion doqueries????: function init() { map = new esri.Map("...
Wika's user avatar
  • 53
0 votes
1 answer
163 views

Mouse click event used gis application with much data

I will create an application that using my water pipes, electric cables, gas pipes service in a city. All of streets and roads including water pipes. My service is publishing pipes. My service like ...
barteloma's user avatar
  • 1,734
1 vote
1 answer
254 views

What ArcGIS Online feature service provides European states with unique country codes?

I'm writing a web page to display ECB statistics on an ArcGIS JavaScript API-based web map. I'm a bit lost when selecting a feature service so that I can use the UniqueValueRenderer to make the ...
Martlark's user avatar
  • 121
1 vote
1 answer
2k views

Unable to see the featureLayer but it is present on the map

I have created a featureLayer from featureCollection and I am able to add it to the map and when I execute, map.graphicsLayerIds, it also returns the id of the featureLayer, ["resultLayer"]. But I am ...
Sam007's user avatar
  • 4,415
0 votes
3 answers
946 views

Accessing fields of particular layer

I am trying to access the fields which I can see in this particular layer. I am able to see that it has fields but fetching the values in those fields is something that I am unable to do. Is there ...
Sam007's user avatar
  • 4,415
1 vote
1 answer
4k views

is it possible to obtain layerInfo from the Layer's URL

I am trying to fetch the names of the layers in the MapService, so that I can populate them in the dijit.form.select. I am able to get the layerInfo when the ArcGISDynamicMapServiceLayer is added to ...
Sam007's user avatar
  • 4,415
2 votes
1 answer
4k views

Adding layers using ArcGISDynamicMapServiceLayer

I am right now adding individual layers using FeatureLayer but it takes quite some time to load as the map is for US Counties (3076 count). I tried to load it using ArcGISDynamicMapServiceLayer but I ...
Sam007's user avatar
  • 4,415