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.

28 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. Newest Search Engines Welcome to the party of my life here you will learn everything about me.

    ReplyDelete
  13. 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
  14. 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
  15. This comment has been removed by the author.

    ReplyDelete
  16. I discovered your blog post site online and check a few of your early posts. Always keep within the really good operate. I additional up your RSS feed to my MSN News Reader. Looking for forward to reading more from you later on!
    Canada turistvisum

    ReplyDelete
  17. The article is based on my experience looking for the right hosting company for the business. It includes tips and suggestions for finding good hosting as well as different criteria for evaluating different hosting companies. https://hostinglelo.in/

    ReplyDelete
  18. I discovered your blog post site online and check a few of your early posts. Always keep within the really good operate. I additional up your RSS feed to my MSN News Reader. Looking for forward to reading more from you later on!
    Oliver Headboard

    ReplyDelete
  19. Your blog provided us with valuable information to work with. Each & every tips of your post are awesome. Thanks a lot for sharing. Keep blogging.. buy google ads accounts

    ReplyDelete
  20. This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free. this website

    ReplyDelete
  21. It is fine, nonetheless evaluate the information and facts around this correct. visit this site

    ReplyDelete
  22. Fabulous post. . Emergency visa application India is an electronic travel authorization granted to 165 eligible country citizens in the world. You can get an emergency visa for 1 to 3 working days.

    ReplyDelete
  23. As companies look to drive down costs and improve their processes, contract child resistant packaging are becoming an increasingly popular option compared to in-house manufacturing. Although this has long been a tried and tested solution for many companies willing to outsource, in our globalised world this is even more so the case.

    ReplyDelete
  24. Thanks for the blog loaded with so many information. Stopping by your blog helped me to get what I was looking for. blisters for concentrate

    ReplyDelete
  25. Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! info

    ReplyDelete
  26. Great job! I like your work... Thanks for sharing with us... After covid19, the Indian e visas have some changed done by the Indian government. If you are planning to visit India make sure you know about it. check out for more updates.

    ReplyDelete
  27. Thank you very much, sir. Please keep doing your best. Traveling to India interests you. For more information about e visa India, please visit our e visa to India page and read all visa requirements & guidelines.

    ReplyDelete