1
0
Fork 0

Merge branch 'master' of gitorious.org:fg/fgdata

This commit is contained in:
Hal V. Engel 2014-03-24 02:34:11 +00:00
commit 3db52f4cbd
2 changed files with 15 additions and 0 deletions

View file

@ -45,6 +45,11 @@ gui.widgets.ScrollArea = {
{ {
# TODO only update on content resize # TODO only update on content resize
var bb = me.getContent().getTransformedBounds(); var bb = me.getContent().getTransformedBounds();
if( bb[2] < bb[0] or bb[3] < bb[1] )
# Do nothing with invalid bounding box (probably no content yet)
return me;
var w = bb[2] - bb[0]; var w = bb[2] - bb[0];
var h = bb[3] - bb[1]; var h = bb[3] - bb[1];

View file

@ -192,6 +192,16 @@ L.RotatedMarker = L.Marker.extend({
weight: 1, weight: 1,
}; };
} }
if( feature.properties.type == "airport" ) {
return {
color: 'black',
weight: 3,
fill: 'true',
fillColor: '#606060',
fillOpacity: 1.0,
lineJoin: 'bevel',
};
}
} }
}); });