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']!='') : ?>
|
||||
"end" : "<?php echo $row['timeend']; ?>",
|
||||
<?php endif; ?>
|
||||
"polygon" : [
|
||||
"point" :
|
||||
{
|
||||
"lat" : <?php echo $row['south']; ?>,
|
||||
"lon" : <?php echo $row['west']; ?>
|
||||
},{
|
||||
"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']; ?>
|
||||
}
|
||||
],
|
||||
"lat" : <?php echo ($row['south']+$row['north'])/2; ?>,
|
||||
"lon" : <?php echo ($row['west']+$row['east'])/2; ?>
|
||||
},
|
||||
"title" : "<?php echo $row['title']; ?>",
|
||||
"options" : {
|
||||
// set the full HTML for the info window
|
||||
|
|
Loading…
Reference in New Issue