New answers tagged

1 vote

Generating a bounding box for leaflet is inaccurate

Looking at geolib you can use built-in function: var startPoint = { latitude: 38.9761, longitude: -77.4875 }; var distanceMeters = 460000; // Returns an array with the southwestern and northeastern ...
user avatar
  • 9,226
0 votes

Load Leaflet ImageOverlay with center point instead of corners

I think I have found a solution for now. I have tried many things, including some math to find the correct bounding box, I have tried turf.js, all to no avail. I eventually had the idea to set the ...
user avatar
1 vote
Accepted

Changing marker icon on click and then back to original state when click elsewhere in Leaflet?

Solution below is based on assumption that each marker will have a popup that opens upon marker click. Logic goes as follows: when marker is clicked, popup opens and marker icon is changed; when ...
user avatar
  • 17k
0 votes

Changing marker icon on click and then back to original state when click elsewhere in Leaflet?

You could have a script that changes all markers back to default and call that before you change your clicked marker. map.eachLayer(function(layer) { if( layer instanceof L.Marker ) { layer....
user avatar
  • 21
1 vote

Image size limitation in QGIS print layout using HTML code

This problem results from a timing issue. The Qt widget has not enough time to render the images inside the HTML. The same can happen with JavaScript or with SVG images. With a simple trick you can ...
user avatar
  • 3,653
0 votes

Image size limitation in QGIS print layout using HTML code

Try to use: <img width="300px" src="file:///C:/absolute/path/to/image.jpg" />
user avatar
  • 1

Top 50 recent answers are included