Havnar
Havnar

Reputation: 2638

google maps custom marker not displaying as my custom icon

I'm using motionless in python (3.5) to build static map images. I was having a hard time to create custom markers. But it seems like it's not so much the framework or my code, but the google maps API itself.

I can't figure out what's wrong with my URL,while this URL, works.

I use this icon: https://raw.githubusercontent.com/havnar/sprites/master/ico/1.ico

While the stack overflow favicon just works: http://cdn.sstatic.net/Sites/stackoverflow/img/favicon.ico

Upvotes: 0

Views: 495

Answers (1)

ezekielDFM
ezekielDFM

Reputation: 1977

There was an issue with your icon file. I have re-saved the file out and uploaded to my own Github and it loads fine now:

https://maps.googleapis.com/maps/api/staticmap?zoom=17&size=512x512&maptype=hybrid&markers=icon:https://raw.githubusercontent.com/zensign/ico-test/master/favicon3.ico%7C34.052230%2C-118.243680

You can grab the working .ico file here: https://raw.githubusercontent.com/zensign/ico-test/master/favicon3.ico

Upvotes: 1

Related Questions