2
次のコードはBing Maps V8 interactive SDKからコピーされています。唯一のzIndex
が追加されます。Bing Maps v8でタイルレイヤーのzIndexを指定して町の名前を上書きする方法は?
var map = new Microsoft.Maps.Map(document.getElementById('myMap'), {
credentials: 'Your Bing Maps Key',
center: new Microsoft.Maps.Location(40.750220, -99.476964),
zoom: 4
});
// weather radar tiles from Iowa Environmental Mesonet of Iowa State University
var weatherTileSource = new Microsoft.Maps.TileSource({
uriConstructor: 'http://mesonet.agron.iastate.edu/cache/tile.py/1.0.0/nexrad-n0q-900913/{zoom}/{x}/{y}.png'
});
var weatherTileLayer = new Microsoft.Maps.TileLayer({
mercator: weatherTileSource,
zIndex: 10001
});
map.layers.insert(weatherTileLayer);
それは天候タイル層は、町と状態名を示し層の上にあるような方法でzIndex
を調整することは可能ですか?