<?php
$json = json_decode('{"polygons":[{"coords":[[[51.66524722349841,39.261860555541965],[51.663886141991874,39.2623540820007],[51.66519384852736,39.2639204920654],[51.66524722349841,39.261860555541965]]],"params":{"strokeWidth":"3","strokeColor":"blue","balloonContent":"dsf","opacity":"0.6","fillColor":"lightblue"}}],"lines":[],"routes":[]}');
var_dump($json->polygons);
?>
- Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- array(1) {
[0]=>
object(stdClass)#1 (2) {
["coords"]=>
array(1) {
[0]=>
array(4) {
[0]=>
array(2) {
[0]=>
float(51.66524722349841)
[1]=>
float(39.261860555541965)
}
[1]=>
array(2) {
[0]=>
float(51.663886141991874)
[1]=>
float(39.2623540820007)
}
[2]=>
array(2) {
[0]=>
float(51.66519384852736)
[1]=>
float(39.2639204920654)
}
[3]=>
array(2) {
[0]=>
float(51.66524722349841)
[1]=>
float(39.261860555541965)
}
}
}
["params"]=>
object(stdClass)#2 (5) {
["strokeWidth"]=>
string(1) "3"
["strokeColor"]=>
string(4) "blue"
["balloonContent"]=>
string(3) "dsf"
["opacity"]=>
string(3) "0.6"
["fillColor"]=>
string(9) "lightblue"
}
}
}
- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33
- array(1) {
[0]=>
object(stdClass)#1 (2) {
["coords"]=>
array(1) {
[0]=>
array(4) {
[0]=>
array(2) {
[0]=>
float(51.665247223498)
[1]=>
float(39.261860555542)
}
[1]=>
array(2) {
[0]=>
float(51.663886141992)
[1]=>
float(39.262354082001)
}
[2]=>
array(2) {
[0]=>
float(51.665193848527)
[1]=>
float(39.263920492065)
}
[3]=>
array(2) {
[0]=>
float(51.665247223498)
[1]=>
float(39.261860555542)
}
}
}
["params"]=>
object(stdClass)#2 (5) {
["strokeWidth"]=>
string(1) "3"
["strokeColor"]=>
string(4) "blue"
["balloonContent"]=>
string(3) "dsf"
["opacity"]=>
string(3) "0.6"
["fillColor"]=>
string(9) "lightblue"
}
}
}
- Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
- array(1) {
[0]=>
object(stdClass)#2 (2) {
["coords"]=>
array(1) {
[0]=>
array(4) {
[0]=>
array(2) {
[0]=>
float(51.665247223498)
[1]=>
float(39.261860555542)
}
[1]=>
array(2) {
[0]=>
float(51.663886141992)
[1]=>
float(39.262354082001)
}
[2]=>
array(2) {
[0]=>
float(51.665193848527)
[1]=>
float(39.263920492065)
}
[3]=>
array(2) {
[0]=>
float(51.665247223498)
[1]=>
float(39.261860555542)
}
}
}
["params"]=>
object(stdClass)#3 (5) {
["strokeWidth"]=>
string(1) "3"
["strokeColor"]=>
string(4) "blue"
["balloonContent"]=>
string(3) "dsf"
["opacity"]=>
string(3) "0.6"
["fillColor"]=>
string(9) "lightblue"
}
}
}
preferences:
172.38 ms | 404 KiB | 183 Q