import React, { useRef, useEffect } from 'react' import { Map } from '../../' import maplibregl from 'maplibre-gl' import MapboxDraw from "@mapbox/mapbox-gl-draw"; const MapWithPlugin = () => { const mapContainerRef = useRef(null) useEffect(() => { if (!maplibregl.supported()) { alert('Your browser does not support MapLibre GL'); } else { const map = new maplibregl.Map({ container: mapContainerRef.current, style: 'https://basemaps.cartocdn.com/gl/positron-gl-style/style.json', center: [-75.379143, 39.831200], zoom: 13, }) //set marker/pin /* eslint-disable-next-line */ const marker = new maplibregl.Marker({ color: "#0056CF", }).setLngLat([-75.379143, 39.831200]) .setPopup(new maplibregl.Popup({className: 'map_popup', closeButton: false}).setHTML(`