problem to remove single marker in google maps api
-
in my example it's show that I put only one marker but lets say I add much more markers and I only want to remove marker in my array in index 0.
protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
if (CheckBox1.Checked == true)
{
GMap1.addGMarker(markers1[0]);
}
else
{
//i dont know what to write here} }
-
in my example it's show that I put only one marker but lets say I add much more markers and I only want to remove marker in my array in index 0.
protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
if (CheckBox1.Checked == true)
{
GMap1.addGMarker(markers1[0]);
}
else
{
//i dont know what to write here} }
..and who told you what to write in the first "if"? The "addGMarker" method returns an object, and according to the documentation one could call the "remove" method on that object. Says here on the page it's deprecated. What version of GMaps are you using?
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]