@hayatIf location detect cannot work properly, it will not be shown to avoid errors.
@hayatIt is using function.There is condition, if error is thrown by function (means that currently it is not possible detect user position), whole block will be hidden.
@SchurliIt is script, but will be shown only in case it has detected your position successfuly.If position has not been detected, block is hidden.