NWFWMD-IT / Hydrologic-Monitoring-Project

0 stars 0 forks source link

Create Offline Enabled Basemap for ArcGIS Explorer and Survey123 #36

Closed mripp closed 10 months ago

mripp commented 2 years ago

The ArcGIS Explorer Field or Field Maps application will need to use a basemap that is enabled for offline. We can publish the imagery as a Vector Tile Layer and/or Vector Tile Package https://pro.arcgis.com/en/pro-app/latest/help/sharing/overview/create-an-offline-map.htm

More info: https://resources.esri.ca/getting-technical/taking-arcgis-field-maps-offline-with-arcgis-enterprise

mmannion commented 1 year ago

Ask @SarahNWF about which ArcGIS Online credentials to use

mripp commented 1 year ago

On 12/12 we discussed having a Street and Aerial basemap available for the whole district. We will need to create a packaged tile layer for each.

Sarah will give us the ArcGIS Online credentials and also the outline of the boundary

mmannion commented 1 year ago

Research adding District aerial imagery as basemap or layer (per team meeting)

mripp commented 1 year ago

Recommended to create a Vector Tile Layer and/or Vector Tile Package for use in offline maps

https://pro.arcgis.com/en/pro-app/latest/help/sharing/overview/create-an-offline-map.htm

mmannion commented 1 year ago

@SarahNWF to review communications with Phillip Royal > decide how to proceed.

SarahNWF commented 1 year ago

Created a test map for Offline use in explorer. Users can download areas they'll be working in if they want District aerial imagery out in the filed. Starting with just Leon County. Workflows in Explorer and Field Maps.

mmannion commented 1 year ago
SarahNWF commented 1 year ago

Portal item URL for offline compatible basemap

mripp commented 1 year ago

@SarahNWF when attempting to download the basemap offline in Field Maps I am getting a prompt to login to ArcGIS Online. Can you confirm the credentials were stored in the offline basemap? Should be able to check in the settings

SarahNWF commented 1 year ago

Each time I try to store the credentials with the basemap I get the "error generating token" message. I think when I uploaded the basemap during the meeting I forgot to store the credentials with the item. It might be why it worked that time when before it kept giving me errors. I'll try to look into why it keeps giving me an error.

@mripp The error might be due to some firewall or certificate setting. I found an alternative we might be able to use. It's a vector tile basemap from the living atlas. Item page in portal, Item URL

mripp commented 1 year ago

@SarahNWF I tried to download an offline map area with your Basemap Test map but am still getting a prompt to login with ArcGIS Online credentials. So I don't think its working yet :(

As a test I tried to add this aerial basemap to the Portal, storing my own ArcGIS Online credentials but I get a different error. Curious if you get it too https://www.arcgis.com/home/item.html?id=226d23f076da478bba4589e7eae95952

SarahNWF commented 1 year ago

@mripp I think I found the solution. Turns out the username field when saving the ArcGIS Online credentials in portal is case sensitive. I didn't think it would be case sensitive since when you're signing in to ArcGIS Online proper the case doesn't matter. It seems like I was able to successfully save the credentials this time. Try downloading an area with the Basemap Test now. I was able to get it to work on my tablet.

mripp commented 1 year ago

@SarahNWF Nice find! I was able to download an offline area in your Basemap Test map now. I also added this basemap to my working webmap and was able to create an offline area on my phone.

I will try and create a predefined map area in the Field Maps browser app next. I am currently getting an error and will try and troubleshoot that next Image

mmannion commented 1 year ago

Re: username case sensitivity, FWIW I found the same thing with Enterprise when... shoot, I can't remember. I think it behaved differently when logging in to Portal from a browser vs. connecting to the same Portal from Pro. It took me a while to realize what was happening.

Anyway, the takeaway is that we should be consistent in our upper/lower case patterns when creating user accounts from now on. I'm guessing that Okta will make this a non-issue for most users, so it's probably only admin accounts that we need to pay attention to.

mripp commented 1 year ago

I was able to create a pre-defined map area and download it to my phone/desktop. Will demo during the next meeting

SarahNWF commented 1 year ago

@mripp I added the Wakulla and Leon county buffered imagery areas to the Basemap Test webmap. I tried testing downloading offline areas on my phone, could you test it on your end when you get a chance? The tile package itself is under the imagery folder in content - called "Leon_Wakulla".

I'll have more details for Monday's meeting.

mripp commented 1 year ago

@SarahNWF I was able to download an offline map area centered around Tallahassee (Level of Detail: World to Building). I was getting a message that "Map area is too large" when I tried to download the map area for the entire district

Feedback on call:

mripp commented 11 months ago

To create an offline basemap for use in Survey123 there are 2 options

  1. Use ArcGIS Pro to create a Vector Tile package and then upload this to Portal. This would require an update whenever the team wants to update the basemap (documentation workflow)
  2. Use the Field Maps in ArcGIS Portal interface to create an offline map area. You can set an update frequency to update the offline map area BUT the field worker would still be required to refresh/redownload this onto their device each time. (workflow documentation)

Questions

Testing

Image

mripp commented 11 months ago

On 11/13 we discussed that the Imagery basemap gets updated every 3 years so it would make sense to have the streets basemap for Survey123 updated on this same 3 year schedule.

We decided to go with method 2 since it is working in Portal and doesn't require ArcGIS Pro.

We decided that the map area will not have an update frequency but instead by updated ad-hoc when needed.

SarahNWF commented 11 months ago

I submitted a ticket asking for assistance (or documentation I missed) with side loading the imagery tile packages onto the laptops.

SarahNWF commented 10 months ago

I was able to create a sideloaded basemap for offline use in Field Maps. It's a combination of the streets basemap and the imagery buffer areas. I created a single offline area of the District at the detail level we wanted.

@mripp if you want to test it on Field Maps on your machine, you can download the tile package here: https://northw091-my.sharepoint.com/:u:/g/personal/sarah_hibbard_nwfwater_com/EcGh8PykQYVBvIO35DsKEfUBetQa2J0Bjc6XdUgelPWWUg?e=cVybSe (GitHub won't let me upload this, it's too large)

Once you have it stored locally, follow these directions to transfer it to the Windows Subsystem for Android files: https://allthings.how/how-to-transfer-files-to-wsa-storage-on-windows-11/

Then you can set the tile package as the default offline basemap. I created the offline area in the app on the device.

Image