updated bug in base.py
added more support for publishing a webmap