Map Display

Leaflet resources

To use Leaflet resources or parameters that don’t yet have equivalents in our Javascript API, you can directly access the Leaflet and its map object via the properties L and map, respectively.

The example below uses Leaflet’s circle function to draw a circle:

const L = maplink.L;
const map = maplink.map;


L.circle([51.508, -0.11], {
    color: 'red',
    fillColor: '#f03',
    fillOpacity: 0.5,
    radius: 500
}).addTo(map);

To check all the features that Leaflet offers, consult the documentation at leafletjs. The version currently used in our API is 1.7.