YametehSama

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

2013年2月2日

摘要: 接下来讲一下关于GOOGLE MAPs的调用 在html加上the location of the Google Maps JavaScript API和存放map的<div> <script src="http://maps.google.com/maps/api/js?sensor=false"></script>……<div id="map"></div> google.maps.Map(mapDiv, mapOptions); mapDiv:存放map的标签; mapOpitons:一些 阅读全文
posted @ 2013-02-02 20:03 YametehSama 阅读(270) 评论(0) 推荐(0)

摘要: 首先要了解地理位置(Geolocation)的表示方法有两种:度数表示法(degrees/minutes/seconds)例如(47°38'34'',122°32'32'')小数(decimal value)表示法 例如(47.64,-122.54) 两种方法都是表示纬度(latitude)和经度(longitude)的,在Geolocation API中通常使用第二种方法,可以用一个函数进行转换。funtion degreesToDecimal(degree,minutes,seconds){ return degrees+ 阅读全文
posted @ 2013-02-02 17:23 YametehSama 阅读(3716) 评论(0) 推荐(0)

摘要: Just another beginning. 阅读全文
posted @ 2013-02-02 11:12 YametehSama 阅读(135) 评论(0) 推荐(0)