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

Exclude certain layers from style transforms #7

Open
lukasmartinelli opened this issue Jun 26, 2017 · 2 comments
Open

Exclude certain layers from style transforms #7

lukasmartinelli opened this issue Jun 26, 2017 · 2 comments

Comments

@lukasmartinelli
Copy link
Contributor

Just tested the plugin with North Star which uses mapbox as source but has no translations for name.
Would be good to provide list of layers to the plugin where language style transform should not be applied to.

@sjockers
Copy link

sjockers commented Aug 2, 2017

Any ideas on how to tackle that? I am using a layer based on North Star and I am having exactly that issue – port names are not showing once I apply the translation. I'd be happy to contribute to this if you had some pointers on where to begin.

@lukasmartinelli
Copy link
Contributor Author

Add another options here:

options = Object.assign({}, options);

Then find a way to pass that along to changeLayerTextProperty

if (layer.layout && layer.layout['text-field']) {

and check the layer.id against a list of excluded layer id's and not transform there.

k-nut pushed a commit to k-nut/mapbox-gl-language that referenced this issue Jan 17, 2018
lukasmartinelli pushed a commit that referenced this issue Jan 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants