I have set a custom marker which works fine on IOS however android doesn’t seem to want to know it and instead loads the default.
let markerOptions: MarkerOptions = {
position: centre,
title: 'You are here',
icon: {
url : 'assets/img/pin.png'
}
};
Not sure if it has something to do with the file path. I tried difference file paths, such as …/assets/img/pin.png but that just breaks the ios app and doesn’t fix the android.
@mkanmori did you ever got this issue solved? I’m currently facing the same issue with the latest version of the native plugin, but perhaps I’m doing something wrong. Works in the browser, but not on Android.
As @Jagtlog said, .svg is not supported.
For png Files try to add ./ to the path so assets/some/file.png becomes ./assets/some/file.png.
Otherwise the native google Maps Plugin has currently an error, where you can’t use local Images for Marker Cluster Icons. Maybe this is important for you too. I created a PR to fix this, but it has not merged yet: https://github.com/mapsplugin/cordova-plugin-googlemaps/pull/2705