mapbox / mapbox-gl-native

Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL
https://mapbox.com/mobile
Other
4.36k stars 1.33k forks source link

Add name "custom" to Custom Layer's typeInfoCustom #16407

Closed galinelle closed 4 years ago

galinelle commented 4 years ago

This will make the case of an empty name in the LayerTypeInfo effectively an error, that can be logged.

galinelle commented 4 years ago

imo CustomLayer should have a name. adding it to the map could be skipped by other means or simply ignored (it's not part of the specs so it would make an invalid style anyway).