You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A frontend client is provided a single endpoint to use for retrieving a style.json definition (see #438). This endpoint should be handled by the backend, which performs the following resolution strategy to determine the style.json payload that's returned as the response:
Check if there's a offline static map with the style id of default (or whatever name we decide on). In practice, this means that there's a file that exists on the filesystem at __ROOT__/default/style.json, where __ROOT__ is a provided directory where static custom maps are stored. If it exists, serve the style.json content as the response
if internet access is available, proxy a default online style of our choosing (e.g. using a mapbox style that requires our account's public access token)
achou11
changed the title
Implement style.json resolution strategy a when handling the canonical style url
Implement style.json resolution strategy a when handling the stable style url
Jan 18, 2024
Description
A frontend client is provided a single endpoint to use for retrieving a style.json definition (see #438). This endpoint should be handled by the backend, which performs the following resolution strategy to determine the style.json payload that's returned as the response:
Check if there's a offline static map with the style id of
default
(or whatever name we decide on). In practice, this means that there's a file that exists on the filesystem at__ROOT__/default/style.json
, where__ROOT__
is a provided directory where static custom maps are stored. If it exists, serve the style.json content as the responseif internet access is available, proxy a default online style of our choosing (e.g. using a mapbox style that requires our account's public access token)
if internet access is not available, serve an fallback map style that uses statically served local geojson files (e.g. https://github.com/digidem/mapeo-offline-map)
Tasks
The text was updated successfully, but these errors were encountered: