#TODO: use custom Model/DataProvider var ParkingLayer = {}; # make(Layer); ParkingLayer.new = func(group, name) { var m=Layer.new(group, name, AirportModel ); #FIXME: AirportModel can be shared by Taxiways, Runways etc!! m.setDraw( func draw_layer(layer: m, callback: draw_parking, lod:0 ) ); return m; } register_layer("parkings", ParkingLayer);