New answers tagged html
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 ...
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 ...
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 ...
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....
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 ...
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" />
Top 50 recent answers are included
Related Tags
html × 406javascript × 146
leaflet × 98
qgis × 69
openlayers × 33
css × 32
openlayers-2 × 29
carto × 28
arcgis-javascript-api × 26
popup × 25
geojson × 21
web-mapping × 18
python × 17
print-composer × 16
geoserver × 15
arcgis-online × 14
mapbox × 12
jquery × 12
maptips × 12
legend × 10
arcgis-desktop × 9
php × 9
openstreetmap × 8
wms × 8
layers × 8