Landmarks across Curitiba. Click a marker for its popup; hover for its tooltip. One popup is built from a real DOM element rather than a string.
bindPopup and bindTooltip both accept a string, an
HTMLElement, or a function returning either. Prefer an element when
the content is not yours — it sidesteps HTML injection.
Popup can stand on its own. openOn(map) shows it and
closes any other popup, which is the usual behaviour you want.
autoClose: false and closeOnClick: false in the
popup options if you want several open at once.
import {CargoMap, TileLayer, Marker, Popup} from 'cargocanvas';