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.

37 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
  18. Thanks for providing recent updates regarding the concern, I look forward to read more. виза за Индия онлайн

    ReplyDelete
  19. This comment has been removed by the author.

    ReplyDelete
  20. 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
  21. 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
  22. I visit some sites and sites everyday to read articles, however this website offers feature based posts.If you are planning to travel to Turkey with Tourist Visa, you should read the categories of different purposes of travel carefully. You should apply for a Turkey travel visa only if you wish to visit the country for one of the following purposes.

    ReplyDelete
  23. 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
  24. 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
  25. Reseller hosting is the web hosting program or service which re bundles the services that are available from the primary providers or the real web hosts. Reseller web hosting can be an individual or business making use of web servers and bandwidth of higher tier host and then resells it to the clients by providing value added features such as domain registration, web programming and web designing. https://onohosting.com/

    ReplyDelete
  26. 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
  27. Your content is nothing short of brilliant in many ways. I think this is engaging and eye-opening material. Thank you so much for caring about your content and your readers. visit this site

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

    ReplyDelete
  29. Services-Conseils Ganéo is an innovative consulting marketing firm adapted to the reality of its clients. Formation Google Ads

    ReplyDelete
  30. 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
  31. 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
  32. 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
  33. I definitely enjoy every little bit of it. This is a great website and good stock.I want to thank you. Apply Online emergency visa to India, Fill and online Submit Visa Application Form Securely via India visa website.

    ReplyDelete
  34. I was seeking this particular information for a very long time. ✅ I also have some information related to this Topic on my website
    Real Estate Lease

    ReplyDelete
  35. 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
  36. 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
  37. 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