Closed icithis closed 6 years ago
Sorry but i do not understand what you are doing. What do you want to display on your map? Can you describe precisely your target?
Here is a fiddle of the pixi code. https://jsfiddle.net/FoomFries/bhmL2zrf/17/
I cannot get renderer.render(brush, renderTexture) to work with your leaflet container. I would like to display this fiddle on the map.
Edit: Here is a codepen of the issue. Moving the map causes the circle to move, which it shouldn't based on my understanding. https://codepen.io/foom/pen/XEVydE
I am trying to render a shape to a texture to generate multiple alpha levels on a display object. Using the pixijs.io sandbox as an example, I am able to execute this code.
However, when trying to accomplish this in Leaflet, the brush moves independently of the texture, and instead repositions itself based on the window position (move the map to the left and the circle appears and moves as well, with
setView([35.935, -84.271], 16)
for the map in Leaflet).