return capitalize(aPlace.type.replace(/_/g, ' '));
}
},
+ tooManyParentLinesWarning: function(aPlace) {
+ if (!aPlace.parentof_lines) return;
+
+ var c = 0;
+ for (var type in aPlace.parentof_lines) {
+ c = c + type.length+1;
+ }
+ if (c < 500) return;
+
+ return new Handlebars.SafeString(
+ '<p>There are more child objects which are not shown.</p>'
+ );
+ },
zoomLevels: function(iSelectedZoom) {
var aZoomLevels = [
/* 0 */ 'Continent / Sea',
var select = $('<select>');
var option = jQuery('<option>', { value: '', text: '--'});
+ if (typeof(iSelectedZoom) === 'undefined') option.attr('selected', 'selected');
option.appendTo(select);
+
jQuery.each(aZoomLevels, function(i, title) {
var option = jQuery('<option>', { value: i, text: i + ' ' + title });
if (i == iSelectedZoom) option.attr('selected', 'selected');