摘要:接下来讲一下关于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:一些
阅读全文
随笔分类 - HTML5+CSS3+JAVASCRIPT
摘要:首先要了解地理位置(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+
阅读全文

浙公网安备 33010602011771号