change polygon to point in timemap

This commit is contained in:
wlx 2010-06-29 05:13:40 +00:00
parent 7b1d80e5d8
commit d22d41a71f
1 changed files with 4 additions and 17 deletions

View File

@ -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