Add support for 'webpage-title' setting, default title to server-name

This commit is contained in:
Mike Primm 2011-11-22 01:36:44 +08:00 committed by mikeprimm
parent ab521a6346
commit b1b8a60065
3 changed files with 10 additions and 0 deletions

View file

@ -101,6 +101,9 @@ DynMap.prototype = {
.addClass('map')
.appendTo(container);
if(me.options.title)
document.title = me.options.title;
var urlzoom = me.getIntParameterByName('zoom');
if(urlzoom != null)
me.options.defaultzoom = urlzoom;