3
I have this function below and I would like to leave it generic, because 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 go passing only the parameters to the next functions where the values will be different.
How to do this?
function centralizar() {
innermap.flyTo([-125,127], 3);
}
Hello Isa! The answer below solved your problem? Give feedback to us. Thank you!
– Sam
@Is the answer solved your problem? You need something improved?
– Jéf Bueno