webgis: do not hardcode some variables (closes #24).