manubb / Leaflet.PixiOverlay

Bring Pixi.js power to Leaflet maps
MIT License
463 stars 85 forks source link

Pixiv 5 is not supported? #45

Closed CraxGrix closed 4 years ago

CraxGrix commented 4 years ago
  const pixiContainer = new PIXI.Container();
  pixiContainer.addChild(new PIXI.Text('test'))

  var pixiOverlay = L.pixiOverlay(function(utils) {
    var container = utils.getContainer()
    var renderer = utils.getRenderer()
    renderer.render(container)
  }, pixiContainer)

 Vue.mymap.addLayer(pixiOverlay)  

This is my code, and it does not display as expected on the screen. But the console shows that it has been loaded successfully

conosle

    PixiJS 5.2.4 - ✰ WebGL 2 ✰      http://www.pixijs.com/    ♥♥♥ 

企业微信20200523032640