X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/753d2ac79fab5dab71ab4890fe16916d33decb5c..9d8ee885918f41557094413bb7758e9adee2aa6d:/website/search.php?ds=sidebyside diff --git a/website/search.php b/website/search.php index e2ef1d3c..69f6a666 100755 --- a/website/search.php +++ b/website/search.php @@ -36,6 +36,19 @@ $bAsKML = (boolean)isset($_GET['polygon_kml']) && $_GET['polygon_kml']; $bAsSVG = (boolean)isset($_GET['polygon_svg']) && $_GET['polygon_svg']; $bAsText = (boolean)isset($_GET['polygon_text']) && $_GET['polygon_text']; + if ((($bShowPolygons?1:0) + + ($bAsGeoJSON?1:0) + + ($bAsKML?1:0) + + ($bAsSVG?1:0) + + ($bAsTEXT?1:0) + ) > CONST_PolygonOutput_MaximumTypes) { + if (CONST_PolygonOutput_MaximumTypes) { + echo "Select only ".CONST_PolygonOutput_MaximumTypes." polgyon output option"; + } else { + echo "Polygon output is disabled"; + } + exit; + } // Show address breakdown $bShowAddressDetails = isset($_GET['addressdetails']) && $_GET['addressdetails'];