Category : leaflet

I’m using Leaflet to insert a map into Qualtrics. For one of my markers, I have it set up so that (1) a popup appears with a mouse hover and (2) clicking on the popup continues on to the next page in the experiment: marker1.on(‘mouseover’, function (e) { this.openPopup(); this.getPopup()._contentNode.onclick = function () { document.querySelector("#NextButton").click(); ..

Read more

This code is part of a program that takes in addresses that a user enters in a search bar and tries to find them on a map. Here is a link to the site. createSQL: function() { var address = $("#search-address").val(); SearchableMapLib.currentResults = JSON.parse(JSON.stringify(SearchableMapLib.geojsonData)); if(SearchableMapLib.currentPinpoint != null && address != ”) { var point = ..

Read more

This is the message I am getting using a Leaflet.js heatmap, and I can’t see my circle markers, and I believe this is most likely the issue. Because a cookie’s SameSite attribute was not set or is invalid, it defaults to SameSite=Lax, which prevents the cookie from being sent in a cross-site request. This behavior ..

Read more