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]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
