Hi all
we start using xamarin forms google maps
i download the demo from here
https://github.com/amay077/Xamarin.Forms.GoogleMaps
I need a way to drow polygon and the user can resize it
when the user drag the polygon corner the polygon change
How can we do it?
Best Regards,
Type = PinType.Place,
Position = new Position(polyline.Positions.Last().Latitude, polyline.Positions.Last().Longitude),
Label = "End",
Address = "Pin",
IsVisible = true,
Tag = "End Point",
Icon = (Device.RuntimePlatform == Device.Android) ? BitmapDescriptorFactory.FromBundle("stop3.png") : BitmapDescriptorFactory.FromView(new Image() { Source = "stop3.png", WidthRequest = 35, HeightRequest = 35 })
};
map.Pins.Add(pin2)
I have custom pins set up for Xamarin.Forms.GoogleMaps. I am reading them from existing .png icons which are transparent and do not have padding using the BitmapDescriptorFactory.
My code is much like this article -> https://nerd-corner.com/how-to-add-custom-icon-pins-to-google-maps-xamarin-app/
The problem? I need to place them almost on top of each other. There seems to be padding around the pin that does not let me click and place the pin almost on top of the other pin.
I have tried setting the Z-index dynamically. I have tried the Flat option. I'm not quite sure what it does. I tried to set the Icon.View.Margin to a zero Thickness
Polyline polyline = null;
polyline = new Polyline();
polyline.Positions.Add(new Position(40.77d, -73.93d));
polyline.Positions.Add(new Position(40.81d, -73.91d));
polyline.Positions.Add(new Position(40.83d, -73.87d));
polyline.IsClickable = true;
polyline.StrokeColor = Color.Blue;
polyline.StrokeWidth = 5f;
polyline.Tag = "POLYLINE"; // Can set any object
map.Polylines.Add(polyline);
Android Device and Android simulator not working(showing) map.
Help me