Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

Talk:MapStructure Optimizations

From FlightGear wiki
Jump to: navigation, search

selectable Ranges API

var  setSelectableMapRangesNm = func (range_vector, unit='nm') {
foreach(var range; range_vector) {
 var groupName = sprintf("visibility-range-%d-%s",range, unit);
 map.createChild("group", groupName);
 }# foreach range
};

# range based allocation of layers/groups
setSelectableMapRangesNm( [5,10, 20, 40, 80, 160, 320, 640] );

test

{{#vardefine:variablename|specifiedvalue}}