java.lang.Object
com.dlsc.gmapsfx.util.MarkerImageFactory
public class MarkerImageFactory extends Object
- Author:
- Geoff Capper
-
Constructor Summary
Constructors Constructor Description MarkerImageFactory() -
Method Summary
Modifier and Type Method Description static StringcreateMarkerImage(String uri, String type)Takes a URI for an image contained within an application jar file and converts it into a data URI for use in a MarkerOptions object.
-
Constructor Details
-
MarkerImageFactory
public MarkerImageFactory()
-
-
Method Details
-
createMarkerImage
Takes a URI for an image contained within an application jar file and converts it into a data URI for use in a MarkerOptions object.Usage:
markerOptions.icon(MarkerImageFactory.createMarkerImage("/path/to/my/image.jpg", "jpg"));
Currently tested to work with "jpg" and "png" files.
- Parameters:
uri-type-- Returns:
-