Alaska Split on Basemap?

224
3
02-05-2024 09:24 AM
Labels (1)
Astrassman
New Contributor II

Hi AGOL Community,

I have an Interactive Legend Instant App I am building from an existing AGOL webmap, so this is being first posted here, but I expect this is an issue covered elsewhere I just cannot locate in search. 

The map spans the United States, including all of Alaska.  Unfortunately, the light gray basemap (and every other base map I have picked), splits the world along the Pacific Ocean.

This results in "Zoom to Map" showing the entire world because part of Alaska in on both the far right and (mostly) far left of the map.  Picking "Zoom to Alaska" has the same result.  The rest of the CONUS behaves as expected.

Are there any suggestions on a solution for pulling my map into a single viewshed that is not disconnected across the edge of the map?

Thanks,

Andrew

0 Kudos
3 Replies
KellyHutchins
Esri Frequent Contributor

Do you have an app that shows the problem? I put together a test app and can't repro? Are you. using the legend zoom tool or the popup zoom?

 

https://jsapi.maps.arcgis.com/apps/instant/interactivelegend/index.html?appid=5540a107497249fc83180e...

0 Kudos
Astrassman
New Contributor II

The data and app are not approved for sharing, but here's a quick screen grab where Alaska is selected in the legend and then the zoom to magnifying glass is clicked.  If you start from CONUS and pan up to Alaska, you do not get the issue, it's only on the zoom to. You can see how the outer Aleutian Islands (circled) are on the other side:

Astrassman_1-1707158202015.png

 

 

0 Kudos
MarcoBoeringa
MVP Regular Contributor

Not sure if there is a solution for you in here, but John Nelson's ArcGIS blog posts are always a joy:

How to reattach land that spills over the International Dateline