TGOS底圖圖磚

TGOS底圖圖磚

API提供台灣通用電子地圖、福衛二號衛星影像、福衛混和地圖、地形暈渲圖、地形暈渲混和地圖、統計區MAP等六種底圖,為提升運用效率,以圖磚形式提供。必須注意的是,並非所有縮放層級都可以顯示圖磚,且圖磚為網格影像格式,只有在可供顯示的縮放層級下,才會以正確解析度顯示圖磚資訊。

       var tg3dEarth;

       var MapOptions;

           function InitWnd() {

            var pBody = document.getElementById("TGMap");

            tg3dEarth = newTGOS.TEOnlineMap(pBody);

           }

          functionsetMapType(num) {

                   var mapName = "";

                   switch(num) {

                           case 0:

                                   mapName = TGOS.TEMapTypeId.TGOSMAP;

                                   break;

                           case 1:

                                   mapName = TGOS.TEMapTypeId.NLSCMAP;

                                   break;

                           case 2:

                                   mapName = TGOS.TEMapTypeId.MOTCMAP;

                                   break;

                           case 3:

                                   mapName = TGOS.TEMapTypeId.F2IMAGE;

                                   break;

                           case 4:

                                   mapName = TGOS.TEMapTypeId.ROADMAP;

                                   break;

                           case 5:

                                   mapName = TGOS.TEMapTypeId.HILLSHADE;

                                   break;

                           case 6:

                                   mapName = TGOS.TEMapTypeId.HILLSHADEMIX;

                                   break;

                             

                   }

            tg3dEarth.setMapTypeId(mapName);

        }

 

 

回到上方