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 8.02.2018, 14:44:10
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
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 25.04.2024 - 17:17