hi, i'm trying to do something like this: There is a textarea, where you write the ID of the marker; then, when you press ENTER, the map will zoom to the marker and open the infowindow.
now I write on the text area, I press ENTER and the map show an alert (that's ok). what are the instructions to select the correct marker, zoom an open the infowindow? Must I give to each marker an ID, to make the search? in italian ciao, sto cercando di fare una cosa simile a quella: Ho creato un campo di testo, dove uno può scrivere la sigla del marker (che prendo da un database, faccio il parsing e me la ritrovo come variabile). vorrei che una volta che premo invio, mi centrasse la mappa sul marker e che mi aprisse la relativa finestra infowindow. per ora riesco a scrivere, premo invio e mi mostra un alert (che ho fatto io, quindi è corretto). quali sono le istruzioni per fargli fare lo zoom sul marker e fargli aprire l'infowindow relativa? devo settare qualche parametro particolare nel marker per assegnargli l'id con cui farò la ricerca? On 12 Ago, 14:47, Federico Ulfo <[email protected]> wrote: > here a simple example that can be usefull for > youhttp://www.federicoulfo.it/maps/markers_position.html > > 2010/8/12 Federico Ulfo <[email protected]> > > > really easy > > > google.maps.event.addListener(marker, 'click', function() { > > stepDisplay.setContent(html); > > stepDisplay.open(map, marker); > > }); > > > ; ) > > > 2010/8/12 jarreweb <[email protected]> > > > Hello to all > > >> I'm trying to convert my v2 maps to v3. > >> I use to make a menu (with php) which interacts with the map > >> here is an example : > >>http://www.plages.com/plages-charente-maritime-d17.html > >> I want to open the infowindow when the cursor is over the link menu on > >> the left. > > >> I tried to use google.maps.event.trigger but with no effect > > >> Can you explain me the way to aim my goal ? > > >> thank you > > >> -- > >> You received this message because you are subscribed to the Google Groups > >> "Google Maps JavaScript API v3" group. > >> To post to this group, send email to > >> [email protected]. > >> To unsubscribe from this group, send email to > >> [email protected]<google-maps-js-api-v3%[email protected]> > >> . > >> For more options, visit this group at > >>http://groups.google.com/group/google-maps-js-api-v3?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
