ericnewton76/gmaps-api-net

Wrong markers position in static maps

Opened this issue · 2 comments

Hi,
Thank you for this great library! it is very useful.

When I use this code:
map.Markers.Add(locations.First());
map.Markers.Add(locations.Last());

I get this url which is ok: https://maps.google.com/maps/api/staticmap?size=600x250&markers=4.7478228,-74.1450686&markers=4.625926,-74.0854238

But when I try to customize the markers (Change size and color) I get an url which shows an image with three markers (I've added only two) and all of them are in the wrong positions...

https://maps.google.com/maps/api/staticmap?size=600x250&markers=size:small%7Cred%7C4.7478228,-74.1450686&markers=size:small%7Cgreen%7C4.625926,-74.0854238

Best Regards,

Julio

Can you help us out and create a test with some sample code that matches your scenario?

I will spend the time to debug it and figure it out.

Hi @ericnewton76 ,

Please find attached a sample code that matches my scenario:
g-maps-error.zip

I figured out that in the url generated is missing the key "color".