-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
map.addLayer() of layer having "ref" property throw a TypeError of <whatever_paint_property> undefined #3674
Comments
Apologies about this error @ggho. This should have been listed as a breaking change in our release notes. I will update those now. User-specified refs are no longer supported. If you include all the metadata and layout properties on both layers, the ref will be applied internally. |
See #3486 |
@lucaswoj Thanks for the prompt reply! It explains a lot. On the other hand, I also realised the "interactive" property is removed without being mentioned in the release note? That one is obvious to notice as error warnings popped out when I used it, the same error message did not happen for "ref" though. |
@lucaswoj Now I know thanks! I just couldn't find it in the release notes, just wonder if you would add it so others would know easier. |
This issue has helped me understand why I couldn't get the rich version 9 map to load by means of Are there any future plans to reincorporate this in future versions? We'd like to be able to add streets-v9 without having to put it in the root style and instead add the source after the map initializes. |
mapbox-gl-js version: 0.28.0
Steps to Trigger Behavior
Codes snippet
Expected Behavior
No errors thrown.
Actual Behavior
The text was updated successfully, but these errors were encountered: