Hi everyone, I’d like to add interaction to mapbox-gl-js marker. So whenever i click, it will redirect to another url in another tab.
My problem is to convert the js code into a working python code.
Code Sample:
marker.getElement().addEventListener('click', event => {
window.location.href = 'https://www.mapbox.com/';
});
Thanks in advance