Skip to content

Commit

Permalink
Update leaflet_great_circle.html
Browse files Browse the repository at this point in the history
fixing icon
  • Loading branch information
danames authored Jan 26, 2025
1 parent aef1bd9 commit 7dc6ced
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions leaflet/leaflet_great_circle.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,19 +115,11 @@ <h2>Enter the Start and End Coordinates</h2>

// Function to create a triangle marker
function createTriangleIcon() {
//return L.divIcon({
// className: 'triangle',
// iconSize: [16, 16]
//});
return greenLeafIcon <- makeIcon(
iconUrl = "https://leafletjs.com/examples/custom-icons/leaf-green.png",
iconWidth = 38, iconHeight = 95,
iconAnchorX = 22, iconAnchorY = 94,
shadowUrl = "https://leafletjs.com/examples/custom-icons/leaf-shadow.png",
shadowWidth = 50, shadowHeight = 64,
shadowAnchorX = 4, shadowAnchorY = 62
);
}
return L.divIcon({
className: 'triangle',
iconSize: [16, 16]
});

//Function to compute the distance between two points using the Haversine formula
function compute_distance(lat1,lng1,lat2,lng2){
//convert inputs to radians
Expand Down

0 comments on commit 7dc6ced

Please sign in to comment.