Hooray wrote in Wed Oct 05, 2016 8:09 pm:I would compare the lcontroller files between those not working correctly (APT?) and those working correctly
Hooray wrote in Wed Oct 05, 2016 8:09 pm:If it's a problem with the whole "layer" (what MapStructure refers to as the "layer-controller", or lcontroller file), the same problem should show up when using the corresponding layer elsewhere - e.g. the map-canvas.xml dialog, does it ?
options: {
range_dependant: 1
},
Gijs said :
options: {
range_dependant: 1
},
var new = func(layer) {
var m = {
parents: [__self__],
options: {range_dependant:1},
layer: layer,
map: layer.map,
listeners: [],
};
m.addVisibilityListener();
return m;
};
{
name:'APT',
isMapStructure:1,
update_on:['toggle_airports',
'toggle_display_mode'],
predicate: func(nd, layer) {
var visible = nd.get_switch('toggle_airports') and
nd.in_mode('toggle_display_mode', ['MAP']);
layer.group.setVisible( visible );
if (visible) {
layer.update();
}
}, # end of layer update predicate
style: {
svg_path: 'Nasal/canvas/map/Airbus/Images/airbus_airport.svg',
text_offset: [45, 35],
label_font_color: [1,1,1],
label_font_size: 28
}
}, # end of APT layer
Users browsing this forum: No registered users and 7 guests