What do you want to save?
Add Code snippet
New code examples
-
Html 2022-03-24 15:55:29
google map html
<script> function myMap() { var mapProp= { center:new google.maps.LatLng(51.508742,-0.120850), zoom:5, }; var map = new google.maps.Map(document.getElementById("googleMap"),mapProp); } </script> <script src="[Google API ... Add solution -
Other 2022-03-19 10:45:06
how to know if a lat/lng falls within another lat/lng
function arePointsNear(point1, point2) { var sw = new google.maps.LatLng(point2.lat() - 0.005, point2.lng() - 0.005); var ne = new google.maps.LatLng(point2.lat() + 0.005, point2.lng() + 0.005); var bounds = new google.maps.LatLngBounds(sw, ne... Add solution -
Javascript 2022-03-14 16:10:08
google maps places autocomplete api
<input type="text"required id="autocomplete"> <script> function initAutocomplete() { new google.maps.places.Autocomplete( (document.getElementById('autocomplete')), {types: ['geocode']} ); } </s... Add solution -
Javascript 2022-03-02 21:40:01
react native google places autocomplete
function initialize() { var options = { types: ['(cities)'], componentRestrictions: {country: "us"} }; var input = document.getElementById('searchTextField'); var autocomplete = new google.maps.places.Autocomplete(input, options); } Add solution -
Javascript 2022-02-02 22:10:15
google auto complete not show on modal
<script> $(function () { var input = document.getElementById("keyword"); var autocomplete = new google.maps.places.Autocomplete(input); $('#my-modal').modal('show'); }); </script> <style> ... Add solution -
Javascript 2022-01-26 08:12:35
how to show 2 point destination on google map js code stack overflow
function renderDirections(result, map) { var directionsRenderer1 = new google.maps.DirectionsRenderer({ directions: result, routeIndex: 0, map: map, polylineOptions: { strokeColor: "green" } }); console.log("... Add solution -
Other 2022-01-23 02:46:15
change marker label color
// creates a marker with a closure for the event functions. function createMarker(latLng, text, label) { var marker = new google.maps.Marker({ position: latLng, map: map, label: {text: label, color: "white"} }); google.maps.eve... Add solution -
Javascript 2022-01-22 16:21:07
reverse geocoding javascript map
function getReverseGeocodingData(lat, lng) { var latlng = new google.maps.LatLng(lat, lng); // This is making the Geocode request var geocoder = new google.maps.Geocoder(); geocoder.geocode({ 'latLng': latlng }, (results, status) =>{ ... Add solution -
Java 2021-11-16 15:34:25
calculate distance from source to destination in android
//import this import com.google.maps.android.SphericalUtil; public class Detailed extends AppCompatActivity { //define object for storing latitude and longitude coordinates LatLng YourLocationData; LatLng DestinationData; Double Distance; @Override ... Add solution
Best helpers
Alexingohr
+5
Cali
+5
Veirtimid
+5
Anon8889
+5
Sardathrion
+5
G987
+5
Nuria
+5
Tony Ong
+5
Mike Adams
+5
Ender
+5
Shachna
+5
PoundingRain
+5
Zhengyue
+5
Shahar Tene
+5
Kang
+5
Altexpape
+5
Aung68618
+5
Anita Gould
+5