How to add a marker on Google map when clicked?

I’m trying from days to add a marker on the Google map when the user clicks it.

How cam I do this? I tried different methods which didn’t work.
Please help me

1 Like

Read this post, and always search before posting any topic,

It is not working

have you tried to add from json? like this post?

I tried, it is not working

ok let me check it by my self

Just show the blocks you tried.

2 Likes

working add from json,

[{lat:27.77,lng:88.42,color:210,title:Example_Title,snippet:Example_Snippet,draggable:false/true}]

i checked,

blocks%20(20)
blocks%20(21)

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.