浏览器中的Google Map API错误

时间:2013-12-03 13:01:17

标签: google-maps

想知道您是否可以查看我的Google地图:

http://tinyurl.com/m6emjfz

有几个问题......

第一个问题是单击引脚位置时无法使close [x]按钮可见。

此外,我左侧的Google地图加号和减号切换功能无法正确显示。你知道通常会导致这个错误吗?

我的代码是

                 

<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script src="js/jquery.gmap.js"></script>

    <script>

        /*
        Map Settings

            Find the Latitude and Longitude of your address:
                - http://universimmedia.pagesperso-orange.fr/geo/loc.htm
                - http://www.findlatitudeandlongitude.com/find-address-from-latitude-and-longitude/

        */

        // Map Markers
        var mapMarkers = [{
            address: "Unit 4 / 190 Abernethy Rd, Belmont WA 6104",
            html: "<strong>Head Office - Perth</strong><br><strong>Unit 4 / 190 Abernethy Rd, Belmont WA 6104</strong><br><br><a href='#' onclick='mapCenterAt({latitude: -31.957626, longitude: 115.929654, zoom: 16}, event)'>[+] Zoom Here</a>",
            icon: {
                image: "images/pin.png",
                iconsize: [26, 46],
                iconanchor: [12, 46]
            }
        },{
            address: "8 Turee Way, Paraburdoo WA 6754",
            html: "<strong>Paraburdoo Office - Paraburdoo</strong><br><strong>8 Turee Way Paraburdoo WA 6754</strong><br><br><a href='#' onclick='mapCenterAt({latitude: -23.205040, longitude: 117.654366, zoom: 16}, event)'>[+] Zoom Here</a>",
            icon: {
                image: "images/pin.png",
                iconsize: [26, 46],
                iconanchor: [19, 46]
            }
        },{
            address: "Lot4/ Mine Rd, Tom Price WA 6751",
            html: "<strong>Tom Price Office - Tom Price</strong><br><strong>Lot4/ Mine Rd, Tom Price WA 6751</strong><br><br><a href='#' onclick='mapCenterAt({latitude: -22.708424, longitude: 117.775175, zoom: 16}, event)'>[+] Zoom Here</a>",
            icon: {
                image: "images/pin.png",
                iconsize: [26, 46],
                iconanchor: [12, 46]
            }
        }];

        // Map Initial Location
        var initLatitude = -26.030257;
        var initLongitude = 115.929654;

        // Map Extended Settings
        var mapSettings = {
            controls: {
                panControl: true,
                zoomControl: true,
                mapTypeControl: true,
                scaleControl: true,
                streetViewControl: true,
                overviewMapControl: true
            },
            scrollwheel: true,
            markers: mapMarkers,
            latitude: initLatitude,
            longitude: initLongitude,
            zoom: 5
        };

        var map = $("#googlemaps").gMap(mapSettings);

        // Map Center At
        var mapCenterAt = function(options, e) {
            e.preventDefault();
            $("#googlemaps").gMap("centerAt", options);
        }

    </script>

    </div>

0 个答案:

没有答案