Class WLeafletMap.Popup

    • Constructor Detail

      • Popup

        public Popup​(WWidget content)
        Create a popup with the given content.
      • Popup

        public Popup​(java.lang.CharSequence content)
        Create a popup with the given content.

        This is a shortcut for creating a popup with a WText widget as content.

      • Popup

        public Popup​(WLeafletMap.Coordinate pos,
                     java.lang.CharSequence content)
        Create a popup with the given content and coordinates.

        This is a shortcut for creating a popup with a WText widget as content.

    • Method Detail

      • createItemJS

        protected void createItemJS​(java.lang.StringBuilder ss,
                                    java.lang.StringBuilder postJS,
                                    long id)
        Description copied from class: WLeafletMap.AbstractMapItem
        Writes the JS code to create this item to the stream.

        This method should write in ss the JS code that creates the item. The postJS stream can be used to write JS code that should be executed after the item has been created.

        Specified by:
        createItemJS in class WLeafletMap.AbstractMapItem