Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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
1 vote
1 answer
141 views

How to obtain the visible extent of a SceneView?

Using the ArcGIS JavaScript API v4.24 it's possible to get the Extent of a SceneView:: The extent represents the visible portion of a map within the view This works as expected in a 2D MapView, or ...
Stephen Lead's user avatar
  • 21.2k
0 votes
1 answer
75 views

JavaScript ArcGIS: Update scene clipping area after creation

I want to update (increase / decrease) scene clipping area after I create it. My goal is to give the user ability to adjust the clipping area. I am using scene view, if that's relevent. I've managed ...
KlemenPl's user avatar
  • 129
2 votes
0 answers
380 views

Create Extent to use in mapView.goto

I would like to use the goTo() method of the mapview, and pass it an Extent that I construct in the code. I created the extent by: const extent = new Esri.Extent({ xmax: maxX, xmin: minX, ...
Normal's user avatar
  • 133
0 votes
1 answer
1k views

How to set extent of map for list of coordinates using ArcGIS JavaScript API

I am trying to set the extent for my ArcGIS map using the JavaScript API built in. Here's my code: const [Extent] = await loadModules(["esri/geometry/Extent"]); ...
Dragon's user avatar
  • 51
3 votes
2 answers
1k views

Setting map extent using offset in ArcGIS API for JavaScript v3.x

I am trying to set map extent using an offset because there is a panel floating over the left side of the map and sometimes, when I zoom to a feature extent, the feature is partly hidden behind it. I ...
Below the Radar's user avatar
2 votes
1 answer
484 views

Using Google Maps Restricting Bounds API with ArcGIS JavaScript API?

I am trying to make a map with ArcGIS 3.29, but in my map I need a bounding box. The ArcGIS API does not have a bounding box function, but the Google Maps API does. What I am having trouble with is ...
Emily Watt's user avatar
1 vote
1 answer
299 views

ArcGIS JavaScript 3.28 extent not working

I'm trying to get an extent to work on a web map app but keep getting an error when trying to pass the extent parameter: <!DOCTYPE html> <html> <head> <meta http-equiv="...
geoJshaun's user avatar
  • 1,335
0 votes
1 answer
1k views

Creating bounding box in ArcGIS API for JavaScript?

I am trying to create a bounding box for my map in ArcGIS 3.28. I want the bounding box to stay in a given area based on the coordinates given. I found a class called Extent in the API Reference that ...
Emily Watt's user avatar
1 vote
1 answer
380 views

Set extent in a webmap Esri

I'm creating a storymap from a developers tutorial I found on Esri. The point of the tutorial is to insert an additional reference map. Everything is working well but I want the extent to closely ...
Guy832018's user avatar
0 votes
1 answer
1k views

Creating animations with goTo and extents using ArcGIS API for JavaScript?

I am using the ArcGIS API for JavaScript. Right now, I am trying to change the extent of a view dynamically. <script> var view; var new_ext; require([ "esri/views/MapView",...
Drimer's user avatar
  • 1
0 votes
1 answer
1k views

Using Extent and SpatialReference with ArcGIS API for JavaScript?

I am trying to display an ArcGIS Map on my webpage. Whenever I try to use the 'extent' Attribute next to the 'center' and 'zoom' Attributes, I get the following error: GET https://js.arcgis.com/4.8/...
Drimer's user avatar
  • 1
1 vote
1 answer
1k views

Why is ArcGIS API for JavaScript Map.setExtent snapping my extent?

I'm having some problems setting the Map extent using ArcGIS API for JavaScript 3.18. Whenever I call setExtent with myExtent, the Map ends up at some extent that is close to, but significantly ...
Corey's user avatar
  • 11
2 votes
1 answer
279 views

Grabbing current map extent when using State Plane coordinate system?

When using the Share widget in the Configurable Map Viewer (CMV), I'm unable to grab and dispaly the current map extent while using a custom basemap projected in the State Plane coordinate system. It'...
Jesse Hopkins's user avatar
2 votes
0 answers
234 views

Showing only legend items that are actually displayed within current map extent using ArcGIS API for JavaScript?

I'm using TOC/Legend widget as a default legend panel in my ArcGIS based JavaScript API web app. It works great, beside now i want to filter this legend panel based on users current map extent. The ...
Suraj's user avatar
  • 629
1 vote
0 answers
205 views

ArcGIS javascript - update a queryTask result on extent change

I have an application that runs a queryTask on a map service layer and returns various feature results in a div when they click on a table of contents. However, I'd like it to automatically update ...
beppe d'angelo's user avatar
2 votes
1 answer
3k views

Zooming to ArcGIS JavaScript API graphic feature, but not to full extent?

I have a Python based geoprocessing service that gets called in my web app. The web app takes a few input parameters, and zooms to a returned buffered section of cable that meets the criteria. This ...
ianbroad's user avatar
  • 9,141
0 votes
1 answer
778 views

How to set the map extent so as to show conccurently all the features included in different map layers

I want to load may diffent layers on my map using the ArcGis JS API. I want to set my map's extent so as to show all the features of all the layers concurrently. In other words I am looking for the ...
Smalis's user avatar
  • 776
1 vote
1 answer
2k views

Creating buffer using ArcGIS API for JavaScript?

How can I create a buffer that is based on the shape of the geometry that has been drawn? My map application creates a default square buffer extent and I want to create a buffer round a circle based ...
user2932466's user avatar
0 votes
1 answer
58 views

Passing extent from web map to PDF for integration?

I'm trying to figure out whether I can take an extent (or coordinatess with a Zoom level included) to a PDF in order to author a PDF that displays both GIS and report-styled business data? Is this ...
randomblink's user avatar
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
5 votes
2 answers
15k views

Zooming to extent of query result in ArcGIS API for JavaScript?

How do I change the extent on the map in function of a query? in legend I have no problem using the function showResults (featureSet) {... but, can not get any display in AMD. Here I put a piece ...
wika's user avatar
  • 51
2 votes
1 answer
366 views

Extent Intersection when WrapAround180 enabled

Allowing WrapAround180 allows map extents to go beyond the true Web Mercator extent. Once this happens I am not able to use map.extent.intersects(point). My work around was to Normalize extents in ...
Aamir Suleman's user avatar
2 votes
2 answers
2k views

ArcGIS javascript API Extent formats

I am trying to understand how the extent works in the javascript api. I create an extent like the following: var beginExt = new esri.geometry.Extent(-159.6716766, 19.520, -67.843, 64.8348, new ...
Xaxum's user avatar
  • 292
1 vote
1 answer
661 views

load map parameters after opening new window

I am trying to open a new window from an existing window, which will contain a map with an extent derived from the original window. In other words, the user will zoom to an area in the original ...
JasonBK's user avatar
  • 610
3 votes
1 answer
1k views

ArcGIS JavaScript API: Does current extent match initial extent

In using the JS API, I need to detect if the current extent matches the initial extent. If no match, then I need to display a UI element ("Return to Original Extent"). The initial extent is ...
newtonpage's user avatar