Class WLeafletMap.Tooltip

    • Constructor Detail

      • Tooltip

        public Tooltip​(WWidget content)
        Create a tooltip with the given content.
      • Tooltip

        public Tooltip​(java.lang.CharSequence content)
        Create a tooltip with the given content.

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

      • Tooltip

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

        This is a shortcut for creating a tooltip 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