开发者

How to integrate jQuery Static Gmap Zoom with visitors location?

Can anyone point me in the direction of a tutorial or explain how to integrate the jQuery Static Gmap Zoom - http://www.phpgeek.dk/staticgmapzoom with Google Maps.

Specifically I'm trying to display a map of the location of a visitor to my website with Google Maps API v3 and jQuery S开发者_C百科tatic Gmap Zoom.

Thanks!

Jess


this is how to find location. Change ip to your client ip. the result is in xml form.

http://ipinfodb.com/ip_query.php?ip=127.0.0.1&timezone=false

Once u got lat & lng, this is javascript guide for pinpoint

var lat = 1.0001;
var lng = 0.1111;
var mapOptions = {
                center: new google.maps.LatLng(lat, lng);
                , scrollwheel: false
                , mapTypeId: google.maps.MapTypeId.ROADMAP
                , zoom: 14
};
var yourNode = ...;
var canvas = new google.maps.Map(yourNode, mapOptions);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜