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
Mapping libraries often require a url that points to a map style definition, which defines how a map is rendered. In our case, we want a frontend client to be able to get a stable URL that points to the backend, which will do the work of figuring out which resource to send back (see #439).
This makes it much simpler for frontend integration, as it doesn't have to implement any logic to figure out which specific style resource to point to and would roughly look like this:
Retrieve the url e.g. const styleUrl = manager.getStyleJsonUrl()
Set that url for the map e.g. new mapboxgl.Map({ container: 'map' style: styleUrl }) (plain JS) or <MapView styleUrl={styleUrl}>... (React)
Tasks
Implement a method on the MapeoManager for retrieving a stable style.json url.
The text was updated successfully, but these errors were encountered:
Description
Mapping libraries often require a url that points to a map style definition, which defines how a map is rendered. In our case, we want a frontend client to be able to get a stable URL that points to the backend, which will do the work of figuring out which resource to send back (see #439).
This makes it much simpler for frontend integration, as it doesn't have to implement any logic to figure out which specific style resource to point to and would roughly look like this:
Retrieve the url e.g.
const styleUrl = manager.getStyleJsonUrl()
Set that url for the map e.g.
new mapboxgl.Map({ container: 'map' style: styleUrl })
(plain JS) or<MapView styleUrl={styleUrl}>...
(React)Tasks
MapeoManager
for retrieving a stable style.json url.The text was updated successfully, but these errors were encountered: