Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fbef26e

Browse files
committed
Another instance of legacy support
Signed-off-by: Madhura Jayaratne <[email protected]>
1 parent b6c1e4a commit fbef26e

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

gis_data_editor.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,15 @@ function escape($variable)
8080
$wkt_with_zero = $gis_obj->generateWkt($gis_data, 0, '0');
8181
$result = "'" . $wkt . "'," . $srid;
8282

83-
// Generate PNG or SVG based visualization
84-
$format = (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER <= 8)
85-
? 'png' : 'svg';
83+
// Generate SVG based visualization
8684
$visualizationSettings = array(
8785
'width' => 450,
8886
'height' => 300,
8987
'spatialColumn' => 'wkt'
9088
);
9189
$data = array(array('wkt' => $wkt_with_zero, 'srid' => $srid));
9290
$visualization = GISVisualization::getByData($data, $visualizationSettings)
93-
->toImage($format);
91+
->toImage('svg');
9492

9593
$open_layers = GISVisualization::getByData($data, $visualizationSettings)
9694
->asOl();

0 commit comments

Comments
 (0)