5 votes
Accepted

Python folium add marker in random place

Folium injects the JS code to a place before the line where map object is created. In the image, Line 1 is where folium adds the code. Line 2 is where the map object is created. Line 1 always run ...
4 votes
Accepted

Python folium - Leaflet plugin not visible on the map

In png_js , change .addTo{map} to .addTo({map}) and wrap JS code in $(document).ready(function(){ ... }); Code: import folium m = folium.Map() m.get_root().header.add_child(folium.CssLink('https://...
2 votes
Accepted

Blank page using WMTS' function from OpenLayers

You will also need to specify the matrixSet and a WMTS tileGrid with matrixIds. The simplest way to do that is to fetch the capabilities and let OpenLayers construct the options. The matrix set ...
  • 10.8k
1 vote

How to calculate square kilometers based on two sets of coordinates

Presumably you're talking about a quadrilateral with the corners given by the latitudes/longitudes of the SW and NE corners. You need then to specify the edges. The obvious choice for the W and E ...
  • 3,126
1 vote
Accepted

Creating Proportional Symbols with Leaflet

Your problem might be consequence of using the same global object geojsonMarkerOptions for creating all markers, but changing it's radius property in the process. This might have side effect on ...
  • 19k
1 vote
Accepted

Exporting geojson layer to file

You can use .toGeoJSON layer group method (see https://leafletjs.com/reference.html#layergroup) to get GeoJSON object from lyr GeoJSON layer: function saveToFile() { var geoJSON = lpt.toGeoJSON(); ...
  • 19k

Only top scored, non community-wiki answers of a minimum length are eligible