var StoreURL='http://rent.ettoday.com/frame4/Store_searchresult.php3?no='; var RoomURL='http://rent.ettoday.com/frame4/searchresult.php3?jump=1&room_num='; var ParkURL='http://rent.ettoday.com/frame4/Park_searchresult.php3?no='; var LandURL='http://rent.ettoday.com/frame4/Land_searchresult.php3?no='; function RmiLatLng() { this.oLAT=this.latitude=24.17549890137; this.oLNG=this.longitude=120.642231702804; this.bLAT=0.0090285*2; this.bLNG=0.0098355*2; this.xIndex=this.yIndex=0; this.fromLatLng2=function(glatlng) { return this.fromLatLng(glatlng.lat(), glatlng.lng()); } this.fromLatLng=function(lat,lng) { this.latitude=lat; this.longitude=lng; this.xIndex=Math.floor((lat-this.oLAT)/this.bLAT); this.yIndex=Math.floor((lng-this.oLNG)/this.bLNG); return [Math.floor((lat-this.oLAT)/this.bLAT), Math.floor((lng-this.oLNG)/this.bLNG)] } this.fromIndex=function(x, y) { this.xIndex=x; this.yIndex=y; this.latitude=this.oLAT+x*this.bLAT; this.longitude=this.oLNG+y*this.bLNG; } this.toGLatLng=function() { return new GLatLng(this.latitude, this.longitude); } } function getObjDesc( obj ) { return jQuery.get("http://rent.ettoday.com/rentMap/rmiPicToHtml.php?id="+obj.oid+"&type="+obj.type); } function getObjDescById( id, ty ) { return jQuery.get("http://rent.ettoday.com/rentMap/rmiPicToHtml.php?id="+id+"&type="+ty); } function getObjDescOld( obj ) { var s,d,url; switch(obj.type) { case 1: case 2: case 3: case 4: url=RoomURL; break; case 5: url=ParkURL; break; case 6: url=LandURL; break; case 7: url=StoreURL; break; } url+=obj.oid; s='
| '; s+='地址:'+obj.addr; s+=" |
| ";
if(obj.pic>0)
s+=' |
| "; s+='觀看詳細資料'; s+=' |