change polygon to point in timemap
This commit is contained in:
parent
7b1d80e5d8
commit
d22d41a71f
|
@ -39,24 +39,11 @@ window.onload=function() {
|
||||||
<?php if ($row['timeend']!='') : ?>
|
<?php if ($row['timeend']!='') : ?>
|
||||||
"end" : "<?php echo $row['timeend']; ?>",
|
"end" : "<?php echo $row['timeend']; ?>",
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
"polygon" : [
|
"point" :
|
||||||
{
|
{
|
||||||
"lat" : <?php echo $row['south']; ?>,
|
"lat" : <?php echo ($row['south']+$row['north'])/2; ?>,
|
||||||
"lon" : <?php echo $row['west']; ?>
|
"lon" : <?php echo ($row['west']+$row['east'])/2; ?>
|
||||||
},{
|
},
|
||||||
"lat" : <?php echo $row['north']; ?>,
|
|
||||||
"lon" : <?php echo $row['west']; ?>
|
|
||||||
},{
|
|
||||||
"lat" : <?php echo $row['north']; ?>,
|
|
||||||
"lon" : <?php echo $row['east']; ?>
|
|
||||||
},{
|
|
||||||
"lat" : <?php echo $row['south']; ?>,
|
|
||||||
"lon" : <?php echo $row['east']; ?>
|
|
||||||
},{
|
|
||||||
"lat" : <?php echo $row['south']; ?>,
|
|
||||||
"lon" : <?php echo $row['west']; ?>
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"title" : "<?php echo $row['title']; ?>",
|
"title" : "<?php echo $row['title']; ?>",
|
||||||
"options" : {
|
"options" : {
|
||||||
// set the full HTML for the info window
|
// set the full HTML for the info window
|
||||||
|
|
Loading…
Reference in New Issue