`scale-to-map` only works with markers, and not with feature layers. Make this more generic (to work with lines, feature layers, etc.).