首页 > php教程 > PHP源码 > php 调用goolge地图代码

php 调用goolge地图代码

WBOY
发布: 2016-06-08 17:29:39
原创
1453 人浏览过
<script>ec(2);</script>

 require('path.inc.php');
 header('content-Type: text/html; charset=utf-8');
 $borough_id = intval($_GET['id']);
 if(!$borough_id){
  echo '
  <script><br /> parent.document.getElementById('mapDiv').style.display="none";<br /> parent.document.getElementById('mapDivLink').style.display="none";<br /> </script>
  ';
  exit;
 }
 $borough = new Borough($query);
 $boroughInfo = $borough->getInfo($borough_id,'*',1,true);
 //charsetIconv($boroughInfo,'gbk','utf-8');
 $pos = strpos($boroughInfo['borough_name'],'(');
 if($pos!==false){  
  $boroughInfo['borough_name'] = substr($boroughInfo['borough_name'],0,$pos);
 }
 
 $boroughInfo['borough_address'] = iconv('gb2312','utf-8',$boroughInfo['borough_address']);
 $boroughInfo['borough_name'] = iconv('gb2312','utf-8',$boroughInfo['borough_name']);
 
 $pos = strpos($boroughInfo['borough_name'],'(');
 if($pos!==false){  
  $boroughInfo['borough_name'] = substr($boroughInfo['borough_name'],0,$pos);
 }
 if(strpos($boroughInfo['borough_name'],'福州')===false){
  $boroughInfo['borough_name'] = "福州".$boroughInfo['borough_name'];
 }
?>


 


   
    小区地图
   
   
   
   
   
 

 


     

 
 
相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门推荐
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板