Package com.persequor.extension.frontend
Interface IGeoMapLayer
public interface IGeoMapLayer
-
Method Summary
Modifier and TypeMethodDescriptionAdd a static image (bitmap) to a geomapAdd a line between two pointsaddLine
(float fromLatitude, float fromLongitude, float toLatitude, float toLongitude, Consumer<IGeoMapLine> lineConsumer) Add a line between two pointsAdd a pin with an icon and a simple textaddPin
(float latitude, float longitude, Icon icon, Consumer<IGeoMapPin> content) Add a pin with an icon and a section to populate with rich contentThe label used in the layer toggle widget on the map
-
Method Details
-
addPin
Add a pin with an icon and a simple text- Parameters:
latitude
- the latitude of the pinlongitude
- the longitude of the pinicon
- the icon to usename
- the name to display- Returns:
- a reference to the layer the pin was added to
-
addPin
Add a pin with an icon and a section to populate with rich content- Parameters:
latitude
- the latitude of the pinlongitude
- the longitude of the pinicon
- the icon to usecontent
- 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 pointfromLongitude
- the longitude of the starting pointtoLatitude
- the latitude of the ending pointtoLongitude
- the longitude of the ending pointcolor
- 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 pointfromLongitude
- the longitude of the starting pointtoLatitude
- the latitude of the ending pointtoLongitude
- the longitude of the ending pointlineConsumer
- 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 imagefromLatitude
- the latitude of the starting pointfromLongitude
- the longitude of the starting pointtoLatitude
- the latitude of the ending pointtoLongitude
- the longitude of the ending point
-
label
The label used in the layer toggle widget on the map- Parameters:
label
- the label to use- Returns:
- the layer itself for chaining.
-