mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
make number of polygon outputs allowed a constant
This commit is contained in:
@@ -33,6 +33,9 @@
|
|||||||
|
|
||||||
@define('CONST_Suggestions_Enabled', false);
|
@define('CONST_Suggestions_Enabled', false);
|
||||||
|
|
||||||
|
// Set to zero to disable polygon output
|
||||||
|
@define('CONST_PolygonOutput_MaximumTypes', 1);
|
||||||
|
|
||||||
// Log settings
|
// Log settings
|
||||||
@define('CONST_Log_DB', true);
|
@define('CONST_Log_DB', true);
|
||||||
@define('CONST_Log_File', false);
|
@define('CONST_Log_File', false);
|
||||||
|
|||||||
@@ -41,8 +41,12 @@
|
|||||||
+ ($bAsKML?1:0)
|
+ ($bAsKML?1:0)
|
||||||
+ ($bAsSVG?1:0)
|
+ ($bAsSVG?1:0)
|
||||||
+ ($bAsTEXT?1:0)
|
+ ($bAsTEXT?1:0)
|
||||||
) > 1) {
|
) > CONST_PolygonOutput_MaximumTypes) {
|
||||||
echo "Select only one polgyon output option";
|
if (CONST_PolygonOutput_MaximumTypes) {
|
||||||
|
echo "Select only ".CONST_PolygonOutput_MaximumTypes." polgyon output option";
|
||||||
|
} else {
|
||||||
|
echo "Polygon output is disabled";
|
||||||
|
}
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user