How To remove a marker on google maps api v3 -


i want delete marker, doesn't work, help? code

 gevent.addlistener(map, "dblclick", function()   {       deletemarker(marker, cells);   }      );    function deletemarker(marker,cells)   {     marker.setmap(null);    } 

thank you

i think error not google maps v3.

marker.setmap(null);  //correct 

function call has 3 parameters

deletemarker(marker, cells,true); 

whereas function definition has 2 parameters

function deletemarker(marker,cells)   {     marker.setmap(null);    } 

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -