make it work with wms as well as czml layers