mercredi 22 avril 2015

Google maps - how to add marker without layout refresh

Have problem with marker adding.

        var marker = new google.maps.Marker({
        position: myLatlng,
        title:"Hello World!"
    });

    // To add the marker to the map, call setMap();
    marker.setMap(map);

http://ift.tt/1Gj5RVE

Simple example, each seconds I put marker, page not reloading, but reloading some layout and we see effect of map reload.

It is possible to do that put marker smoothly.

But on this page http://ift.tt/1Gj5URk all working fine, planes are flying and no effect of map reload.




Aucun commentaire:

Enregistrer un commentaire