Add zoomOnLayer and zoomOnFeature to API.js