hey there, is there a way that i can just display the marker's info of the marker on the map when i click on the link of the place beneath my map?
here is my map www.nostix.co.za/map/ovkmap.asp the first place that i want to click on, i made it a link, but can't get the info marker to display for that particular place thank you if you can help me On Fri, Dec 18, 2009 at 3:08 PM, MaxOvrdrv <[email protected]>wrote: > oups, i forgot something in the function, replace the last line above > with these 2...: > > currentmarker=new GMarker(point)); > > map.addOverlay(currentmarker); > > } > > On Dec 18, 8:05 am, MaxOvrdrv <[email protected]> wrote: > > Hi, > > > > Well, do you have any information regarding that address already? > > > > if you already have the LatLng for that address, then you simply need > > to code your link like this: > > > > <a href="JavaScript:PutMarker(lat,lng);">Address</a> > > > > and then in your function / javascript: > > > > //declare global variable > > var currentmarker; > > function PutMarker(lat,lng) > > { > > if(currentmarker!="") > > { > > map.removeOverlay(currentmarker); > > } > > var point = new GLatLng(lat,lng); > > map.addOverlay(new GMarker(point)); > > > > } > > > > of course you can play with your markers and everything else and put > > HTML in there and all of that... here: > > > > any method or function that you can do with the map, as well as any > > and all objects that can be put on, or interact with the map (API > > Reference)http://code.google.com/apis/maps/documentation/reference.html > > > > On Dec 18, 7:55 am, "[email protected]" <[email protected]> wrote: > > > > > > > > > OS Windows XP > > > Browser FFirefox 3.5 > > > > > i want to show a map marker on a map when i click on the place's name > > > from a list of names beneath my map on the website > > > > > can anyone please help, my urlhttp://www.nostix.co.za/map/ovkmap.asp > > > thank you- Hide quoted text - > > > > - Show quoted text - > > -- > > You received this message because you are subscribed to the Google Groups > "Google Maps API" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-maps-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-api?hl=en. > > > -- Louis Nel Sel +27828153273 Fax: +27 866 104 812 -- You received this message because you are subscribed to the Google Groups "Google Maps API" 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-api?hl=en.
