Solving cross platform issue for googlemap