diff options
author | Gali Nelle <galinelle.mapbox@gmail.com> | 2020-04-16 17:05:35 +0300 |
---|---|---|
committer | galinelle <paolo.angelelli@mapbox.com> | 2020-04-20 14:22:08 +0300 |
commit | ad543e43556dc350b7c30f510439f85a3be424a6 (patch) | |
tree | 5af7f3d15e2678a65a8c5d39e952b7243756b08a | |
parent | 9d23917de195dd8ec07b90497b7cec8ecb7db508 (diff) | |
download | qtlocation-mapboxgl-ad543e43556dc350b7c30f510439f85a3be424a6.tar.gz |
Add a name to CustomLayer LayerTypeInfo
This to prevent confusion and enable proper error logging when
registering layers with missing name in LayerTypeInfo where the
name should instead be present.
-rw-r--r-- | src/mbgl/gl/custom_layer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/gl/custom_layer.cpp b/src/mbgl/gl/custom_layer.cpp index bb87868d78..47d1e6ea87 100644 --- a/src/mbgl/gl/custom_layer.cpp +++ b/src/mbgl/gl/custom_layer.cpp @@ -7,7 +7,7 @@ namespace mbgl { namespace style { namespace { -const LayerTypeInfo typeInfoCustom{"", +const LayerTypeInfo typeInfoCustom{"custom", LayerTypeInfo::Source::NotRequired, LayerTypeInfo::Pass3D::NotRequired, LayerTypeInfo::Layout::NotRequired, |