1
0
Fork 0
This commit is contained in:
artix 2015-05-31 08:52:36 +02:00
parent a6fe054946
commit b028a8ea13

View file

@ -255,6 +255,7 @@ var NavDisplay = {
nd_options = default_hash(nd_options, me.df_options); nd_options = default_hash(nd_options, me.df_options);
me.options = nd_options; me.options = nd_options;
me.route_driver = nil; me.route_driver = nil;
if (me.options == nil) me.options = {};
if (contains(me.options, 'route_driver')) { if (contains(me.options, 'route_driver')) {
me.route_driver = me.options.route_driver; me.route_driver = me.options.route_driver;
} }
@ -290,11 +291,11 @@ var NavDisplay = {
me.symbols[element] = me.nd.getElementById(element).updateCenter(); me.symbols[element] = me.nd.getElementById(element).updateCenter();
var map_rect = [124, 1024, 1024, 0]; var map_rect = [124, 1024, 1024, 0];
var map_opts = me.options.map; var map_opts = me.options['map'];
if (map_opts == nil) map_opts = {}; if (map_opts == nil) map_opts = {};
if (typeof(map_opts.rect) == 'vector') if (typeof(map_opts['rect']) == 'vector')
map_rect = map_opts.rect; map_rect = map_opts.rect;
map_rect = join(', ', map_rect); map_rect = string.join(', ', map_rect);
me.map = me.nd.createChild("map","map") me.map = me.nd.createChild("map","map")
.set("clip", map_rect) .set("clip", map_rect)