Prepares JavaScript related to a row in the GIS dataset
to visualize it with OpenLayers.
public prepareRowAsOl ( string $spatial, integer $srid, string $label, string $fill_color, array $scale_data ) : string | ||
$spatial | string | GIS POLYGON object |
$srid | integer | Spatial reference ID |
$label | string | Label for the GIS POLYGON object |
$fill_color | string | Color for the GIS POLYGON object |
$scale_data | array | Array containing data related to scaling |
Результат | string | JavaScript related to a row in the GIS dataset |
/** * test case for prepareRowAsOl() method * * @param string $spatial GIS POLYGON object * @param int $srid spatial reference ID * @param string $label label for the GIS POLYGON object * @param string $fill_color color for the GIS POLYGON object * @param array $scale_data array containing data related to scaling * @param string $output expected output * * @return void * @dataProvider providerForPrepareRowAsOl */ public function testPrepareRowAsOl( $spatial, $srid, $label, $fill_color, $scale_data, $output ) { $this->assertEquals( $output, $this->object->prepareRowAsOl( $spatial, $srid, $label, $fill_color, $scale_data ) ); }