mapbox / mapbox-gl-style-spec

76 stars 38 forks source link

Eliminate the syntactic distinction between "paint" and "layout" properties #635

Closed lucaswoj closed 7 years ago

lucaswoj commented 7 years ago

The differences between "paint", "layout", and "top-level" properties are becoming increasingly nuanced. Without a firm knowledge of our implementation, it can be hard to reason about the behaviour of paint properties vs layout properties, especially in the context of data-driven styling. It is worth considering eliminating the syntactic distinction between "paint" and "layout" properties (as Studio does), instead providing documentation about the behaviour of each property.

nickidlugash commented 7 years ago

This sounds good generally, but just want to flag that it may make the definition of a ref sound more convoluted.

lucaswoj commented 7 years ago

@nickidlugash We're getting rid of refs too 😄 As of now, ref is a no-op in GL JS.

lucaswoj commented 7 years ago

This issue was moved to mapbox/mapbox-gl-js#4160