Google Maps JavaScript API Tutorial

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • In this video I will work a little bit with the Google Maps API as requested by some of my subscribers. We will implement a map with some custom markers, info window, event listeners and we will optimize the code so that we can easily add new markers with new properties.
    CODE: Code for this video
    www.traversymed...
    SPONSORS:
    DevMountain Bootcamp - goo.gl/6q0dEa
    SUPPORT: We spend massive amounts of time creating these free videos, please donate to show your support:
    www.paypal.me/t...
    / traversymedia
    FOLLOW TRAVERSY MEDIA:
    / traversymedia
    / traversymedia
    / bradtraversy

Komentáře • 943

  • @itdepends5906
    @itdepends5906 Před 3 lety +15

    I was not ready for js but found myself sincerely going through every step because the pace, presentation, guidance of this tutorial were all so inviting for learning

  • @AmmarTaicho
    @AmmarTaicho Před rokem +2

    Event after 5 years, this is still the best tutorial about location using javascript on The Whole Internet

  • @hauntedspear5728
    @hauntedspear5728 Před 4 lety +11

    RIP in 2020...you have to enable billing to display the map :( . Overall, still best tutorial :D

    • @OleTheill
      @OleTheill Před 4 lety

      You need to add billing, but as far as I can tell, all the functions that are used in this video are free.

  • @camposricardo86
    @camposricardo86 Před 9 měsíci +2

    Great tut for 2017. Now Google Maps APIs are under Google Cloud and the Interface has all changed!

  • @brahimbelkhiria2157
    @brahimbelkhiria2157 Před 7 lety +264

    You are the best teacher on the net .thank you very much for your effords

  • @SalmanAnsari-sm2zn
    @SalmanAnsari-sm2zn Před 7 lety +66

    Whenever a notification appeared on my laptop from Traversy Media, it makes me so excited that I cannot stop myself even for a single moment to learn something amazing and new to start developing our own stuff.

    • @TraversyMedia
      @TraversyMedia  Před 7 lety +38

      Thats awesome. The exact response and outcome I am look for when I upload a video :)

    • @SalmanAnsari-sm2zn
      @SalmanAnsari-sm2zn Před 7 lety +1

      Soon I will share some of my stuff to you to have feedbacks from your side

    • @MrAKGarg007
      @MrAKGarg007 Před 5 lety

      @@TraversyMedia Same here Traversy Media, I am following your precious channel from the last two years. Awesome in all ways. Keep It up Always. Thanks a lot for all the info.

    • @mohammadumar443
      @mohammadumar443 Před 4 lety

      @@TraversyMedia please can guide how can i get map mentioned in website doh.saal.ai/

  • @lulualmohtarif
    @lulualmohtarif Před 7 lety +15

    i'm going to stop adblock in any time i watch a video from you brad!
    thank you :)

    • @TraversyMedia
      @TraversyMedia  Před 7 lety +9

      Thank you. I really appreciate that. Ad block is a killer for us little guys :)

  • @steveliveshere
    @steveliveshere Před 2 lety +1

    For those wondering Uluru is located roughly in the centre of Australia in the Northern Teritory. It's one gigantic rock that people used to spend a day climbing! It used to be known are Ayers Rock which is what the English called it. Uluru is the indigenous name which it is now known by. It's no longer climed as it is considered sacred to the local indigenous group that now have control of it.

  • @javidabbasov959
    @javidabbasov959 Před 7 lety +111

    I have learned from you more than in university or school 😂

    • @TraversyMedia
      @TraversyMedia  Před 7 lety +54

      That's awesome. I really wish colleges would teach more practical knowledge. Stuff we actually need and will use

    • @Cebok_barengan
      @Cebok_barengan Před 3 lety +2

      me too

    • @evergreen7781
      @evergreen7781 Před 3 lety +4

      @@TraversyMedia The only university I feel we can be deep & practical is CZcams University ; Specializing from Traversy Media department of Web Development !!!

    • @misterpoof3197
      @misterpoof3197 Před 3 lety +2

      Fact

    • @donaldtrump1902
      @donaldtrump1902 Před 2 lety

      @Javid Abbasov
      @Traversy Media
      yes you are right, universities don't teach you practical or real world knowledge what they teach you is just Fibonacci series and loops 😂
      I graduated from a university in IT and I learnt nothing more than loops , series and if else in c ,c++ and just SQL nothing about javascript, nothing about GitHub, nothing about node, nothing about dev ops ,I have to learn all that myself

  • @realtemmy_
    @realtemmy_ Před 2 lety +2

    Thanks a lot sir, I really do appreciate your teachings. God bless you

  • @ofirt7
    @ofirt7 Před 6 lety +20

    Thank you Brad!
    I guess you heard that a lot, but I'm watching on many tutorials and web courses and you are one of the best instructors out there!
    Thanks again and keep on with your great tutorials.

  • @MrTouqeerhameed
    @MrTouqeerhameed Před 7 lety

    I am a beginner to work on google map ,it help me alot. I really appreciate and thank you.

  • @keelydyer7838
    @keelydyer7838 Před 5 lety +10

    You're so good at explaining these things, so much clearer than any other videos out there! Thanks for sharing this :)

  • @mohammedkhaledkhan6122

    I Just wanted to speak truth. Every time I was Copying the code and pasting it and whenever I need customizing the code It took a lot of time for me. Today I decided to learn the Gmaps with JS and Your Video Did it. The video is amazing and I understand it very well. No words to describe this video. Amazing awesomeness.

  • @djentleman_anurag
    @djentleman_anurag Před 7 lety +27

    Brad, I don't know how to express, but I am very thankful to you for all the content you have put up. Learning a lot. :)

  • @bobross2404
    @bobross2404 Před rokem +2

    I've lost count on how many times your videos have helped me, you're a gem!

  • @ahmetomer1759
    @ahmetomer1759 Před 7 lety +6

    I never seen any useless video you upload, its always a great usefull video that is put together very well and full of informations we really need. Thanks a lot and please never stop doing so.

  • @vishaldarji944
    @vishaldarji944 Před 4 lety +1

    Best example of google map javascript api
    Thanks for learning

  • @chaithanyasurya2224
    @chaithanyasurya2224 Před 4 lety +3

    You did a lot of hardwork on this concept and you made this easy to learn, thank you so much.

  • @mrgreggles998
    @mrgreggles998 Před 7 lety +1

    Enjoy the video? That was f*^%n awesome bro. Damn, I was looking at what I could do with Google Maps for our little business and you've just laid the path. This is truly donation territory, thank you so very much!

  • @robertosoriano9617
    @robertosoriano9617 Před 7 lety +3

    Hey, thank for the video. I live in Lawrence, so right around the corner from you. Small world!

    • @TraversyMedia
      @TraversyMedia  Před 7 lety +2

      Very familiar with Lawrence. I lived in Methuen about 10 years ago. Very small world

  • @djguy100
    @djguy100 Před 3 lety +2

    Been struggling with this all day, Brad teaches me how to do it in less than 30 min lol. Keep up the good work Brad 👍🏻

  • @DincerHoca
    @DincerHoca Před 7 lety +4

    This is one of the best tutorials I have seen. Thank you.

  • @jumanjiwarlord
    @jumanjiwarlord Před 3 lety

    I tried this one after doing the DOM crash course and it definitely makes more sense now.

  • @ankitmehrotra8519
    @ankitmehrotra8519 Před 7 lety +9

    Great tutorial Brad..Thanks a lot for making another amazing video..

  • @jaimemontero6712
    @jaimemontero6712 Před 6 lety

    Wow, I was trying for a while just reading from google documentation, and it simply didn't work, but, after this video.. FLFF, LIKE A GLOVE, thank you!

  • @W-Whiz
    @W-Whiz Před 4 lety +6

    Best lecture on google api...

  • @urvishjoshi6640
    @urvishjoshi6640 Před 4 lety

    I was searching how to add a mark lat lng listener but didn't found anything, and after watching 24mins video u came up with it, I finally ended up sitting peacefully. Thank you bro :)

  • @lifeisadiyproject1418
    @lifeisadiyproject1418 Před 7 lety +65

    Video request: any other Google API (GMail, Google Calendar, etc.) :)

  • @TheAces1979
    @TheAces1979 Před rokem

    I couldn't agree more with the top comments. You're an excellent instructor. Crawl, walk, run. Most videos just skip straight to 'run' without explaining the 'why'. +1 sub/like/comment for this guy! Side note: Your keyboard is very ASMR-y. And yes I'm into that. I sense your judgement and I reject it. 6/5 stars!

  • @saraswatihavalkod6783
    @saraswatihavalkod6783 Před 5 lety +4

    Thank you for the video...it helped me a lot....but API key is asking for enable billing

  • @calderov
    @calderov Před 4 měsíci

    This was gold! I was blocked and although the video is a bit outdated, I got to learn enough to make some progress on my own project. Thanks!

  • @CO_IN_TECH
    @CO_IN_TECH Před 6 lety +3

    Hey Brad! This is really great! It would be the best to have a video explaining the options you mentionned in the end: enable users to add markers (with info) on the map and that the marker stay. This would be hugely helpful!
    Are you planning this video? If not do you know if there is a good step by step video or material?

  • @porcupine9997
    @porcupine9997 Před 7 lety

    Where was this 2 weeks ago when i was drowning in google's API documentation‽ Keep up the good work. I learn so much from you.

    • @porcupine9997
      @porcupine9997 Před 7 lety

      Also, I'm currently working on a project requiring google sign-in. I'm guessing you'll cover that in a few weeks? lol

  • @c0mrade95
    @c0mrade95 Před 7 lety +4

    Just in time for a new project that I have....!!! Thank you!!!!

  • @00el04
    @00el04 Před 4 lety +1

    WOW, this is the best tutorial I have watched regarding to building a web application using API... WELL DONE!
    Would love more tutorials on Brochure site/ e-commerce site / simple games in the future!
    Bell icon turned on :)

    • @00el04
      @00el04 Před 4 lety +1

      does google cloud platform cost money once the free trial runs out?

  • @shubhamjain1328
    @shubhamjain1328 Před 4 lety +12

    Sadly they won't let you use it now, until you apply for payments..

    • @mrj4082
      @mrj4082 Před rokem

      You can use it with free trial. Yea it's sad you can only use it for 3 months but once it expires you can try with another mail. Idk if the same credit will work. Will have to 3 months from now to confirm

  • @shahzeb9154
    @shahzeb9154 Před 6 lety

    finaly i can see u r face u r the most intelligence person in the field of programming God bless u awesome sir i learned a bunch of thing from u.

  • @g-luu
    @g-luu Před 7 lety +10

    Dope ass intro lol, i feel like i'm attending Microsoft conference :). Great content as always. #just bought your eduonix angular 12project too by the way.

  • @lucbrien9237
    @lucbrien9237 Před 5 lety

    Great video, thanks! Just FYI, Uluru is the big rock in the middle of the Australian continent. It's a sacred place for the Pitjantjatjara Anangu people who live in the area.

  • @alexandros-markovits
    @alexandros-markovits Před 7 lety +4

    that was an awesome video, best in youtube, couldnt even find one about the markers (should have seen the documantation i know my bad). thank you and nice intro logo!

    • @TraversyMedia
      @TraversyMedia  Před 7 lety +10

      Thanks, yeah I noticed that back when I was learning maps. Nobody puts it into simple terms. Actually, most programming tuts are like that. People over complicate things to sound smart. I try and keep things simple. Yes the docs are usually the best place to look (After Traversy Media :0 )

    • @alexandros-markovits
      @alexandros-markovits Před 7 lety +1

      Traversy Media haha yes this was definetly better than learning from the documentation :D loved the dynamic way you did the markers also, simple things like these are open minding for beginers like me. Also dont change, you are awesome the way you are :D have a nice day

  • @KNO3Arts
    @KNO3Arts Před 6 lety

    The first time I saw something about JAVA script. But it did contain Info on how to implement Google Maps and pinpoint given Coordinates. Just what I was looking for.
    But also very good explained to noobs like me. Very helpfull. wel understoud!

  • @MenAtWorkMedia22
    @MenAtWorkMedia22 Před 7 lety +9

    Thank you, Brad! Amazing video like always!

  • @hongcai4617
    @hongcai4617 Před 4 lety

    Ur tutorials r always enlightening...I learned not only embedding google map, but how to refactory code.

  • @maralashyrova7178
    @maralashyrova7178 Před 5 lety +4

    just thanks a lot man from 2019

  • @lonermrvedits8754
    @lonermrvedits8754 Před 3 lety

    I really loved the way of teaching. You started from beginner level and ended on expert level. I loved it. I got everything which i wanted to learn about Google maps api.
    Very precise and to the point content.

  • @crystalsky7615
    @crystalsky7615 Před 7 lety +7

    Thanx Brad...

  • @moussadov
    @moussadov Před 7 lety

    My God, You just nailed what have been teaching for a long time. Accept my respect and I'll like to make contributions if possible. #You are the best

  • @VaporCode
    @VaporCode Před 7 lety +7

    12:10 - "What the hell? a mosquito is in here!" -Traversy Media.
    XD hahaha

    • @TraversyMedia
      @TraversyMedia  Před 7 lety +2

      lol thing flew right in my frigging face :)

  • @andrehuster5377
    @andrehuster5377 Před 6 lety

    Thanks for the tutorial. As an Australian, I felt I should say that Uluru is a massive rock in Australia, also known as Ayers Rock. Tutorial was very helpful though.

  • @RobertWildling
    @RobertWildling Před 5 lety +5

    Meanwhile (since August 2018?) the Google Maps API requires credit card validation and has a free limit of 200$/month...

  • @frambuella
    @frambuella Před rokem

    Wow! I wanted to add maps to a website I'm making and this was by far the best tutorial on how simple it can be. Thanks!

  • @freegalaxy1695
    @freegalaxy1695 Před 5 lety +7

    google map API is not free now :(

  • @mdkaiserali6830
    @mdkaiserali6830 Před 3 lety +1

    You guys are not human ....Super Human!!!!

  • @donmbelembe1089
    @donmbelembe1089 Před 7 lety +8

    yeahhhh I'm falling in love with you

  • @TheHammerAP
    @TheHammerAP Před 5 lety

    Hi man! Just fall onto your video randomly. I will confirm what everyone is saying bellow. You are a great teacher. Clean shot in the head ! I have learned something painlessly.

  • @shubhamdhingra5214
    @shubhamdhingra5214 Před 7 lety +1

    Thank You So Much Brad! I am glad that i found your channel Man ! Your videos are great and bulked up with content in simplified manner.Your pace,your voice just everything is fine.I literally enjoy your videos !
    You are an awesome Teacher,Brad ! :)

  • @EsainM
    @EsainM Před 6 lety

    i have always struggled learning how to code/programme, and you made it so simple... thank you!

  • @lancelogan1
    @lancelogan1 Před 6 lety

    Awesome video. Like the others said, you are the best on the web. Im currently in a bootcamp and the teacher just yells a bunch of stuff at us. Then I look those things up on your page. Thanks for the help.

  • @mattfrazier8838
    @mattfrazier8838 Před 5 lety +2

    Great video! It took me a little more time to understand everything when I was implementing the JavaScript into a separate file but you were very thorough! Keep up the great work!

  • @uchihaa_kakashi
    @uchihaa_kakashi Před 3 lety

    I have been following you for an entire year i think first time I saw you today 😅

  • @gradyhodge8517
    @gradyhodge8517 Před 5 lety +1

    Seriously Great tutorial, this taught me what I was trying to learn in a university course! THANK YOU! I'm recommending you to everyone!

  • @leifan9740
    @leifan9740 Před 5 lety +1

    Thank you so much for such an intuitive tutorial. Feel so lucky to get in here. Really enjoy watching it. Thanks

  • @technologybd3901
    @technologybd3901 Před 4 lety +1

    Thank you so much sir! Learned a lot from that video

  • @DrSarge37
    @DrSarge37 Před 7 lety

    Seeing the markers grabbed from the DB would be very useful for me.

  • @dezlo2174
    @dezlo2174 Před 7 lety

    Dear Brad. You are a great teacher to show us step by step. You show us the coding methods in details. Hope you can use this method to teach in your forthcoming video. Thank you.

  • @MrManolis97
    @MrManolis97 Před 6 lety

    THIS MAN IS THE REAL MVP.......SIR I HAVE TO SAY THAT YOU ARE MY NEW TEACHER

  • @Mehedihasan-rahat
    @Mehedihasan-rahat Před rokem

    Thanks Brad it was an extremely helpful video... May almighty rest your soul in peace.... Amin❣️❣️❣️

  • @UmarJAN-bz2nq
    @UmarJAN-bz2nq Před 3 měsíci

    That`s why i like JavaScript.Thanks for this informative video.

  • @LatinoWebStudio
    @LatinoWebStudio Před rokem

    Thanks so much for this video! Even tho it's a few years old it's literally the best one out there for how to create a map with the JavaScript API. Thanks for always creating great content!

  • @mariacrowley2669
    @mariacrowley2669 Před 6 lety +1

    Great video! Very easy to follow. I'm not quite there yet to program the entire map efficiently but I can understand exactly how it works. I'm using the divi plug in but looking around for more functionality to add in later.

  • @LongPhamKimura
    @LongPhamKimura Před 7 lety

    I know nothing about coding, your tutorial help me heaps, cheers

  • @corsaronero5619
    @corsaronero5619 Před 7 lety

    There are no words about your video. They are simply the best. Thank you mate

  • @AndrewLee-wl6cn
    @AndrewLee-wl6cn Před 5 lety

    This was really informative. I liked how he went in to detail about what he was doing.

  • @ebenezerl6008
    @ebenezerl6008 Před rokem

    Thanks a bunch for the video coach...
    I was searching for such a guide throughout the internet , but couldnt find.. Your explanation helps me a lot in building my project..
    Once again thanks a bunch

  • @Fabroskii
    @Fabroskii Před 6 lety

    Awesome tutorial man - thank you! If anything, I'd suggest avoiding redundant comments (like "// Add Marker Function" before "function addMarker()"). I just found you, but I feel I'm going to be watching a lot more of your videos. Rad!

  • @vladuxs112
    @vladuxs112 Před 6 lety

    I think this video was the one, when I finally got understanding of objects, arays and all that js code, I were copying for weeks by now :D thanx!

  • @Guts-zo3jv
    @Guts-zo3jv Před 5 lety +1

    Thank you! You've been helping me a lot to understand new APIs! Keep it up!!!

  • @mdjunaid38
    @mdjunaid38 Před 7 lety

    The best tutorial I have seen for Google maps.. I finally can say , I know how to use Google maps API .. Thanku so much !! Looking forward to more such videos

  • @user-ke6iq4hl6r
    @user-ke6iq4hl6r Před 10 měsíci

    You just saved a day or two work. Thanks as always Trever.

  • @abdurrazzak1612
    @abdurrazzak1612 Před 2 lety +1

    Thanks a lot. Finally I learn maps marker!!!

  • @cathumali6624
    @cathumali6624 Před 7 lety +2

    Hi, I love your tutorials.. They are clear and I'm learning a lot. Thank you.

  • @sandywyper
    @sandywyper Před 6 lety

    Love this! You make it so easy🙂. I added a little bit that closes the info windows when you want to open another one. So only one info window is open at one time. Get me!

  • @portlandsound1
    @portlandsound1 Před 6 lety

    I agree. Your videos are amazing. You have such an amazing way of explaining complex ideas, which demonstrates your expertise. Thank you!

  • @georgeuba5421
    @georgeuba5421 Před 6 lety

    Traversymedia you guys are doing a great job. I learn a lot from all your videos. Thanks for the commitment.

  • @JosephUrban
    @JosephUrban Před 2 lety

    Thanks for a clear, systematic tutorial on these topics. It was one of the best I've seen on this topic.

  • @pki1989
    @pki1989 Před 5 lety +1

    Great tutorial...your explanations and examples are very clear

  • @samuelnmeje
    @samuelnmeje Před 3 lety

    2021 still enjoy this video. you are awesome

  • @chauhanvipul2009
    @chauhanvipul2009 Před 3 lety

    Excellent...Simple and easy to manage and understand

  • @inderjeet8659
    @inderjeet8659 Před 3 lety

    damn this is easier than i thought...idk why it felt like it's a google api so it would be extremely hard

  • @avloggroupvideos4520
    @avloggroupvideos4520 Před 3 lety

    Hey, you make a great tutor. However, for some reason I cannot get the Map to show up. I followed your video a few times, without any joy. So I downloaded your "index.html" file and still had the same problem. The map briefly flashed up on the screen then vanished leaving an error message ("Sorry! Something went wrong.
    This page didn't load Google Maps correctly. See the JavaScript console for technical details."). After looking at the Console it was apparent that the problem seemed to be your API key (understandably in hindsight!) that was the problem. So I simply copied out your code from your map with my key in place and voila!. It worked!! Well done Sir!

    • @DIProgan
      @DIProgan Před 3 lety

      Your API-key is not activated

  • @imninja4220
    @imninja4220 Před 5 lety +1

    you always make complex things simple. great tut

  • @gofgabs
    @gofgabs Před 4 lety

    All of thing in this VDO is clear. Thank very much .

  • @najmlion7129
    @najmlion7129 Před 7 lety +2

    I always watch your videos, and I normally dont comment but please stick with this kind of setup. It's so much better.

  • @muthuhari8875
    @muthuhari8875 Před 7 lety +1

    finally video i am waiting for, thanks brad, Please do more stuffs on Google API`s

  • @DerekWalker55
    @DerekWalker55 Před 2 lety +1

    Thank you for explaining that so well, I really appreciate it

  • @williams6726
    @williams6726 Před 4 lety

    This tutorial was excellent! Very clear and concise. Hit several relevant points. Thank you for sharing. Subscribed!

  • @ilikeit6306
    @ilikeit6306 Před 4 lety

    I love this CZcams Channel so much , I learn a lot from here. Thanks Master. Keep share it all. I always here.

  • @AhsanAli-wx1ez
    @AhsanAli-wx1ez Před 6 lety

    You are awesome sir, Best teacher on the internet. Thank you so much for your videos and sir i want to keep this going .. thanks..

  • @zenmasterfu
    @zenmasterfu Před 2 lety

    Nice thumbnail ! First town seen Bacchus Marsh ... maaaate !!