I don’t think you can use directly osm file.
These kind of file are raw data for a Tile server.
The role of the tile server is to provide Tiles (png image) for the lat/long, zoom and layers the client request. Perspective component is a map client.
OSM file => Tile Server (local or web hosted) <=> Perspective map component
When you use a map component in vision, you connect to a web tile server.
The component has some tile cache feature to store last visited tiles on the client or on the gateway to avoid requesting the same data multiple times.
To obtain offline support (no internet access) your tile server has to be “local”.
As a side note:
With open street map, if you don’t wan’t to host a full tile server in charge to generate the tiles from the client request, you can generate tile files (pictures file in .png) for all zoom level and for a limited area and store theses tiles file in a web server (igntion gateway web server for example). The client will request directly the tiles files of the web server.
We have done such of component for vision with this kind of “offline” support.
Perhaps perspective map component can be configured to request directly tile files provided by ignition gateway webserver ?