Nasrul Hazim Bin Mohamad

OpenLayers – Capture Layer Visibility Changes

Jan
15

Solution: Use `changelayer` event to capture layer visibility changes.

map.events.register('changelayer', null, function (e)
{
	if (e.property === 'visibility')
	{
		// do something
	}
}
);

Leave a Reply

Your email address will not be published. Required fields are marked *

one × 4 =