Native google maps custom marker not working on android


Hi all,

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.

Plus I tried to use,

          'url': 'assets/img/pin.png',
          'size': {
            width: 50,
            height: 50

Which made no difference.