Friday, December 9, 2011

Creating a custom google maps marker with canvas

Generating a custom marker with canvas is handy when you want to change the marker size/color dynamically.

The following code snippet contains a 'createMarker' function that creates a canvas, draws the marker graphics and returns back the Data URL encoded version of that canvas which can be used as an input at the marker creation.

See the example below.

17 comments:

  1. hey, thanks for this. i found it very helpful. i am designing a map site that uses markers to show rain totals for particular regions. This works great.

    ReplyDelete
  2. I definitely enjoying every little bit of it. It is a great website and nice share. I want to thank you. Good job! You guys do a great blog, and have some great contents. Keep up the good work. https://hispeedlaser.com/laser-cleaning-machine-laser-rust-removal-machine/

    ReplyDelete
  3. I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. the page

    ReplyDelete
  4. A debt of gratitude is in order for each other instructive site. The spot else might just I get that sort of data written in such a perfect means? I have an endeavor that I'm quite recently working on, and I have been watchful for such data. Custom Boxes with logo

    ReplyDelete
  5. After checking out a few of the articles on your site, I really appreciate your technique of writing a blog. I saved it as a favorite to my bookmark website list and will be checking back in the near future. Take a look at my website too and tell me your opinion. eye lash boxes

    ReplyDelete
  6. Great post, you have pointed out some great points, I also think this s a very excellent website. shakir in urdu

    ReplyDelete
  7. Pleasure seekers, couples, women looking for a cuckold and men looking for the women to cuckold them are talking right now without you. Why not sign up at Date a Cuckold and find the most sweltering wedded women and men to have intercourse with? Cuckolding is filling in fame as an ever increasing number of accessible sexual accomplices are going to the Internet to find couples and accomplices. If you want to know more, Please check out here - www.cuckolddatingsites.org


    ReplyDelete
  8. Such a great blog i like it very much thanks for sharing with us.
    custom Jewelry packaging

    ReplyDelete
  9. Thanks For sharing this Superb article.I use this Article to show my assignment in college.it is useful For me Great Work. google ads tips

    ReplyDelete

  10. Google Drive is Google's distributed storage alternative. They start you with a weighty 30 GB in any case, you can overhaul that to limitless capacity for just $10 every month with G Suite. Without G Suite, you'll pay $10 per month for 1 TB of capacity. https://www.seoexpertindelhi.in/

    ReplyDelete
  11. Splendid data! I really ran over your blog and have been taking a gander at along. I figured I would leave my first comment. I don't have even the remotest snippet of data what to say close to that I have. https://vograce.com

    ReplyDelete
  12. Lot of people need web hosting services either to promote their businesses or personal websites. The process of publishing the website on the World Wide Web is known as web hosting. Web hosting offers connectivity and storage to serve all types of files of a website. https://onohosting.com/

    ReplyDelete
  13. Newest Search Engines Welcome to the party of my life here you will learn everything about me.

    ReplyDelete
  14. I was looking at some of your posts on this website and I conceive this web site is really instructive! Keep putting up.. visit here

    ReplyDelete
  15. I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. visit

    ReplyDelete
  16. Great job for publishing such a beneficial web site. Your web log isn’t only useful but it is additionally really creative too. Canada Visa for German Citizens

    ReplyDelete
  17. You have done a great job on this article. It’s very readable and highly intelligent. You have even managed to make it understandable and easy to read. You have some real writing talent. Thank you. viza India online

    ReplyDelete