Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missed Lefalet TileLayer option 'pane' #16

Open
netstuff opened this issue Oct 31, 2017 · 1 comment
Open

Missed Lefalet TileLayer option 'pane' #16

netstuff opened this issue Oct 31, 2017 · 1 comment

Comments

@netstuff
Copy link

netstuff commented Oct 31, 2017

When I pass option objects with 'pane' attribute to TileJSON.createTileLayer, it missing at new tile layer creation. And I can't control it by pane :(

Short example

options.pane = this.map.getPane(options.pane) || this.map.createPane(options.pane, this.map.getPane('tilePane'));
options.bounds = options.bounds || urlData.bounds;
layer = this.L.TileJSON.createTileLayer(urlData, options);

In this case I want create every TileLayer in separate pane (named by unique identifier) and remove it by user action using a same identitfier.

@pthorin
Copy link
Contributor

pthorin commented Jan 31, 2018

You are welcome to submit a pull request. As far as I can remember, this library was created before the introduction of panes, so that's probably why it doesn't work as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants