简体   繁体   中英

google maps everytime fails to place some markers on the map

im trying to place like 130/140 markers on a custom google map.

i inject the map with jquery and gmaps (http://gmap.nurtext.de/) everytime, at random (not related to specific markers) a lots of markers are not shown.

firebug report this error:

a is null

and this error comes from this file:

http://maps.gstatic.com/intl/it_ALL/mapfiles/285c/maps2.api/main.js

if i refresh the page...some other markers are "hidden" and other ones are shown.

anyone had this problem/can help me or suggest another safe way to show all markers?

thanks a lot!


EDIT: this is how i inject the map and the markers (with a lots of address, but in this example only few)

$(document).ready(function()
{
    $("#container").gMap(
        {
            scrollwheel: false,
            maptype: G_PHYSICAL_MAP,
            icon:
            {
                image: "files/images/gmap_pin.png",
                iconsize: [32, 37],
                iconanchor: [32, 37],
                infowindowanchor: [12, 0]
            },
            address: "Milano",
            zoom: 4,
            markers:
            [
            { address: "Viale Certosa, Milano" },
            { address: "Viale Ceccarini, Milano" },
            { address: "Viale Italia, Milano" },
            { address: "Via Rodi, Milano" },
            ]
        });
});

the problem is in the plugin itself. it try to get from gmaps the geocodes..but there is no callback that stop the cycled requests if there is some latency in the gmaps responses.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM