amay077 / Xamarin.Forms.GoogleMaps

Map library for Xamarin.Forms using Google maps API
https://www.nuget.org/packages/Xamarin.Forms.GoogleMaps/
MIT License
546 stars 346 forks source link

Support google.maps.SymbolPath for Icons on markers #694

Open seanmt13 opened 4 years ago

seanmt13 commented 4 years ago

SUMMARY

It would be really great if Icons could support the built in google.maps.SymbolPath for icons and colors. This way we don't have to create a different image for each color we want to use.

https://developers.google.com/maps/documentation/javascript/symbols

DETAILS

Have Xamarin.Forms.GoogleMaps Pins support the extra fields of Google Markers

Here is the example from their javascript api
var marker = new google.maps.Marker({
                position: latLng,
                map: map,
                label: label,
                title: title,
                icon: {
                    path: google.maps.SymbolPath.FORWARD_CLOSED_ARROW,
                    scale: 2,
                    fillColor: 'black',
                    strokeColor: 'black',
                    rotation: rotation,
                    labelOrigin: new google.maps.Point(0, -3),
                }
            });

PLATFORMS