Google Map API
sada09
看帖回帖互相勉励,共同进步
展开
-
GMap2 与 google.maps.Map 的区别
http://hi.baidu.com/ylf575/blog/item/b014dd5406873655d009066a.html现在有很多地图JS 可以用,我以问答的形式来开始这篇文章要说的内容.最后以一个geoRSS+Google map api 来说V3的示例1.为什么地图API要选google?免费吧.这可能是很多用户的主要考虑.就中小企业来说是这样的.2转载 2012-09-21 14:55:32 · 2816 阅读 · 0 评论 -
Google Maps API V3 街景模式的控制
var pov = { heading : mHeading, pitch : mPitch, zoom : mZoom } var panorama = map.getStreetView(); if (panorama) { panorama.setPov(pov); }通常我们都是直接用浏览器的街景控制器来进行操作街景的,但有时原创 2012-10-11 12:46:07 · 1610 阅读 · 0 评论 -
Google Maps API V3 街景模式及判断是否存在
function initialize(lat, lng) { var fenway = new google.maps.LatLng(getCenterlat(), getCenterlng()); curlat = getCenterlat(); curlng = getCenterlng(); var panoramaOptions = { positio原创 2012-10-11 12:32:33 · 2702 阅读 · 2 评论 -
Google Maps Api V3 鼠标事件监听及实时显示当前的经纬度
// 鼠标事件监听器 google.maps.event.addListener(map, 'mousemove', function(event) { center = event.latLng; centerlat = center.lat(); centerlng = center.lng(); document.getElementById("mess原创 2012-10-11 11:50:52 · 4337 阅读 · 0 评论 -
Google Maps Api V3 地理位置搜索
var geocoder = new google.maps.Geocoder();var fenway = new google.maps.LatLng(37.4419, -122.1419);var mapOptions = { center : fenway, zoom : 14, mapTypeId : google.maps.MapTypeId.ROADMAP,原创 2012-10-11 11:44:45 · 1189 阅读 · 0 评论 -
Google Maps API——3.Move the map
1.方法(1)map.setCenter(center,zoom?,type?)该方法直接跳转到center为中心处先是地图,不会平滑地移动地图。并会触发moveend和dragged事件map.setCenter(new GLatLng(39.990168,116.295304),10); (2)map.panTo(center)此方法以平移动画形式将地图移动到指定的中心转载 2012-09-18 12:44:24 · 769 阅读 · 0 评论 -
google Map A自定义控件
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-c转载 2012-09-18 14:25:46 · 951 阅读 · 0 评论 -
添加google 地图搜索控件
@import url("http://www.google.com/uds/css/gsearch.css"); @import url("http://www.google.com/uds/solutions/localsearch/gmlocalsearch.css"); #mapDiv{ width转载 2012-09-18 14:17:33 · 945 阅读 · 0 评论 -
Google Map API 依据地名输出经纬度信息
<script src=" http://ditu.google.cn/maps?file=api&v=2.x&key=ABQIAAAAzr2EBOXUKnm_jVnk0OJI7xSosDVG8KKPE1-m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA&hl=zh-CN" type="text/javascript"> functio转载 2012-09-18 13:31:36 · 2135 阅读 · 0 评论 -
GPS定位实例使用------模拟器开发
GPS定位实例总结以下步骤:1 添加权限2 LocationManager 取得服务并监听。3 如何在模拟器实现地理位置信息的调试以及使用的API版本问题。本文通过Android开发一个实例的实现过程来说明使用GPS定位技术获取当前位置的信息。本实例代码保存在“光盘:\daima\12\”中,命名为CurrentLoc转载 2012-12-31 13:28:05 · 1137 阅读 · 1 评论