There're four 寄る as verbs in 岩波:
1) 因る(依る・拠る・由るetc), 2)寄る, 3)撚る・縒る , 4)選る,
1=cause, depend on, be based on, owe to, because of, by means of, by~...
2=come near, drop in, lean on, get together...
3= twist, twine,
4=choose, select
And ...によると and ...によって are (1).