Browse Source

瓦片盖在文字上

master
jiazhipeng 1 year ago
parent
commit
b21e74b324
  1. 9
      src/views/Index.vue

9
src/views/Index.vue

@ -246,7 +246,7 @@
// //
// //
// x,y,z // x,y,z
new TMap.ImageTileLayer({ let imageTile = new TMap.ImageTileLayer({
getTileUrl: function(x, y, z) { getTileUrl: function(x, y, z) {
console.log(x, y, z) console.log(x, y, z)
//URL //URL
@ -269,6 +269,13 @@
map: this.mapObj, // map: this.mapObj, //
}); });
this.$nextTick(()=>{
var layerId = imageTile.getId() // ID
// LAYER_LEVEL layerId layerIdgetId
// TMap.constants.LAYER_LEVEL https://lbs.qq.com/webApi/javascriptGL/glDoc/docIndexMap
this.mapObj.moveLayer(layerId, TMap.constants.LAYER_LEVEL.TEXT)
})
// //
// this.markerCluster = new TMap.MarkerCluster({ // this.markerCluster = new TMap.MarkerCluster({
// id: "cluster", // id: "cluster",

Loading…
Cancel
Save