ThinkGeo.com    |     Documentation    |     Premium Support

SimpleMarkerOverlay Click Event

Hello,

We make marker position with SimpleMarkerOverlay.
And we create function distance with two point.
it works very well.

if can i distance check mode don’t click marker?
We have problem reduplication “distance point click” event and “marker click” event.
We want in distance check mode case, we want don’t click marker.

** Example…
// Distance mode.
SimpleMarkerOverlay markerOverlay = FindOverlay(map, “sampleOverlay”) as SimpleMarkerOverlay;
markerOverlay.OnClientClick = null;
// Nomal mode.
SimpleMarkerOverlay markerOverlay = FindOverlay(map, “sampleOverlay”) as SimpleMarkerOverlay;
markerOverlay.OnClientClick = “OnClickedMarker”;

Please check this problem.
Best Regards.

Hi Binary,

It looks we still be confused about your problem, could you please describe that more detail? Or maybe you want to attach something like screenshot to help us understand what problem you met.

We are glad to help you on solve your problem.

Regards,

Don

Hi Don.

We create SimpleMarkerOverlay and draw marker.
We are set marker click event.
This event is show popup with marker information.

We Problem… Want disable / enable click marker event with chechbox.

if(checkbox.checked)
{
// Set marker click event (Marker clicked visible popup). ** enable click event to marker.
}
else
{
// Remove marker click event -> (Marker clicked non visible popup) ** disable click event to marker.
}

Please check this problem.
Best regards.

Hi Binary,

There is a marker demo, you can refer it to disable marker click event.

8596_MarkerEventDemo.zip (390.1 KB)

If you have any questions, please feel free to contact us.

Thanks,

Don