React wrapper for lightning-maps-react. - A lightweight, dependency-free slippy map renderer.
Heavily inspired by Pigeon Maps and Leaflet, but with slightly different goals in mind:
yarn add lightning-maps-react
import React from 'react'
import { Map, Marker } from 'lightning-maps-react'
class Component extends React.Component {
render() {
return (
<Map center={[38.865, -77.200]} zoom={12}>
<Marker position={[38.912, -77.240]} color="red" />
</Map>
);
}
}