0

I am facing a strange problem with infobubble utility of google maps

It is taking too long time to render markers when I am rendering markers with click event to shown infbubble window

Below is live URL

http://abl-web.com/abl/map.php

Below is the chunk of code that is causing problem

    function property_click_event(marker,image_url, sysid, address, price, city, bedroom, bathroom, sqft, type, realtor, mls, position){

        var property_content = getPropertyContent(image_url, sysid, address, price, city, bedroom, bathroom, sqft, type, realtor, mls);

        var infoBubble = new InfoBubble({
            content: property_content,
            padding: 10,
            backgroundColor: 'white',
            borderRadius: 14,
            arrowSize: 20,
            borderWidth: 1,
            borderColor: 'white',
            hideCloseButton: false,
            arrowStyle: 2
        });

        var bounds = new google.maps.LatLngBounds();

        google.maps.event.addListener(marker, 'click', function() {
            if(lastOpenInfoWin) 
                lastOpenInfoWin.close();
            lastOpenInfoWin = infoBubble;
            infoBubble.open(map, marker);
            map.setCenter(position);
        });

        marker.setMap(map);
        bounds.extend(position);
    }

The above function add attach click event on marker and property content to be shown on info bubble

Update: The problem seems to be there only on chrome

Thanks

4

0 回答 0