set both the comment layer index and the wms layer index.