Interface IGeoMapLayer


public interface IGeoMapLayer
  • Method Summary

    Modifier and Type
    Method
    Description
    addBitmap(String url, float fromLatitude, float fromLongitude, float toLatitude, float toLongitude)
    Add a static image (bitmap) to a geomap
    addLine(float fromLatitude, float fromLongitude, float toLatitude, float toLongitude, Color color)
    Add a line between two points
    addLine(float fromLatitude, float fromLongitude, float toLatitude, float toLongitude, Consumer<IGeoMapLine> lineConsumer)
    Add a line between two points
    addPin(float latitude, float longitude, Icon icon, String name)
    Add a pin with an icon and a simple text
    addPin(float latitude, float longitude, Icon icon, Consumer<IGeoMapPin> content)
    Add a pin with an icon and a section to populate with rich content
    label(IString label)
    The label used in the layer toggle widget on the map
  • Method Details

    • addPin

      IGeoMapLayer addPin(float latitude, float longitude, Icon icon, String name)
      Add a pin with an icon and a simple text
      Parameters:
      latitude - the latitude of the pin
      longitude - the longitude of the pin
      icon - the icon to use
      name - the name to display
      Returns:
      a reference to the layer the pin was added to
    • addPin

      IGeoMapLayer addPin(float latitude, float longitude, Icon icon, Consumer<IGeoMapPin> content)
      Add a pin with an icon and a section to populate with rich content
      Parameters:
      latitude - the latitude of the pin
      longitude - the longitude of the pin
      icon - the icon to use
      content - a consumer that will be called with a pin object with the given coordinates and icon
      Returns:
      a reference to the layer the pin was added to
    • addLine

      IGeoMapLayer addLine(float fromLatitude, float fromLongitude, float toLatitude, float toLongitude, Color color)
      Add a line between two points
      Parameters:
      fromLatitude - the latitude of the starting point
      fromLongitude - the longitude of the starting point
      toLatitude - the latitude of the ending point
      toLongitude - the longitude of the ending point
      color - the color of the line
      Returns:
      a reference to the layer the line was added to
    • addLine

      IGeoMapLayer addLine(float fromLatitude, float fromLongitude, float toLatitude, float toLongitude, Consumer<IGeoMapLine> lineConsumer)
      Add a line between two points
      Parameters:
      fromLatitude - the latitude of the starting point
      fromLongitude - the longitude of the starting point
      toLatitude - the latitude of the ending point
      toLongitude - the longitude of the ending point
      lineConsumer - a consumer that will be called with a new line object
      Returns:
      a reference to the layer the line was added to
    • addBitmap

      IGeoMapLayer addBitmap(String url, float fromLatitude, float fromLongitude, float toLatitude, float toLongitude)
      Add a static image (bitmap) to a geomap
      Parameters:
      url - the URL of the image
      fromLatitude - the latitude of the starting point
      fromLongitude - the longitude of the starting point
      toLatitude - the latitude of the ending point
      toLongitude - the longitude of the ending point
    • label

      IGeoMapLayer label(IString label)
      The label used in the layer toggle widget on the map
      Parameters:
      label - the label to use
      Returns:
      the layer itself for chaining.