step 13 : show google map flutter web & current location function

This commit is contained in:
sindhu
2024-08-28 12:02:47 +07:00
parent 40453ab16b
commit 6bab2dbef3
5 changed files with 149 additions and 33 deletions

View File

@@ -97,16 +97,18 @@
<script>
// var API_KEY = "AIzaSyCiN7EeJsUpXVLQKFfrj3sE5OTKebjpzek";
// var API_KEY = "AIzaSyCztj0X7erH-uqotFfe_Yd-Nt0oBJu6FeM";
// var script = document.createElement('script');
// script.src = "https://maps.googleapis.com/maps/api/js?key=" + API_KEY;
// document.head.appendChild(script);
var API_KEY = "AIzaSyAVUr4Ku4O1HlSkK8n9KGnUyqvsXBL-yfs";
var script = document.createElement('script');
script.src = "https://maps.googleapis.com/maps/api/js?key=" + API_KEY;
document.head.appendChild(script);
// tambahan
window.onload = function () {
getLocationAndSend();
// getLocationAndSend();
};
// tambahan
</script>
<script src ="https://maps.googleapis.com/maps/api/js?key=AIzaSyAVUr4Ku4O1HlSkK8n9KGnUyqvsXBL-yfs&callback=initMap&v=weekly&libraries=marker" defer></script>
</body>
</html>