When using Popup and Tooltip in an overlay context, like a Polygon, the map context seems not to be available. Expecting the map context leads to a panic in this case.
This PR fixes this behavior by moving the expect method further down to the place where it is really requested. In addition to that, it removes the map context as requirement from the overlay context path.
When using
Popup
andTooltip
in an overlay context, like a Polygon, the map context seems not to be available.Expect
ing the map context leads to a panic in this case.This PR fixes this behavior by moving the
expect
method further down to the place where it is really requested. In addition to that, it removes the map context as requirement from the overlay context path.