Google Map API (4) 自己的地圖 - GTileLayer
Posted In:
Google Map
.
By 卡西卡
GTileLayer:自己提供地圖圖檔在GMap上呈現。
重點在覆寫getTileUrl提供圖檔url。 b_tileLayers[0].getTileUrl = function(tile, zoom) {
return "http://140.109.174.55/googlemap/stereo/"+zoom+
'/'+tile.x+'/IMG_'+tile.x + '_' + tile.y + '_'+zoom+".jpg";
}
實例: