Select to view content in your preferred language

Offline Web Application

1234
1
Jump to solution
07-22-2022 12:57 PM
JordanPerry
New Contributor

I am attempting to use ArcGIS JS API 4 in a Blazor application without internet connection. Is it possible to download all required JS modules and CSS files to store locally on the server? Also, if the data I want to display is available as Tile Packages (.tpk), would those be possible to be used as the data source for the basemap and other layers rather than an ArcGIS online service?

1 Solution

Accepted Solutions
BjornSvensson
Esri Regular Contributor

The ArcGIS API for JavaScript does not support Tile Packages (.tpk). 

For that and many other reasons, for offline applications, it's better to look at the runtime-based alternatives. AppStudio and our Runtime SDKs are excellent choices for building offline mapping solutions. They offer robust offline coding patterns that work across platforms and they are fully supported.

 

In comparison, browser-based offline mapping solutions have a number of challenges and limitations that make it challenging to build a stable application. Just to mention a few there are storage limitations, offline/online detection is challenging and gracefully handling offline browser restarts takes advanced JavaScript development and debugging skills.

View solution in original post

0 Kudos
1 Reply
BjornSvensson
Esri Regular Contributor

The ArcGIS API for JavaScript does not support Tile Packages (.tpk). 

For that and many other reasons, for offline applications, it's better to look at the runtime-based alternatives. AppStudio and our Runtime SDKs are excellent choices for building offline mapping solutions. They offer robust offline coding patterns that work across platforms and they are fully supported.

 

In comparison, browser-based offline mapping solutions have a number of challenges and limitations that make it challenging to build a stable application. Just to mention a few there are storage limitations, offline/online detection is challenging and gracefully handling offline browser restarts takes advanced JavaScript development and debugging skills.

0 Kudos