MapSphere
Renders the map sphere as a single SVG <path>
Use MapSphere outside MapZoom to keep the outline visually stable while zooming map content
The default fill is none and the default stroke is none
Render a filled sphere before content and an outline sphere after content when graticule lines should stay below the border.
Props
| Parameter | Type | Default | Description |
|---|---|---|---|
fill? | string | none | SVG fill for the sphere path |
stroke? | string | none | SVG stroke for the sphere path |
Usage
vue
<template>
<MapBase>
<MapSphere fill="#f8fafc" />
<MapZoom>
<MapFeatures :data="mapData" fill="#f1f5f9" />
<MapGraticule
stroke="#94a3b8"
:config="{
step: [[15, 15]],
precision: 2.5,
}"
/>
</MapZoom>
<MapSphere stroke="#cbd5e1" />
</MapBase>
</template>