缩放控制缺少(+)和( - )图像

时间:2014-02-26 21:09:33

标签: google-maps google-maps-api-3 zoom

我在使用谷歌地图的缩放控制时遇到问题。 (+)和( - )图像未显示,只显示不可见的链接。

我认为它可能是javascript代码。我附上了一张图片和代码片段。建议非常受欢迎=)

屏幕截图:

See Image Link

代码段:

    ...
    function initialize()
    {
        "use strict";
        geocoder = new google.maps.Geocoder();

        var listing_lat = jQuery('#property_latitude').val();
        var listing_lon = jQuery('#property_longitude').val();

        if (listing_lat==='') {
            listing_lat=google_map_submit_vars.general_latitude
        }

        if (listing_lon === '') {
            listing_lon = google_map_submit_vars.general_longitude
        }

        console.log(listing_lat + ' / ' + listing_lon);

        var mapOptions = {
            zoom: 17,
            scrollwheel: true,
            disableDefaultUI:false,
            center: new google.maps.LatLng(listing_lat, listing_lon),
            mapTypeId: google.maps.MapTypeId.ROADMAP
        };
        map = new google.maps.Map(
            document.getElementById('googleMapsubmit'),
            mapOptions
        );
        google.maps.visualRefresh = true;

        var point=new google.maps.LatLng(listing_lat, listing_lon);
        placeSavedMarker(point);

        google.maps.event.addListener(map, 'click', function(event) {
            placeMarker(event.latLng);
        });
    }
    ...

0 个答案:

没有答案