I’m adding maps to a website dynamically, finding the lat and lng by using google’s geocoding service. I’d like to put a marker on the position returned by the geocoding service, on top of that, I’d like the marker to be a custom image.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to use the GIcon class. Please take a look at this:
http://code.google.com/apis/maps/documentation/javascript/v2/overlays.html#Custom_Icons