Salve ho il seguente codice:
codice HTML:
function listSelected () {
var r = selectedArea.getRadius(), c = selectedArea.getCenter();
var inside = $.map(sites,function ( s ) {
var d;
gmarkers.push(s.marker); plotMarkers1();
if ( ( (d = google.maps.geometry.spherical.computeDistanceBetween( s.position, c )) <= r ) )
// gmarkers.push(s.plotMarkers1); // add a line to the side_bar html
return ' <a href="javascript:myclick(' + (gmarkers.length-1) + ')">' + s.luogo+"," +s.indirizzo +' <\/a><br>';
});
$('#map-selected').html( inside.sort().join('<br/>') ); }
in questo codice quando arrivo al return e chiamo href mi creo il collegamento per farmi vedere
il luogo e l'indirizzo sulla mappa e farmi aprire il fumetto sul marker.
Ora vorrei farmi aprire un popup che mi porti dietro il luogo e l'indirizzo ...
come posso fare?