| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | createMarkerImage(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. |
| private static String | |
| private static byte[] |
| MarkerImageFactory | back to summary |
|---|---|
| public MarkerImageFactory() | |
| createMarkerImage | back to summary |
|---|---|
| public static String createMarkerImage(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. Usage: markerOptions.icon(MarkerImageFactory.createMarkerImage("/path/to/my/image.jpg", "jpg")); Currently tested to work with "jpg" and "png" files. | |
| createMarkerImageFromFile | back to summary |
|---|---|
| private static String createMarkerImageFromFile(String uri, String type) | |
| getImageBytes | back to summary |
|---|---|
| private static byte[] getImageBytes(BufferedImage image, String type) throws IOException | |