Click here to Skip to main content
16,013,207 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have markers on google map how can i open new page when user click on a specific marker for information details?
Posted

1 solution

Refer- Google Maps Events[^].

Add one click event for the Marker and inside that click event, do what you want to do like below.
JavaScript
google.maps.event.addListener(marker,'click',function() {
    // Do what ever you want to do.
});
 
Share this answer
 
Comments
S.M.Arsalan 4-Dec-13 16:41pm    
could you please tell how to add conditions in javascript for Google Map markers? when the parameters changes by query markers appear on map as query(filtered)?
No, I don't know that. Did you search in Google about that? You might find examples.
However, your question was how to do something on Marker click. I suggest you to add another question on Code Project about that.

So, please accept this answer, if it has helped you in any way.
This will help others to find the answer in one go and you will also be awarded with some points for this action...

Thanks,
Tadit

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900