Hi,
Did you include a div in the HTML with name "map-canvas" ?
If it is not the solution then can post your full code (HTML + JavaScript)

Thanks,
Barman

On Monday, 30 May 2016 05:28:15 UTC+5:30, Malinda Weerasinghe wrote:
>
> Hi, I've added a google map for my website. But its not loading. So i 
> refreshed page, still not working. Hope any help :-)
>
> this is my code,
>
> <script src="
> https://maps.googleapis.com/maps/api/js?key=AIzaSyAQfxOjBjK3cZ3RFjxXl9nGbv8q675WMyI
> "></script>
> <script>
>     var map;
>     function initialize() {
>       var mapOptions = {
>         zoom: 8,
>         center: new google.maps.LatLng(-34.397, 150.644),
>         mapTypeId: google.maps.MapTypeId.ROADMAP
>       };
>       map = new google.maps.Map(document.getElementById('map-canvas'),
>           mapOptions);
>     }
>
>     google.maps.event.addDomListener(window, 'load', initialize);
>
>     </script>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-maps-js-api-v3+unsubscr...@googlegroups.com.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
For more options, visit https://groups.google.com/d/optout.

Reply via email to