Skip to content

Commit

Permalink
add class to polygon tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticdrew committed Jun 20, 2024
1 parent 92d4661 commit ab2d33c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .idea/git_toolbox_prj.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/main/js/journeymap.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ class Journeymap {
}

return markers

}

_formatText(text) {
Expand Down Expand Up @@ -565,7 +566,8 @@ class Journeymap {

coords = coords.concat([coords], holes)
}

let firstPoint = Object.values(polygon.points)
let className = "polygon-" + (translateCoords(firstPoint[0].x, firstPoint[0].z) + "_" + polygon.label).replaceAll(",", "_").replaceAll(":", "_").replaceAll(" ", "_").replaceAll("\n", "").toLowerCase()
polygons.push({
latLngs: coords,

Expand All @@ -576,6 +578,7 @@ class Journeymap {
fontColor: polygon.fontColor,
fillColor: polygon.fillColor,
fillOpacity: polygon.fillOpacity,
className: className,
})
}

Expand Down

0 comments on commit ab2d33c

Please sign in to comment.