I have problem about cloud popup.
I destroy it on clientside but it will back again.
How to save map state on client side?
I have problem about cloud popup.
I destroy it on clientside but it will back again.
How to save map state on client side?
Hello sumeth,
Thanks for your post, after you destroy the popup in the client side, you need to synchronize to server side, you can use Ajax to do this job.
First, let your class inherit the ICallbackEventHandler, then implement the RaiseCallbackEvent and GetCallbackResult function.
public string GetCallbackResult()
{
return "returnvalue";
}
public void RaiseCallbackEvent(string eventArgument)
{
////do sever side processing here
Map1.Popups.RemoveAt(0);
}
Then in the client side you call server and pass the parameters, it will raise the RaiseCallbackEvent and return value to js function by GetCallbackResult
function test() {
callServer('parameters');
}
function callServer(param){
<%= ClientScript.GetCallbackEventReference(this, "param", "receiveServerData", null)%>;
}
function receiveServerData(columnValue){
alert(columnValue);
}
I hope this can help, if I misunderstanding something, please feel free to let us know.
Regards,
Gary