您的位置:首页 > 其它

百度地图:用于打印的地图展示

2015-04-30 15:15 204 查看
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<?php
$move_left=isset($_GET["move_left"])?$_GET["move_left"]:0;
$move_up=isset($_GET["move_up"])?$_GET["move_up"]:0;
?>
<form action="http://www.cnhqd.cn/baiduapi/t.php">
向左<input type="text" name="move_left" value="<?php echo $move_left;?>">
向上<input type="text" name="move_up" value="<?php echo $move_up;?>">
<input type=submit>
</form>

<!--<table style="border:0px solid #000000;border-spacing:0">-->
<?php
$width=5;
$height=2;
//$url="http://online1.map.bdimg.com/tile/?qt=tile&x=109023&y=42348&z=19&styles=pl&scaler=1&udt=20141103";
$x=109023;
$y=42348;

for($j=0;$j<$height;$j++){
$ty=$y-$j+$height*$move_up;
//echo "<tr style='border-style: none;border-spacing:0'>";
for($i=0;$i<$width;$i++){
$tx=$x+$i-$width*$move_left;
$url="http://online1.map.bdimg.com/tile/?qt=tile&x=$tx&y=$ty&z=19&styles=pl&scaler=1&udt=20141103";
//echo "<td style='magin:0;border-spacing:0'><img sytle='border:none;border-spacing:0' src='$url'></td>";
echo "<div style='float:left'><img src='$url'></div>";
}
echo "<div style='clear:both'></div>";
}
?>
<!--</table>-->
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: