I am working with a map on which I put an overlay to highlight certain areas, now I want to zoom the map in and out and reposition the overlay so that it is still over the same region. The map is displayed in a JavaFX WebView and the overlay is a polygon that is drawn into a group that is in a pane on top of the WebView.
Now I am trying to calculate the correct position for the overlay, but I can't figure out how. Does someone have some experience there and maybe can point me into the right direction ?