Ho questo codice che oltre a crearmi il cerchio intorno al marker visualizza il marker stesso con l'indirizzo che recupero con geocode, vorrei però levare il marker e lasciare solo il cerchio per delimitare la zona , come faccio ?
codice:<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript"> function init_map() { var myOptions = { zoom: 16, center: new google.maps.LatLng(<?php echo $latitude; ?>, <?php echo $longitude; ?>), mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("gmap_canvas"), myOptions); marker = new google.maps.Marker({ map: map, position: new google.maps.LatLng(<?php echo $latitude; ?>, <?php echo $longitude; ?>) }); // Add circle overlay and bind to marker var circle = new google.maps.Circle({ map: map, radius: 160, // 10 miles in metres // fillColor: '#AA0000' }); circle.bindTo('center', marker, 'position'); infowindow = new google.maps.InfoWindow({ content: "<?php echo $formatted_address; ?>" }); google.maps.event.addListener(marker, "click", function () { infowindow.open(map, marker); }); infowindow.open(map, marker); } google.maps.event.addDomListener(window, 'load', init_map); </script>

Rispondi quotando
