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
Very Good Brother
Brother please tell me , how to make a custom marker info window ?? plz help me brother
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
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...!
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
for example I am getting list of lat and long from api , I need to mark it in google map
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.
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.
Hello Kiran, you can refer to one of my earlier tutorials on saving the data in SQLite database. ruclips.net/video/v_qLPnRBvBA/видео.html
how to add the multiple location using marker in google map after api call
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.
@@RDLabswithRohant can you please make a tutorial on it?
Sure lets do it!