Select to view content in your preferred language

.NET MAUI: Taking "areas of interest" offline

645
2
Jump to solution
06-28-2023 09:09 AM
Labels (1)
TreyDalziel
New Contributor II

Hello Community,

I am using the Esri.ArcGISRuntime.Toolkit.Maui package version 200.1.0;

My question is regarding taking an Envelope, or "area of interest" offline. Let's say we have two "areas" in North America that exist. See screenshot below:

ca6d239e-a82e-478f-babc-f5fe0653ec3d.png
 

Is it possible to take two separate envelopes (one in Canada, one in the US) as the "area of interest" when performing the 'GenerateOfflineMap(GenerateOfflineMapParameters g, string p),' where 'g' contains only one AreaOfInterest defined?

In other words, do I really need one large envelope that includes everything between my two "areas of interest"?

Relevant code below:

bfc4d859-8c23-4104-beaa-98268f56663d.png

fc583c00-c06e-4cc0-b819-7d0293c5838b.png

 

47d40f84-4584-4743-bc0d-69b621040eb3.png

 

Any tips or information is greatly appreciated.

Thanks, 

Trey

0 Kudos
1 Solution

Accepted Solutions
dotMorten_esri
Esri Notable Contributor

Have you tried using a Polygon with two rings instead of an extent? That might do the trick.

View solution in original post

2 Replies
dotMorten_esri
Esri Notable Contributor

Have you tried using a Polygon with two rings instead of an extent? That might do the trick.

TreyDalziel
New Contributor II

I went ahead and used a PolygonBuilder and used the 'AddPart()' method and it worked like a charm! At first I was having trouble with it since I was doing 'AddPoint()' rather than "Part," but all is well now.

Cheers!