for search,details in format=HTML return geometry in geojson, not wkt. No longer need leaflet-omnivore plugin

This commit is contained in:
Marc Tobias Metten
2017-03-19 17:31:00 +01:00
parent 924d3a8d6e
commit 1e3bf9729e
7 changed files with 46 additions and 22 deletions

View File

@@ -30,8 +30,8 @@ $sOutputFormat = $oParams->getSet('format', array('html', 'xml', 'json', 'jsonv2
// Show / use polygons
if ($sOutputFormat == 'html') {
$oGeocode->setIncludePolygonAsText($oParams->getBool('polygon'));
$bAsText = false;
$oGeocode->setIncludePolygonAsGeoJSON($oParams->getBool('polygon_geojson'));
$bAsGeoJSON = false;
} else {
$bAsPoints = $oParams->getBool('polygon');
$bAsGeoJSON = $oParams->getBool('polygon_geojson');