I have this function below and would like to leave it generic, since the values of innermap
, -125,127
and 3
will vary.
Instead of creating multiple functions: centralizar()
; centralizar1()
; etc., I would like to leave only one function and only pass the parameters to the next functions where the values will be different.
How to do this?
function centralizar() {
innermap.flyTo([-125,127], 3);
}