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?
Solved! Go to Solution.
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.
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.