Class WLeafletMap.Marker

java.lang.Object
eu.webtoolkit.jwt.WLeafletMap.Marker
Direct Known Subclasses:
WLeafletMap.LeafletMarker, WLeafletMap.WidgetMarker
Enclosing class:
WLeafletMap

public abstract static class WLeafletMap.Marker
extends java.lang.Object
An abstract marker.

This marker can be placed on a WLeafletMap at certain coordinates.

  • Constructor Details

  • Method Details

    • move

      public void move​(WLeafletMap.Coordinate pos)
      Move the marker.

      If this marker belongs to a map, this will trigger an update of the WLeafletMap to move the marker. If it doesn't belong to a map, the position is merely updated.

    • getPosition

      public WLeafletMap.Coordinate getPosition()
      Get the current position.

      See Also:
      move(WLeafletMap.Coordinate pos)
    • getMap

      protected WLeafletMap getMap()
    • setMap

      protected void setMap​(WLeafletMap map)
    • createMarkerJS

      protected abstract void createMarkerJS​(java.lang.StringBuilder ss, java.lang.StringBuilder postJS)
    • unrender

      protected void unrender()
    • needsUpdate

      protected boolean needsUpdate()
    • update

      protected void update​(java.lang.StringBuilder js)