Package io.jmix.mapsui.component
Class PopupWindow
java.lang.Object
io.jmix.mapsui.component.PopupWindow
Component that displays html content in a popup window on a
GeoMap
at a given location.-
Constructor Summary
ConstructorDescriptionPopupWindow
(org.locationtech.jts.geom.Point point) Creates an instance of a popup that will be opened in the given geographical point.PopupWindow
(org.locationtech.jts.geom.Point point, String content) Creates an instance of a popup that will be opened in the given geographical point. -
Method Summary
Modifier and TypeMethodDescriptionReturns the content of the popup windoworg.locationtech.jts.geom.Point
getPoint()
Returns the geographical point of the popup window.setContent
(String content) Sets the HTML content of the popup window.setPoint
(org.locationtech.jts.geom.Point point) Sets the geographical point where the popup window will be opened.setPopupWindowOptions
(PopupWindowOptions popupWindowOptions) Sets custom options for the popup window.
-
Constructor Details
-
PopupWindow
public PopupWindow(org.locationtech.jts.geom.Point point) Creates an instance of a popup that will be opened in the given geographical point.- Parameters:
point
- geographical point where popup will be opened
-
PopupWindow
Creates an instance of a popup that will be opened in the given geographical point.- Parameters:
point
- geographical point where popup will be openedcontent
- the HTML content of the popup
-
-
Method Details
-
getPoint
public org.locationtech.jts.geom.Point getPoint()Returns the geographical point of the popup window. -
setPoint
Sets the geographical point where the popup window will be opened.- Parameters:
point
- geographical point- Returns:
- the instance of
PopupWindow
on which this method was called. Useful for a fluent API.
-
getContent
Returns the content of the popup window -
setContent
Sets the HTML content of the popup window.- Parameters:
content
-- Returns:
- the instance of
PopupWindow
on which this method was called. Useful for a fluent API.
-
getPopupWindowOptions
-
setPopupWindowOptions
Sets custom options for the popup window.- Parameters:
popupWindowOptions
-- Returns:
- the instance of
PopupWindow
on which this method was called. Useful for a fluent API.
-