Fixed issue #2 - Function getWepmap #2
Separated the login logic from the getWebMap