0.0.100 • Published 3 years ago
solid-mapbox v0.0.100
Solid Mapbox
MapboxGL bindings for Solid.js including Map, Marker, Popup and other basic and useful mapping utilities for your Solid app.
Installation:
yarn add solid-mapbox
Example
import { Mapbox, Marker, Popup } from '../components/Mapbox';
<Mapbox
accessToken={MAPBOX_TOKEN}
options={() => ({
style: 'mapbox://styles/mapbox/streets-v11',
zoom: 18,
})}
>
<For each={list.markers}>
{(marker, index) => (
<Popup text={marker.name}>
<Marker coordinates={marker.coordinates} />
</Popup>
)}
</For>
</Mapbox>;
Changelog
- 0.0.100 - Initial release
0.0.100
3 years ago