Question

Je travaille avec Google Maps v3 et j'utiliser le MarkerManager pour cacher les marqueurs sur un certain niveau de zoom. cercle I lier des objets à ces marqueurs. Quoi qu'il en soit, ils ne sont pas hided lorsque les marqueurs sont. Comment puis-je lier les cercles pour cacher les marqueurs?

La liaison:

var marker = new google.maps.Marker({
  position: new google.maps.LatLng(lat,lng),
});
var circle = new google.maps.Circle({
  map: map, 
  radius: 50,
});
circle.bindTo('center', marker, 'position');
Array.push(marker);
Était-ce utile?

La solution

Avez-vous résolu votre problème? Sinon ajouter ceci:

circle.bindTo('map', marker);
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top