google maps everytime fails to place some markers on the map

Posted by Luca on Stack Overflow See other posts from Stack Overflow or by Luca
Published on 2010-12-27T15:14:08Z Indexed on 2010/12/27 15:54 UTC
Read the original article Hit count: 296

hello! 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" },
            ]
        });
});

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery