Thank you so, so much, I was about to throw my laptop out of the window because of google cloud platform frustration! This is the only up to date tutorial that shows this entire setup, thank you again Steve!
This is so great, I wish I found this video a few days ago before figure it out myself. You are great, keep instructing and thank you very much for your help :-)
If you have your own array of Markers you can call their getPosition() method to get the coordinates of each marker. A LatLngBounds object can define a rectangle. developers.google.com/maps/documentation/javascript/reference/coordinates#LatLngBounds - set its dimensions to match your current map. Then use the LatLngBounds.contains( ) method to see if each marker is inside. Every Map object has a getBounds( ) method that will give you a LatLngBounds object.
@@SteveGriffith-Prof3ssorSt3v3 hey do you have any working prototype, is there any way can we solve when we drag the map left or right or while we zoom in and zoom out too. Is there any way can we calculate distance between the markers and provide the result in sorting order
Markers all have a LatLng position. You can use that to create a Bounding box for the map. developers.google.com/maps/documentation/javascript/examples/control-bounds-restriction
Hi, do you know how can i use the google maps JS API in my backend? instead of using it in the .html file, using it in the server part. I'm making a server with node.js and express, and i need to calculate some distances
The Maps API is designed to run in the browser with a rendered map with image tiles. If you have the latitude and longitude and you just want a distance between the points, that is just a little math. www.movable-type.co.uk/scripts/latlong.html
@@SteveGriffith-Prof3ssorSt3v3 what i want is that distance, and represent the map in the browser with two markers, one for my house, and the other one for me, the server is receiving lat and lng every 20 seconds. What i think is my best option is, do the math operation between the two points, and send the lat and long to the html using .ejs to create two markers and represent them in the map. I think that's the best option for me.
The other way around is better. Use the maps API in the browser where you can actually run it, render the map, put the markers on, calculate the distances in the browser. If you need any of the data on your server then use fetch( ) to upload it after rendering and calculating.
Great video! Is there any way I can track my realtime location using html and JS? (e.g. when i go for a walk and then display the route that i walked on a map) Thanks! :)
The Geolocation API - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-NIAqR34eg7I.html And then you can display markers on the map or Draw a Path on the map.
@@SteveGriffith-Prof3ssorSt3v3 is there an issue with keeping the key hidden if you create an app through GitHub? Or can the app be deployed/key hidden through Google Cloud?