maplibre-gl-svg-sprite - v0.2.0
Preparing search index...
RouteUrlBuilder
Class RouteUrlBuilder
Fluent builder for named-route URLs
Index
Constructors
constructor
Methods
size
pixel
Ratio
colors
tint
text
overlay
grid
param
build
Constructors
constructor
new
RouteUrlBuilder
(
route
:
string
)
:
RouteUrlBuilder
Parameters
route
:
string
Returns
RouteUrlBuilder
Methods
size
size
(
width
:
number
,
height
?:
number
)
:
this
Parameters
width
:
number
Optional
height
:
number
Returns
this
pixel
Ratio
pixelRatio
(
ratio
:
number
)
:
this
Parameters
ratio
:
number
Returns
this
colors
colors
(
opts
:
{
fg
?:
string
;
bg
?:
string
;
color
?:
string
}
)
:
this
Parameters
opts
:
{
fg
?:
string
;
bg
?:
string
;
color
?:
string
}
Returns
this
tint
tint
(
color
:
string
)
:
this
Parameters
color
:
string
Returns
this
text
text
(
content
:
string
,
opts
?:
Partial
<
OverlayTextParams
>
)
:
this
Parameters
content
:
string
Optional
opts
:
Partial
<
OverlayTextParams
>
Returns
this
overlay
overlay
(
iconId
:
string
,
opts
?:
Partial
<
OverlaySvgParams
>
)
:
this
Parameters
iconId
:
string
Optional
opts
:
Partial
<
OverlaySvgParams
>
Returns
this
grid
grid
(
iconIds
:
string
[]
,
opts
?:
Partial
<
OverlayGridParams
>
)
:
this
Parameters
iconIds
:
string
[]
Optional
opts
:
Partial
<
OverlayGridParams
>
Returns
this
param
param
<
K
extends
|
"width"
|
"height"
|
"pixelRatio"
|
(keyof SvgColorParams)
|
(keyof SpriteTintParams)
|
(keyof OverlayTextParams)
|
(keyof OverlaySvgParams)
|
(keyof OverlayGridParams)
,
>
(
key
:
K
,
value
:
RouteUrlParams
[
K
]
,
)
:
this
Type Parameters
K
extends
|
"width"
|
"height"
|
"pixelRatio"
|
(keyof SvgColorParams)
|
(keyof SpriteTintParams)
|
(keyof OverlayTextParams)
|
(keyof OverlaySvgParams)
|
(keyof OverlayGridParams)
Parameters
key
:
K
value
:
RouteUrlParams
[
K
]
Returns
this
build
build
()
:
string
Returns
string
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
size
pixel
Ratio
colors
tint
text
overlay
grid
param
build
maplibre-gl-svg-sprite - v0.2.0
Loading...
Fluent builder for named-route URLs