Skip to content

@sqlrooms/deck / createProtomapsStyle

Function: createProtomapsStyle()

createProtomapsStyle(flavor, apiKey): StyleSpecification

Creates a MapLibre style using the hosted Protomaps v4 vector tiles API. The browser-visible API key should be scoped to the host application's origins.

Parameters

ParameterType
flavorProtomapsFlavor
apiKeystring

Returns

StyleSpecification