Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong markers position in static maps #132

Open
jcesarmm opened this issue Jun 28, 2018 · 2 comments
Open

Wrong markers position in static maps #132

jcesarmm opened this issue Jun 28, 2018 · 2 comments
Assignees

Comments

@jcesarmm
Copy link

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

@ericnewton76
Copy link
Owner

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.

@jcesarmm
Copy link
Author

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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants