With the Google Maps API V3 it’s very easy to make the built-in traffic overlay visible.
This is possible with the following code:
The end result will look like:
I used the following CSS to style the control to look just like the other controls:
The traffic control should be styled correct and toggling the traffic overlay nicely now. Enjoy!
This is just what i was looking for a long time!!!! I am very happy!!
Thanks a lot!!!
You’re welcome!! I’m glad I could help you!
This is exactly what I am looking for! Unfortunately I am very much a beginner and am unfamiliar with jquery. The rest of my code is in pure java. I am unsure how to convert this to pure java. Do you know if it is possible to introduce jquery CDN in the middle of the code?
Hey thanks a lot for this. Really needed it for my project.
Thanks a lot for publishig this…
Looks good. I wish you had a simple link there to your working program as well. It would make it easier to see it all under ‘one roof’ without all the other items stuck around this existing page.
Excellent work. It’s a shame that Google didn’t leave us with much simpler options. But your code is definitely worth it.
I’ve used it in one of my project.
Keep up the good work
You are awesome thanks a lot
Thank you very much for this. It helps me a lot.
You made my day. Thank you very much.
Greetings from the Philippines
anybody have an example of a page that works with this script? it failed miserably for me.
Thumbs up for you!
Thanks a lot
Thank you very very much, for the code example and the explanation! It works great for me. It certainly saved me a lot of time.
You may use these HTML tags: <a> <abbr> <acronym> <b> <blockquote> <cite> <code> <del> <em> <i> <q> <strike> <strong>
Hi, my name is Pieter Vogelaar. I’m a web developer / DevOps engineer / IT consultant and specialized in high traffic and high profile websites. I love open source and have a great passion for automating and developing things!
Copyright © PieterVogelaar.nl 2006 - 2020 All rights reserved | Disclaimer | RSS Feeds