V
V
Vladislav Gubarev2020-12-19 09:27:51
JavaScript
Vladislav Gubarev, 2020-12-19 09:27:51

How to use JavaScript to make a view zone like in Google Maps?

Google Maps uses the blue zone to show where you are looking. How can the same be implemented in JS using the navigator interface?
5fdd9cce4081c805637193.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2020-12-19
@vla_doss

https://developer.mozilla.org/en-US/docs/Web/API/G...

navigator.geolocation.getCurrentPosition((position) => position.coords.heading);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question