step 13 : show google map flutter web & current location function
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user