月度存档: 十月 2010

放出自己最土团购1.6中的tuan800API

没有加入经纬度<longitude> / <latitude> 不过最土1.6里面已经有了相应的字段, 好像是 lonlat之类的.

tuan800下载 下载后改下后缀名(txt – > php)就可以了, 太晚了 懒得去改wp的允许上传类型了.

Google Map API V3 加入可拖动的路径功能

到目前还没有在API文档中体现, 不过已经在官方实例中给DirectionsRendererOptions加入了draggable属性,例子如下:


var directionDisplay;

directionsDisplay = new google.maps.DirectionsRenderer({

draggable: true,

suppressPolylines:false,markerOptions:{visible : false}

});

如果要监听路径改变,可以监听DirectionsRenderer对象的directions_changed时间, 例子如下:

google.maps.event.addListener(directionsDisplay, 'directions_changed', function() {
     alert(directionsDisplay.getDirections());
});