react-google-maps icon indicating copy to clipboard operation
react-google-maps copied to clipboard

Can't set custom styles to Control Options

Open Michael-Brooks opened this issue 9 years ago • 0 comments

I have set my Control Options to dropdown, but can't seem to style it at all.

options={ 
  mapTypeControl: true,
  mapTypeControlOptions: {
    style: google.maps.MapTypeControlStyle.DROPDOWN_MENU,
    mapTypeIds: ['roadmap', 'terrain', 'satellite'],
  },
}

I have tried updating the style attribute, so it's an object and make it contain my styling options, but this didn't work. I also tried to add inputStyle and mapTypeStyle into the mapTypeControlOptions object, but that didn't work either. I would appreciate any suggestions.

Michael-Brooks avatar Feb 08 '17 14:02 Michael-Brooks