state: search_params.get('state'),
country: search_params.get('country'),
postalcode: search_params.get('postalcode'),
- polygon_geojson: search_params.get('polygon_geojson') ? 1 : 0,
+ polygon_geojson: get_config_value('Search_AreaPolygons', false) ? 1 : 0,
viewbox: search_params.get('viewbox'),
exclude_place_ids: search_params.get('exclude_place_ids'),
format: 'jsonv2'
// Nominatim_Config['Images_Base_Url'] = '/mapicons/';
// If the API should return polygons to be displayed on the map
-// Nominatim_Config['Search_AreaPolygons'] = 1;
+// Nominatim_Config['Search_AreaPolygons'] = true;
// Nominatim_Config['Reverse_Default_Search_Zoom'] = 18;
// ---- MAP ----
</div>
<div class="form-group search-button-group">
<button type="submit" class="btn btn-primary btn-sm mx-1">Search</button>
- {{#if env.Search_AreaPolygons}}
- <input type="hidden" value="1" name="polygon_geojson" />
- {{/if}}
<input type="hidden" name="viewbox" value="{{sViewBox}}" />
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input"
</div>
<div class="form-group search-button-group">
<button type="submit" class="btn btn-primary btn-sm mx-1">Search</button>
- {{#if env.Search_AreaPolygons}}
- <input type="hidden" value="1" name="polygon_geojson" />
- {{/if}}
<input type="hidden" name="viewbox" value="{{sViewBox}}" />
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input"
state: search_params.get('state'),
country: search_params.get('country'),
postalcode: search_params.get('postalcode'),
- polygon_geojson: search_params.get('polygon_geojson') ? 1 : 0,
+ polygon_geojson: get_config_value('Search_AreaPolygons', false) ? 1 : 0,
viewbox: search_params.get('viewbox'),
exclude_place_ids: search_params.get('exclude_place_ids'),
format: 'jsonv2'
</div>
<div class="form-group search-button-group">
<button type="submit" class="btn btn-primary btn-sm mx-1">Search</button>
- {{#if env.Search_AreaPolygons}}
- <input type="hidden" value="1" name="polygon_geojson" />
- {{/if}}
<input type="hidden" name="viewbox" value="{{sViewBox}}" />
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input"