ThinkGeo.com    |     Documentation    |     Premium Support

HighlightOverlay cleint side re-draw

Hi,
I am trying to re-draw HighlightOverlay from client side, it’s not work out. But same thing if we do it in server side it’s working

Client Side Code:
if (map.getLayersByName(“HighlightOverlay”).length > 0) {
var highlightOverlay = map.getLayersByName(“HighlightOverlay”)[0];
if (highlightOverlay != null) {
highlightOverlay.redraw(true);
}

So Please suggest me some ways to re-draw HighlightOverlay in client side.

Thanks,
Riyaz

Hi Riyaz,

The sample should works for you.

9091.zip (174.1 KB)

Regards,

Ethan

Hi Ethan,
Thanks, it’s work out.

Thanks,
Riyaz

Hi Riyaz,

I am glad to hear that works.

Regards,

Ethan