X
X
xpytep2017-02-08 21:14:48
JavaScript
xpytep, 2017-02-08 21:14:48

How to request user coordinates on page load and pass in PHP?

Hello. I'm trying to make a service using google maps. I want something at startup (either from a computer or from a phone), the map was set as accurately as possible at the user's location, and it is desirable that there be a label where it is located (as in a phone). So that when you open the site, it asks "The page is asking for your current location, allow it?". I found something on the Internet, but it only works from a PC, from a phone - it doesn’t ask for anything :( and it doesn’t show where I am approximately, it just puts the map in the center.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question