How to get current user's location and add a Marker in Google Maps in Swift 5?

Поделиться
HTML-код
  • Опубликовано: 18 сен 2024
  • Maps Series: Tutorial 1 📝
    In this tutorial we'll see how to add a Marker in Google Maps in your Swift Project.This tutorial is the first in the series of implementing various types of Maps in Swift, so make sure you have subscribed 👆to our channel and you have hit the notification button 🔔
    📌Enabling the Google Maps API from 00:50
    📌Adding Google Maps Cocoa Pods from 06:20
    📌Adding Google Maps to the Swift Project from 09:09
    📌Setting the UIView to GMSMapView from 10:12
    📌Adding Location Manager from 11:35
    📌Updating info.plist file with Privacy settings for Location from 14:19
    📌Working with Location Manager DidChangeAuthorization from 15:42
    📌Code to fetch the location of the user and add a Map Marker 18:36
    📌Demo, Showing a Google Map with a Map Marker 23:53
    We upload new videos every week!
    Please reach out to me on the comments section if you have any doubts on this topic. Also, please Like & Subscribe the Channel and help us being part of your journey to learn Swift. Cheers until the next video!
    #Siri #GoogleMaps #Marker

Комментарии • 13

  • @AhmadRaza-le2dn
    @AhmadRaza-le2dn 3 месяца назад

    Very Good Brother

  • @AhmadRaza-le2dn
    @AhmadRaza-le2dn 3 месяца назад

    Brother please tell me , how to make a custom marker info window ?? plz help me brother

  • @michaelvilabrera7933
    @michaelvilabrera7933 Год назад

    Good day. I am enjoying this tutorial you prepared. Thank you very much for preparing it.
    I am curious, what was the reason to make the user location a marker and not make the user blue dot on the map

  • @robinlevasseur6204
    @robinlevasseur6204 2 года назад

    Hello ! Thank you very much for this tutorial but I have a problem. I followed word by word your tutorial, and despite this, when I run the app, there aren't marker on the map. And the map failed when we want to return on the app after closing it. I hope that you will be able to help me. Thank you by advance...!

  • @ounifisamir478
    @ounifisamir478 2 года назад

    thank's for your livecoding so i do all what you do and i write all code and i import all library but i have problem in location
    (error domain=kclerrordomain code=0 "(null)") i dont konw what is the problem so any help

  • @sowntharrajans7180
    @sowntharrajans7180 3 года назад

    for example I am getting list of lat and long from api , I need to mark it in google map

    • @RDLabswithRohant
      @RDLabswithRohant  3 года назад

      Hello Sowntharajan, if you have it in a dictionary or in an array, then you’ll have to iterate / loop through the collection and add the marker one by one on the map.

  • @kiransonne6863
    @kiransonne6863 3 года назад

    Thanks a lot. If I want to save the current location in sqlite database.so how we will do that.
    I am waiting your positive response.

    • @RDLabswithRohant
      @RDLabswithRohant  3 года назад

      Hello Kiran, you can refer to one of my earlier tutorials on saving the data in SQLite database. ruclips.net/video/v_qLPnRBvBA/видео.html

  • @sowntharrajans7180
    @sowntharrajans7180 3 года назад

    how to add the multiple location using marker in google map after api call

    • @RDLabswithRohant
      @RDLabswithRohant  3 года назад

      Hello Sowntharajan, if you have it in a dictionary or in an array, then you’ll have to iterate / loop through the collection and add the marker one by one on the map.

    • @davidwim
      @davidwim 2 года назад

      @@RDLabswithRohant can you please make a tutorial on it?

    • @RDLabswithRohant
      @RDLabswithRohant  2 года назад

      Sure lets do it!