JustFly1984 / react-google-maps-api

React Google Maps API
MIT License
1.76k stars 426 forks source link

No custom icon prop for both zoomControlOptions and fullscreenControlOptions #3225

Open MONTYYYYY opened 1 year ago

MONTYYYYY commented 1 year ago

Allow custom icon for both zoomControlOptions and fullscreenControlOptions . i would like to change the SVGs or images displayed on the both zoom and Fullscreen controls. Currently only position prop is provided.

Screenshot 2023-04-13 at 12 22 03

Your Environment

os: mac/linux/windows/android/ios

node --version : 19

react version : 18

webpack version : 5

@babel version

@react-google-maps/api version : ^2.18.1

How does it behave?

How should it behave correctly?

provide icon props for both zoomControlOptions and fullscreenControlOptions google.maps.MapOptions in order to provide custom icons.

Basic implementation of incorrect behavior in codesandbox.com

JustFly1984 commented 1 year ago

please provide minimal reproduction