public class MarkerImageFactory extends Object
| Constructor and Description |
|---|
MarkerImageFactory() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static String createMarkerImage(String uri, String type)
Usage:
markerOptions.icon(MarkerImageFactory.createMarkerImage("/path/to/my/image.jpg", "jpg"));
Currently tested to work with "jpg" and "png" files.
uri - type - Copyright © 2017. All rights reserved.