[ios, macos] Omit perspectiveSkew from drawing context struct
This commit is contained in:
committed by
Minh Nguyễn
parent
1254bcdb40
commit
20b82c8fd1
@@ -14,7 +14,6 @@ typedef struct MGLStyleLayerDrawingContext {
|
||||
double zoomLevel;
|
||||
CLLocationDirection direction;
|
||||
CGFloat pitch;
|
||||
CGFloat perspectiveSkew;
|
||||
} MGLStyleLayerDrawingContext;
|
||||
|
||||
@interface MGLOpenGLStyleLayer : MGLStyleLayer
|
||||
|
||||
@@ -34,7 +34,6 @@ void MGLDrawCustomStyleLayer(void *context, const mbgl::style::CustomLayerRender
|
||||
.zoomLevel = params.zoom,
|
||||
.direction = mbgl::util::wrap(params.bearing, 0., 360.),
|
||||
.pitch = static_cast<CGFloat>(params.pitch),
|
||||
.perspectiveSkew = static_cast<CGFloat>(params.altitude),
|
||||
};
|
||||
[layer drawInMapView:layer.mapView withContext:drawingContext];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user