Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [Google Maps API v3] odświeżanie markerów na mapie
warland
post
Post #1





Grupa: Zarejestrowani
Postów: 50
Pomógł: 0
Dołączył: 22.01.2018

Ostrzeżenie: (10%)
X----


Czy ktoś orientuje się co dodać do poniższego kodu by odświeżały się markery bez przeładowania strony co 10 sekund?

  1. var bounds = new google.maps.LatLngBounds();
  2. var i, center;
  3.  
  4. for (i = 0; i < shape.length; i++) {
  5.  
  6. bounds.extend(shape[i]);
  7. markers.push(marker);
  8. }
  9. center = bounds.getCenter();
  10. images4 = 'https://cvinto.pl/landpl/markery/cannon.png';
  11. var marker = new google.maps.Marker({
  12. });
  13. marker.setOptions({position: { lat: center.lat() + 0.08, lng: center.lng() }, map: map, icon: images4});
  14. marker.setVisible(true);
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 14:40