Category : google-maps

How I can get data from mysql database and store it in a javascript array? In index.html file I have loaded google maps API and app.js source file like below: <script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAeC02tpA1XmKr4JUSgkJQIxQ_Kvsh6hrQ&callback=initMap"> </script> <script src="app.js" charset="utf-8"></script> Currently I am setting pins on map by iterating trough an array with coordinates that are stored ..

Read more

I am using this example code for Google Maps it is working fine. <div id="googleMap"></div> <script> var editedPolygons = [ [[{lat:31.966214, lng:35.928388},{lat:31.966205, lng:35.92839},{lat:31.966163, lng:35.928244},{lat:31.966333, lng:35.928186},{lat:31.966379, lng:35.928345}],{"color":"yellow","title":"0034","address":"0034","100500000034","299.1"]}] ]; var map; function initialize() { var mapProp = { center: new google.maps.LatLng(31.965829,35.928271), zoom: 19, mapTypeId: google.maps.MapTypeId.SATELLITE }; map = new google.maps.Map(document.getElementById("googleMap"), mapProp); for (var i = 0; i ..

Read more

I currently tried to insert a reCaptcha V2 in my html pages, everything seems to be working fine until I add the Google Map Api to false, from then on it keeps returning any empty RECAPTCHA Response GOOGLE API <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> FORM <div class="contact-form-holder"> <div id="contact-form"> <div id="message2"></div> <form method="post" action="bot2.php" name="contactform" id="contactform" enctype="multipart/form-data"> ..

Read more