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

This commit is contained in:
Mike Primm 2011-11-21 11:36:44 -06:00
parent 4db2d81fc1
commit 7f7b8c7fcb
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;