View local GeoJSON (experimental)

Download the example Average Wind Speeds GeoJSON. This particular example showcases the usage of the File System Access API in newer versions of Chrome and Edge browsers (see the article The File System Access API: simplifying access to local files and the file system access explanation). Instead of uploading the file to a server and then retrieving it, the browser directly accesses the file locally, eliminating the need for any network transfer. Unlike the File API, this example also allows writing to the file, although that functionality is not implemented here. It’s important to note that this example is experimental as the window.showOpenFilePicker is not supported by all major browsers. For details on browser compatibility, please refer to the browser compatibility page.



Related examples

An extension of MapLibre GL JS