当然除了bing地图,google地图、leaflet等也都能用 | besides bing map, tiles can also be used in google map, leaflet etc.
http://desktop.arcgis.com/zh-cn/arcmap/10.3/map/working-with-arcmap/how-to-create-a-tile-package.htm
http://desktop.arcgis.com/zh-cn/arcmap/10.3/tools/data-management-toolbox/export-tile-cache.htm
https://github.com/consbio/tpkutils
- install python
- install pip
- install tpkutils
- tpk export disk test.tpk ./tiles
添加一个TileLayer应用之前生成的图片 | insert a TileLayer using images generated from tpk
var tpkTileLayer = new Microsoft.Maps.TileLayer({
mercator: new Microsoft.Maps.TileSource({
uriConstructor: '/tiles/{zoom}/{x}/{y}.png'
})
});
map.layers.insert(tpkTileLayer);
npm install
npm run start # simply http-server