Can you add an image instead of the google dialer in c #?

0

In C # I declare my Google Maps bookmarks like this.

marcador = new GMarkerGoogle(new PointLatLng(tbCoordenadaY.Text,tbCoordenadaX.Text),GMarkerGoogleType.red);

But I would like to be able to add an image of a car as it appears in Uber.

I am using the Nuget of GMap.Net.WindowsForms If someone can help me, I would be very grateful, thank you.

    
asked by Moises 13.11.2018 в 08:32
source

1 answer

0

You could try to use something like being

var point = new PointLatLng(tbCoordenadaY.Text,tbCoordenadaX.Text);

marcador = new GMarkerGoogle(point,new Bitmap("imagen1.jpg"));

ADDING CLICKABLE MARKERS TO YOUR MAP (UPDATED FOR VS2015 AND GMAP.NET 1.7)

Maybe you should put the image as resource

add custom marker (square) to Gmap

marcador = new GMarkerGoogle(point,new Bitmap(Properties.Resources.image1));

but basically you can pass it a bitmap parameter

    
answered by 13.11.2018 / 13:47
source