MGLStyleLayerDrawingContext.direction is measured in degrees, just like MGLMapView.direction and MGLMapCamera.heading, but MGLStyleLayerDrawingContext.pitch is measured in radians, which is inconsistent with MGLMapCamera.pitch. MGLStyleLayerDrawingContext.pitch should be measured in degrees for consistency with the other properties. This is especially important because MGLStyleLayerDrawingContext is (intentionally) undocumented. If client code needs radians, for example to work with SceneKit transforms, then it’s easy enough to convert using MGLRadiansFromDegrees().
MGLStyleLayerDrawingContext.direction
is measured in degrees, just likeMGLMapView.direction
andMGLMapCamera.heading
, butMGLStyleLayerDrawingContext.pitch
is measured in radians, which is inconsistent withMGLMapCamera.pitch
.MGLStyleLayerDrawingContext.pitch
should be measured in degrees for consistency with the other properties. This is especially important becauseMGLStyleLayerDrawingContext
is (intentionally) undocumented. If client code needs radians, for example to work with SceneKit transforms, then it’s easy enough to convert usingMGLRadiansFromDegrees()
./cc @fabian-guerra @jmkiley