I want to use google map on my angular 4 application.how can I obtain users location and show on map also detect address when users changed their location
-
I visit this link : angular-maps.com but I cant find my answerAli Abbaszade– Ali Abbaszade2017-09-12 05:06:29 +00:00Commented Sep 12, 2017 at 5:06
-
There are few more packages available in NPM. please check as well.The Hungry Dictator– The Hungry Dictator2017-09-12 05:11:27 +00:00Commented Sep 12, 2017 at 5:11
-
I checked them before.many of them refer to this linkAli Abbaszade– Ali Abbaszade2017-09-12 05:48:32 +00:00Commented Sep 12, 2017 at 5:48
-
Are you getting google map in your application?The Hungry Dictator– The Hungry Dictator2017-09-12 06:15:25 +00:00Commented Sep 12, 2017 at 6:15
-
1Solved with this code navigator.geolocation.getCurrentPosition(function (position) { var pos = { lat: position.coords.latitude, lng: position.coords.longitude }; })Ali Abbaszade– Ali Abbaszade2017-09-12 09:03:46 +00:00Commented Sep 12, 2017 at 9:03
|
Show 3 more comments