Custom Google Map won't show in div element
问题 I'm trying to customize google map but I have a small problem. Here is the css code: #map-canvas { width: 100%; height: 500px; } and the js code: <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script> <script> function initialize() { var myLatlng = new google.maps.LatLng(-25.363882,131.044922); var mapOptions = { zoom: 4, center: myLatlng } var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); var marker = new google.maps.Marker({