Blame | Last modification | View Log | RSS feed
<?php#指派命名空間namespace qbpwcf;#匯入外部套件include("../allInOne.php");#提示正在測試的項目echo "<hr>googleMap::staticMap - testCase 1<br>";/*#函數說明:#用 google map 的 api 1.0 版提供靜態的地圖.#回傳結果:#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.#$result["error"],錯誤訊息 .#$result["function"],當前執行的函數名稱.#$result["argu"],使用的參數.#$result["content"],語法.#必填參數:#無#可省略參數:#$conf["center"],字串陣列,地圖的中心位置,預設為array("City Hall","taipei","tw)",亦即"臺灣省(州)-臺北-市政府".#$conf["center"]=array();#$conf["zoom"],字串,地圖的縮放等級,預設為16,可用範圍為10~19.#$conf["zoom"]="";#$conf["size"],字串陣列,地圖的大小,預設為array("400","400"),亦即400x400.#$conf["size"]=array();#$conf["demo"],字串,是否為示範模式,"true"為是,"false"為不是,預設為"false",若為"true"則$conf["center"]參數無效.#$conf["demo"]="";$staticMap=googleMap::staticMap();unset($conf);if($staticMap["status"]==="false"){var_dump($staticMap);}#if endelse{echo $staticMap["content"];}#else end*/#提示正在測試的項目echo "<hr>googleMap::staticMap - testCase 2<br>";/*#函數說明:#用 google map 的 api 1.0 版提供靜態的地圖.#回傳結果:#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.#$result["error"],錯誤訊息 .#$result["function"],當前執行的函數名稱.#$result["argu"],使用的參數.#$result["content"],語法.#必填參數:#無#可省略參數:#$conf["center"],字串陣列,地圖的中心位置,預設為array("City Hall","taipei","tw)",亦即"臺灣省(州)-臺北-市政府".#$conf["center"]=array();#$conf["zoom"],字串,地圖的縮放等級,預設為16,可用範圍為10~19.#$conf["zoom"]="";#$conf["size"],字串陣列,地圖的大小,預設為array("400","400"),亦即400x400.#$conf["size"]=array();#$conf["demo"],字串,是否為示範模式,"true"為是,"false"為不是,預設為"false",若為"true"則$conf["center"]參數無效.$conf["demo"]="true";$staticMap=googleMap::staticMap($conf);unset($conf);if($staticMap["status"]==="false"){var_dump($staticMap);}#if endelse{echo $staticMap["content"];}#else end*/#提示正在測試的項目echo "<hr>googleMap::staticMap - testCase 3<br>";/*#函數說明:#用 google map 的 api 1.0 版提供靜態的地圖.#回傳結果:#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.#$result["error"],錯誤訊息 .#$result["function"],當前執行的函數名稱.#$result["argu"],使用的參數.#$result["content"],語法.#必填參數:#無#可省略參數:#$conf["center"],字串陣列,地圖的中心位置,預設為array("City Hall","taipei","tw)",亦即"臺灣省(州)-臺北-市政府".$conf["center"]=array("Seoul","Korea");#$conf["zoom"],字串,地圖的縮放等級,預設為16,可用範圍為10~19.#$conf["zoom"]="";#$conf["size"],字串陣列,地圖的大小,預設為array("400","400"),亦即400x400.#$conf["size"]=array();#$conf["demo"],字串,是否為示範模式,"true"為是,"false"為不是,預設為"false",若為"true"則$conf["center"]參數無效.#$conf["demo"]="true";$staticMap=googleMap::staticMap($conf);unset($conf);if($staticMap["status"]==="false"){var_dump($staticMap);}#if endelse{echo $staticMap["content"];}#else end*/#提示正在測試的項目echo "<hr>googleMap::staticMap - testCase 4<br>";/*#函數說明:#用 google map 的 api 1.0 版提供靜態的地圖.#回傳結果:#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.#$result["error"],錯誤訊息 .#$result["function"],當前執行的函數名稱.#$result["argu"],使用的參數.#$result["content"],語法.#必填參數:#無#可省略參數:#$conf["center"],字串陣列,地圖的中心位置,預設為array("City Hall","taipei","tw)",亦即"臺灣省(州)-臺北-市政府".$conf["center"]=array("Melbourne","Victoria","Australia");#$conf["zoom"],字串,地圖的縮放等級,預設為16,可用範圍為10~19.#$conf["zoom"]="";#$conf["size"],字串陣列,地圖的大小,預設為array("400","400"),亦即400x400.#$conf["size"]=array();#$conf["demo"],字串,是否為示範模式,"true"為是,"false"為不是,預設為"false",若為"true"則$conf["center"]參數無效.#$conf["demo"]="true";$staticMap=googleMap::staticMap($conf);unset($conf);if($staticMap["status"]==="false"){var_dump($staticMap);}#if endelse{echo $staticMap["content"];}#else end*/#提示正在測試的項目echo "<hr>googleMap::staticMap - testCase 5<br>";/*#函數說明:#用 google map 的 api 1.0 版提供靜態的地圖.#回傳結果:#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.#$result["error"],錯誤訊息 .#$result["function"],當前執行的函數名稱.#$result["argu"],使用的參數.#$result["content"],語法.#必填參數:#無#可省略參數:#$conf["center"],字串陣列,地圖的中心位置,預設為array("City Hall","taipei","tw)",亦即"臺灣省(州)-臺北-市政府".$conf["center"]=array("Melbourne","Victoria","Australia");#$conf["zoom"],字串,地圖的縮放等級,預設為16,可用範圍為10~19.#$conf["zoom"]="";#$conf["size"],字串陣列,地圖的大小,預設為array("400","400"),亦即400x400.#$conf["size"]=array();#$conf["scale"],字串,地圖是否要放大,"false"為否,"true"為要放大.$conf["scale"]="true";#$conf["demo"],字串,是否為示範模式,"true"為是,"false"為不是,預設為"false",若為"true"則$conf["center"]參數無效.#$conf["demo"]="true";$staticMap=googleMap::staticMap($conf);unset($conf);if($staticMap["status"]==="false"){var_dump($staticMap);}#if endelse{echo $staticMap["content"];}#else end*/#提示正在測試的項目echo "<hr>googleMap::staticMap - testCase 6<br>";/*#函數說明:#用 google map 的 api 1.0 版提供靜態的地圖.#回傳結果:#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.#$result["error"],錯誤訊息 .#$result["function"],當前執行的函數名稱.#$result["argu"],使用的參數.#$result["content"],語法.#必填參數:#無#可省略參數:#$conf["center"],字串陣列,地圖的中心位置,預設為array("City Hall","taipei","tw)",亦即"臺灣省(州)-臺北-市政府",也可以用緯經度array(40.714728,-73.998672).$conf["center"]=array("23.973875,120.982024");#$conf["zoom"],字串,地圖的縮放等級,預設為16,可用範圍為10~19.#$conf["zoom"]="";#$conf["size"],字串陣列,地圖的大小,預設為array("400","400"),亦即400x400.#$conf["size"]=array();#$conf["scale"],字串,地圖是否要放大,"false"為否,"true"為要放大.#$conf["scale"]="true";#$conf["demo"],字串,是否為示範模式,"true"為是,"false"為不是,預設為"false",若為"true"則$conf["center"]參數無效.#$conf["demo"]="true";$staticMap=googleMap::staticMap($conf);unset($conf);if($staticMap["status"]==="false"){var_dump($staticMap);}#if endelse{echo $staticMap["content"];}#else end*/#提示正在測試的項目echo "<hr>googleMap::staticMap - testCase 7<br>";/*#函數說明:#用 google map 的 api 1.0 版提供靜態的地圖.#回傳結果:#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.#$result["error"],錯誤訊息 .#$result["function"],當前執行的函數名稱.#$result["argu"],使用的參數.#$result["content"],語法.#必填參數:#無#可省略參數:#$conf["center"],字串陣列,地圖的中心位置,預設為array("City Hall","taipei","tw)",亦即"臺灣省(州)-臺北-市政府",也可以用緯經度array("40.714728,-73.998672").$conf["center"]=array("40.714728,-73.998672");#$conf["zoom"],字串,地圖的縮放等級,預設為16,可用範圍為10~19.#$conf["zoom"]="";#$conf["size"],字串陣列,地圖的大小,預設為array("400","400"),亦即400x400.$conf["size"]=array("600","600");#$conf["scale"],字串,地圖是否要放大,"false"為否,"true"為要放大.$conf["scale"]="true";#$conf["lang"],字串,要使用的輔助語言,預設為"en_US"為美語."zh_TW"為中文,$conf["lang"]="zh_TW";#$conf["demo"],字串,是否為示範模式,"true"為是,"false"為不是,預設為"false",若為"true"則$conf["center"]參數無效.#$conf["demo"]="true";$staticMap=googleMap::staticMap($conf);unset($conf);if($staticMap["status"]==="false"){var_dump($staticMap);}#if endelse{echo $staticMap["content"];}#else end*/#提示正在測試的項目echo "<hr>googleMap::staticMap - testCase 8<br>";/*#函數說明:#用 google map 的 api 1.0 版提供靜態的地圖.#回傳結果:#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.#$result["error"],錯誤訊息 .#$result["function"],當前執行的函數名稱.#$result["argu"],使用的參數.#$result["content"],語法.#必填參數:#無#可省略參數:#$conf["center"],字串陣列,地圖的中心位置,預設為array("City Hall","taipei","tw)",亦即"臺灣省(州)-臺北-市政府",也可以用緯經度array("40.714728,-73.998672").$conf["center"]=array("40.714728,-73.998672");#$conf["zoom"],字串,地圖的縮放等級,預設為16,可用範圍為10~19.#$conf["zoom"]="";#$conf["size"],字串陣列,地圖的大小,預設為array("400","400"),亦即400x400.$conf["size"]=array("600","600");#$conf["scale"],字串,地圖是否要放大,"false"為否,"true"為要放大.$conf["scale"]="true";#$conf["lang"],字串,要使用的輔助語言,預設為"en_US"為美語."zh_TW"為中文,$conf["lang"]="zh_TW";#$conf["format"],字串,地圖圖片的檔案類型,預設為"png",$conf["format"]="jpg";#$conf["demo"],字串,是否為示範模式,"true"為是,"false"為不是,預設為"false",若為"true"則$conf["center"]參數無效.#$conf["demo"]="true";$staticMap=googleMap::staticMap($conf);unset($conf);if($staticMap["status"]==="false"){var_dump($staticMap);}#if endelse{echo $staticMap["content"];}#else end*/?>