<html xmlns="http://www.w3.org/1999/xhtml"> <head> <script src="http://maps.google.com/maps?file=api&v=2&key=<?php echo $regis_gm;?>" type="text/javascript"></script> <script src="js/gmaps.CircleOverlay.js" type="text/javascript"></script> <script type="text/javascript"> //<![CDATA[ var map; var geocoder; function load() { if (GBrowserIsCompatible()) { map = new GMap2(document.getElementById("map_canvas")); geocoder = new GClientGeocoder(); map.addMapType(G_PHYSICAL_MAP); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl()); map.setCenter(new GLatLng(13.496473,101.711426), 6); } } function initialize() { GEvent.addListener(map,"click", function(overlay,latlng) { if (latlng) { var matchll = /\(([-.\d]*), ([-.\d]*)/.exec( latlng ); if ( matchll ) { var lat = parseFloat( matchll[1] ); var lng = parseFloat( matchll[2] ); lat = lat.toFixed(6); lng = lng.toFixed(6); } var myHtml = " <font color=red><b>จุดศูนย์กลางของ google map ของท่าน<BR> เอาตัวเลขนี้ไปกรอก แบบฟอร์มข้างบน นะครับ :<br>ละติจูด "+lat+" <br> ลองติจูด "+lng+" <input type='button' onClick='javascript:Addpoint("+lat+","+lng+");>"; map.openInfoWindow(latlng, myHtml); } }); } //]]> </script> <style type="text/css"> </style></head> <body onload="load(),initialize()" onunload="GUnload()"> <div id="map_canvas" style="width: 600px; height: 750px"></div> </body> </html> </td> </tr> </table> </form> <?php }
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง