Native google-maps-plugin: Ionicons icon as marker icon


#1

I want to use an icon of ionicons as a custom marker for the native google-maps plugin.

When I define the marker options, I have the “icon” attribute which I can use like this:

let markerOptions: MarkerOptions = {
      position: this.location,
      title: "title1",
      icon: {
        'url': 'images/google_tokyo_icon.png'
      }

Does anybody have an idea, how I would be able to use one of the ionicons icons (e.g. “home”) as custom icon?


#2

I decided to convert the svg of the ionicon icon from the node-modules-folder to png and used this file as icon. Didn’t see any other way since the plugin does not accept SVG as file format for the icons.