HTML5 Tutorials: Detect user's location with HTML Geolocation (Part 1/4)

preview_player
Показать описание

Official site

Twitter
Рекомендации по теме
Комментарии
Автор

click the button in the top right of chrome, the one with 4 vertical lines, goto settings, scroll down til u see advanced settings, open that, in the privacy section click content settings then scroll down to location and make the appropriate changes

dashbyictfd
Автор

thanks very much,
got this video very helpful for my assignment

FaizShaikh-vdrm
Автор

where can i get the google's link?
i mean the link i am taking from google is different from yours... and its not getting my location.

danishjamil
Автор

On clicking get location i'm unable to get my location.... Could you please help me in that... Please reply me it's very necessary to me

riyasri
Автор

How to return the name of the place the browser is currently in? I don't want to know the coords but the city

chap
Автор

If code's not working, try to rename variable "c" to something like "newposition", as one word variable might not be supported in some cases.

sourabhp
Автор

Where can I get the code that you used? For some reason, even tho I copy letter by letter, my sample doesn't work.

syntrax-og
Автор

How can I make the marker dragable, and get the new latitude and longitude.

andilesimelane
Автор

Where is the source code for this tutorial?

xingyubian
Автор

how to find a route from my current location to any fixed location using javascript any help would be appreciated

akshaysatija
Автор

what is the ".setAttribute" part doing. I notice that when I click on the marker it will actually give me some info about the location, something that I have not been able to do with other geolocation scripts without an info window

narvain
Автор

sir i want to show the user current location on my website through google map.A user has a android mobile and he is continously running i want to show his real time location in google map?please give any idea to implement this sir.thanks alot..

mubeenali
Автор

its good.... but i am having the basic google map.... i am nt able to see the map of uk then its unable to get the coords... even not asking the permission....
 i have the same code as yours.... plz help me

yashmishra
Автор

nop this is totally not working for me or do i need xamp for it to work.

THETHPHANTOM
Автор

I love this video, would you put more advanced stuff about geolocation in the future? Thank you :D

MrInexistent
Автор

Is there a way to write the user's location to a file maybe using Ajax?

troysanders
Автор

Hi The codes didnt work on my computer
i dont know why

ugoprince
Автор

for some reason am having problems, getting undefined longtitude

IrishAfricanDude
Автор

I have one question:

Can we set the accuracy for example to be = 45 manually, instead of ="pos.coords.accuracy" and then to find location on this accuracy by pressing "Get location" link? :)

mihajloilic
Автор

I don't know for sure but it's always best to test all web application on a server like Xampp.

TheZobot