I am trying to create custom maker from vector assets. However everytime ti said icon cannot be created for empty image
java.lang.RuntimeException: Icon cannot be created for empty image
at com.tomtom.online.sdk.map.Icon.(Icon.java:63)
at com.tomtom.online.sdk.map.Icon$Factory.fromResources(Icon.java:145)
at com.tomtom.online.sdk.map.Icon$Factory.fromResources(Icon.java:131)
and the code I use is below:
MarkerBuilder markerBuilder = new MarkerBuilder(position)
.icon(Icon.Factory.fromResources(getApplicationContext(),R.drawable.ic_location_pin))
.markerBalloon(markerBalloonData);
Is that the only way to create marker is via image?
Moreover are there any methods can automatically resize the marker when zoom in / out the map?