Google Map 谷歌地圖

        var map;
        function initMap() {            
            var position = new google.maps.LatLng(1.539187, 103.647115),
            map = new google.maps.Map(document.getElementById('map'), {
                center: position,
                zoom: 15, 
                styles: [去網站弄]                
            var marker = new google.maps.Marker({
                position: position,
                map: map,
                animation: google.maps.Animation.DROP, // BOUNCE, DROP, lo, no              
                icon: ''                 
            marker.addListener('click', function () {
                var ttc = document.getElementById('mapContent').cloneNode(true);
                var infoWindow = new google.maps.InfoWindow;
                infoWindow.setContent(ttc);  //can put element but won't auto clone 哦

        var script = document.createElement('script');
        script.type = 'text/javascript';
        script.async = true;
        script.defer = true;
        script.src = ''

    @*<script src="" async defer></script>*@

refer :    (弄 style 的) (官網)


關鍵詞:script map maps google var com position infowindow gt document


Google Maps InfoWindow with AJAX - & ldquo&semi; Uncaught TypeError&colon; Object &num; & l...

Adding Multiple Markers with Info Windows to Google Maps Dynamically from Database

Google Map does not appear in the page

Toggle display &sol; hide Google Map Markers

How to Create a Custom-styled Google Map in React

Responsive google map in zurb foundation 3

Animate Marker In Google Map Using Bootstrap In ASP.NET MVC

CSS3 rounded corner with google map

Add information for multiple markers from dynamic content

Migrating from Google Maps JavaScript API to ArcGIS API for JavaScript