Constants
The following constants are available globally.
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Use this hint to turn the zbuffer on or off. Pass in an NSNumber boolean. Takes effect on the next frame.
Declaration
Objective-C
extern NSString *const kMaplyRenderHintZBufferSwift
let kMaplyRenderHintZBuffer: String -
Use this hint to turn culling optimization on or off. Pass in an NSNumber boolean.
Declaration
Objective-C
extern NSString *const kMaplyRenderHintCullingSwift
let kMaplyRenderHintCulling: String -
These are options for lighting modes, basically different default shader programs. Only works with OpenGL ES 2.0 mode. Accepted values are: none,regular
Declaration
Objective-C
extern NSString *const kMaplyRendererLightingModeSwift
let kMaplyRendererLightingMode: String -
If the z buffer is on, this will let you resolve. Takes an NSNumber boolean
Declaration
Objective-C
extern NSString *const kMaplyDrawOffsetSwift
let kMaplyDrawOffset: String -
This helps decide what order things are drawn in. Useful when the z buffer is off or you’re using transparency. Takes an NSNumber int.
Declaration
Objective-C
extern NSString *const kMaplyDrawPrioritySwift
let kMaplyDrawPriority: String -
Minimum point at which a feature is visible. Takes an NSNumber float. The radius of the globe is 1.0
Declaration
Objective-C
extern NSString *const kMaplyMinVisSwift
let kMaplyMinVis: String -
Maximum point at which a feature is visible. Takes an NSNumber float. The radius of the globe is 1.0
Declaration
Objective-C
extern NSString *const kMaplyMaxVisSwift
let kMaplyMaxVis: String -
Minimum distance from the viewer at which to display geometry.
Declaration
Objective-C
extern NSString *const kMaplyViewerMinDistSwift
let kMaplyViewerMinDist: String -
Maximum distance from the viewer at which to display geometry.
Declaration
Objective-C
extern NSString *const kMaplyViewerMaxDistSwift
let kMaplyViewerMaxDist: String -
Center to use when evaluating distance to viewable geometry (X)
Declaration
Objective-C
extern NSString *const kMaplyViewableCenterXSwift
let kMaplyViewableCenterX: String -
Center to use when evaluating distance to viewable geometry (Y)
Declaration
Objective-C
extern NSString *const kMaplyViewableCenterYSwift
let kMaplyViewableCenterY: String -
Center to use when evaluating distance to viewable geometry (Z)
Declaration
Objective-C
extern NSString *const kMaplyViewableCenterZSwift
let kMaplyViewableCenterZ: String -
The amount of time for a feature to fade in or out. Takes an NSNumber float for seconds.
Declaration
Objective-C
extern NSString *const kMaplyFadeSwift
let kMaplyFade: String -
Fade the feature in over time.
Declaration
Objective-C
extern NSString *const kMaplyFadeInSwift
let kMaplyFadeIn: String -
Fade the feature out over time
Declaration
Objective-C
extern NSString *const kMaplyFadeOutSwift
let kMaplyFadeOut: String -
When to start fading out
Declaration
Objective-C
extern NSString *const kMaplyFadeOutTimeSwift
let kMaplyFadeOutTime: String -
Enable or disable an object. This can be used to create an object disabled.
Declaration
Objective-C
extern NSString *const kMaplyEnableSwift
let kMaplyEnable: String -
If set, we’ll enable the objects only between the start and end time
Declaration
Objective-C
extern NSString *const kMaplyEnableStartSwift
let kMaplyEnableStart: String -
If set, we’ll enable the objects only between the start and end time
Declaration
Objective-C
extern NSString *const kMaplyEnableEndSwift
let kMaplyEnableEnd: String -
Request a given object take the z buffer into account
Declaration
Objective-C
extern NSString *const kMaplyZBufferReadSwift
let kMaplyZBufferRead: String -
Have a given object write itself to the z buffer
Declaration
Objective-C
extern NSString *const kMaplyZBufferWriteSwift
let kMaplyZBufferWrite: String -
Assign a shader program to a particular feature. Use the shader program’s name
Declaration
Objective-C
extern NSString *const kMaplyShaderSwift
let kMaplyShader: String -
An NSDictionary containing uniforms to apply to a shader before drawing
Declaration
Objective-C
extern NSString *const kMaplyShaderUniformsSwift
let kMaplyShaderUniforms: String -
Stars, moon, stars, atmosphere
Declaration
Objective-C
extern const int kMaplyStarsDrawPriorityDefaultSwift
let kMaplyStarsDrawPriorityDefault: Int32 -
Undocumented
-
Undocumented
-
Undocumented
-
Where we start image layer draw priorities
Declaration
Objective-C
extern const int kMaplyImageLayerDrawPriorityDefaultSwift
let kMaplyImageLayerDrawPriorityDefault: Int32 -
We’ll start filling in features right around here
Declaration
Objective-C
extern const int kMaplyFeatureDrawPriorityBaseSwift
let kMaplyFeatureDrawPriorityBase: Int32 -
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Color of the text being rendered. Takes a UIColor.
Declaration
Objective-C
extern NSString *const kMaplyTextColorSwift
let kMaplyTextColor: String -
Background color for the text. Takes a UIColor.
Declaration
Objective-C
extern NSString *const kMaplyBackgroundColorSwift
let kMaplyBackgroundColor: String -
Font to use in rendering text. Takes a UIFont.
Declaration
Objective-C
extern NSString *const kMaplyFontSwift
let kMaplyFont: String -
Default height of the text. If for screen space, this in points. If for 3D, remember that
Declaration
Objective-C
extern NSString *const kMaplyLabelHeightSwift
let kMaplyLabelHeight: String -
Default width of the text. See height for more info and, in general, use height instead.
Declaration
Objective-C
extern NSString *const kMaplyLabelWidthSwift
let kMaplyLabelWidth: String -
Justification for label placement. This takes an NSString with one of: middle, left, right
Declaration
Objective-C
extern NSString *const kMaplyJustifySwift
let kMaplyJustify: String -
If set, we’ll draw a shadow behind each label with this as the stroke size
Declaration
Objective-C
extern NSString *const kMaplyShadowSizeSwift
let kMaplyShadowSize: String -
If shadow size is being used, we can control the shadow color like so
Declaration
Objective-C
extern NSString *const kMaplyShadowColorSwift
let kMaplyShadowColor: String -
If outline is being used, we can control the color
Declaration
Objective-C
extern NSString *const kMaplyTextOutlineSizeSwift
let kMaplyTextOutlineSize: String -
If outline is being used, we can control the stroke size
Declaration
Objective-C
extern NSString *const kMaplyTextOutlineColorSwift
let kMaplyTextOutlineColor: String -
When creating textures, we may pass in the size
Declaration
Objective-C
extern NSString *const kMaplyTexSizeXSwift
let kMaplyTexSizeX: String -
When creating textures, we may pass in the size
Declaration
Objective-C
extern NSString *const kMaplyTexSizeYSwift
let kMaplyTexSizeY: String -
How to justify multi-line text
Declaration
Objective-C
extern NSString *const kMaplyTextJustifySwift
let kMaplyTextJustify: String -
Justify text to the right
Declaration
Objective-C
extern NSString *const kMaplyTextJustifyRightSwift
let kMaplyTextJustifyRight: String -
Justify text to the left
Declaration
Objective-C
extern NSString *const kMaplyTextJustifyLeftSwift
let kMaplyTextJustifyLeft: String -
Justify text to the center
Declaration
Objective-C
extern NSString *const kMaplyTextJustifyCenterSwift
let kMaplyTextJustifyCenter: String -
These are used for screen and regular markers.
Declaration
Objective-C
extern NSString *const kMaplyClusterGroupSwift
let kMaplyClusterGroup: String -
Color is used for the polygon generated for a marker. It will combine with the image, if there is one or it will be visible if there is no texture. Takes a UIColor
Declaration
Objective-C
extern NSString *const kMaplyColorSwift
let kMaplyColor: String -
Width is used by the vector layer for line widths
Declaration
Objective-C
extern NSString *const kMaplyVecWidthSwift
let kMaplyVecWidth: String -
If filled is set, we draw the areals as filled polygons
Declaration
Objective-C
extern NSString *const kMaplyFilledSwift
let kMaplyFilled: String -
If set, the texture to apply to the feature
Declaration
Objective-C
extern NSString *const kMaplyVecTextureSwift
let kMaplyVecTexture: String -
X scale for textures applied to vectors
Declaration
Objective-C
extern NSString *const kMaplyVecTexScaleXSwift
let kMaplyVecTexScaleX: String -
Y scale for textures applied to vectors
Declaration
Objective-C
extern NSString *const kMaplyVecTexScaleYSwift
let kMaplyVecTexScaleY: String -
The projection to use when generating texture coordinates
Declaration
Objective-C
extern NSString *const kMaplyVecTextureProjectionSwift
let kMaplyVecTextureProjection: String -
Tangent plane projection for texture coordinates
Declaration
Objective-C
extern NSString *const kMaplyProjectionTangentPlaneSwift
let kMaplyProjectionTangentPlane: String -
Screen space
projection
for texture coordinatesDeclaration
Objective-C
extern NSString *const kMaplyProjectionScreenSwift
let kMaplyProjectionScreen: String -
If set to true we’ll centered any drawables we create for features This fixes the jittering problem when zoomed in close
Declaration
Objective-C
extern NSString *const kMaplyVecCenteredSwift
let kMaplyVecCentered: String -
Center of the feature, to use for texture calculations
Declaration
Objective-C
extern NSString *const kMaplyVecCenterXSwift
let kMaplyVecCenterX: String -
Undocumented
-
For wide vectors, we can widen them in screen space or display space
Declaration
Objective-C
extern NSString *const kMaplyWideVecCoordTypeSwift
let kMaplyWideVecCoordType: String -
Widened vectors are widened in real space. The width is in meters.
Declaration
Objective-C
extern NSString *const kMaplyWideVecCoordTypeRealSwift
let kMaplyWideVecCoordTypeReal: String -
Widened vectors are widened in screen space. The width is in pixels.
Declaration
Objective-C
extern NSString *const kMaplyWideVecCoordTypeScreenSwift
let kMaplyWideVecCoordTypeScreen: String -
For wide vectors we can control the line joins See: http://www.w3.org/TR/SVG/painting.html#StrokeLinejoinProperty
Declaration
Objective-C
extern NSString *const kMaplyWideVecJoinTypeSwift
let kMaplyWideVecJoinType: String -
Widened vectors are joined with miters
Declaration
Objective-C
extern NSString *const kMaplyWideVecMiterJoinSwift
let kMaplyWideVecMiterJoin: String -
Widened vectors are joined with a bevel
Declaration
Objective-C
extern NSString *const kMaplyWideVecBevelJoinSwift
let kMaplyWideVecBevelJoin: String -
Number of pixels to use in blending the edges of the wide vectors
Declaration
Objective-C
extern NSString *const kMaplyWideVecEdgeFalloffSwift
let kMaplyWideVecEdgeFalloff: String -
Miter joins will turn to bevel joins past this number of degrees
Declaration
Objective-C
extern NSString *const kMaplyWideVecMiterLimitSwift
let kMaplyWideVecMiterLimit: String -
This is the length you’d like the texture to start repeating after. It’s real world coordinates for kMaplyWideVecCoordTypeReal and pixel size for kMaplyWideVecCoordTypeScreen
Declaration
Objective-C
extern NSString *const kMaplyWideVecTexRepeatLenSwift
let kMaplyWideVecTexRepeatLen: String -
If set we’ll break up a vector feature to the given epsilon on a globe surface
Declaration
Objective-C
extern NSString *const kMaplySubdivEpsilonSwift
let kMaplySubdivEpsilon: String -
If subdiv epsilon is set we’ll look for a subdivision type. Default is simple.
Declaration
Objective-C
extern NSString *const kMaplySubdivTypeSwift
let kMaplySubdivType: String -
Subdivide the vector edges along a great circle
Declaration
Objective-C
extern NSString *const kMaplySubdivGreatCircleSwift
let kMaplySubdivGreatCircle: String -
Subdivide into a fixed number of segmenets
Declaration
Objective-C
extern NSString *const kMaplySubdivStaticSwift
let kMaplySubdivStatic: String -
Subdivide the vectors edges along lat/lon
Declaration
Objective-C
extern NSString *const kMaplySubdivSimpleSwift
let kMaplySubdivSimple: String -
Clip features along a grid of the given size
Declaration
Objective-C
extern NSString *const kMaplySubdivGridSwift
let kMaplySubdivGrid: String -
Used to turn off selection in vectors
Declaration
Objective-C
extern NSString *const kMaplySelectableSwift
let kMaplySelectable: String -
Sampling size along one dimension
Declaration
Objective-C
extern NSString *const kMaplySampleXSwift
let kMaplySampleX: String -
Sampling size along one dimension
Declaration
Objective-C
extern NSString *const kMaplySampleYSwift
let kMaplySampleY: String -
Images to use when changing a sticker
Declaration
Objective-C
extern NSString *const kMaplyStickerImagesSwift
let kMaplyStickerImages: String -
Image format to use for the new images
Declaration
Objective-C
extern NSString *const kMaplyStickerImageFormatSwift
let kMaplyStickerImageFormat: String -
Billboard orientation
Declaration
Objective-C
extern NSString *const kMaplyBillboardOrientSwift
let kMaplyBillboardOrient: String -
Billboards are oriented toward the eye, but rotate on the ground
Declaration
Objective-C
extern NSString *const kMaplyBillboardOrientGroundSwift
let kMaplyBillboardOrientGround: String -
Billboards are oriented only towards the eye
Declaration
Objective-C
extern NSString *const kMaplyBillboardOrientEyeSwift
let kMaplyBillboardOrientEye: String -
Height above the ground
Declaration
Objective-C
extern NSString *const kMaplyLoftedPolyHeightSwift
let kMaplyLoftedPolyHeight: String -
Boolean that turns on/off top (on by default)
Declaration
Objective-C
extern NSString *const kMaplyLoftedPolyTopSwift
let kMaplyLoftedPolyTop: String -
Boolean that turns on/off sides (on by default)
Declaration
Objective-C
extern NSString *const kMaplyLoftedPolySideSwift
let kMaplyLoftedPolySide: String -
If present, we’ll start the lofted poly above 0 height
Declaration
Objective-C
extern NSString *const kMaplyLoftedPolyBaseSwift
let kMaplyLoftedPolyBase: String -
Grid size we used to chop the lofted polygons up (10 degress by default)
Declaration
Objective-C
extern NSString *const kMaplyLoftedPolyGridSizeSwift
let kMaplyLoftedPolyGridSize: String -
If set to @(YES) this will draw an outline around the top of the lofted poly in lines
Declaration
Objective-C
extern NSString *const kMaplyLoftedPolyOutlineSwift
let kMaplyLoftedPolyOutline: String -
If set to @(YES) this will draw an outline around the bottom of the lofted poly in lines
Declaration
Objective-C
extern NSString *const kMaplyLoftedPolyOutlineBottomSwift
let kMaplyLoftedPolyOutlineBottom: String -
If the outline is one this is the outline’s color
Declaration
Objective-C
extern NSString *const kMaplyLoftedPolyOutlineColorSwift
let kMaplyLoftedPolyOutlineColor: String -
This is the outline’s width if it’s turned on
Declaration
Objective-C
extern NSString *const kMaplyLoftedPolyOutlineWidthSwift
let kMaplyLoftedPolyOutlineWidth: String -
Draw priority of the lines created for the lofted poly outline
Declaration
Objective-C
extern NSString *const kMaplyLoftedPolyOutlineDrawPrioritySwift
let kMaplyLoftedPolyOutlineDrawPriority: String -
If set and we’re drawing an outline, this will create lines up the sides
Declaration
Objective-C
extern NSString *const kMaplyLoftedPolyOutlineSideSwift
let kMaplyLoftedPolyOutlineSide: String -
Samples (x) to use when converting shape to polygons
Declaration
Objective-C
extern NSString *const kMaplyShapeSampleXSwift
let kMaplyShapeSampleX: String -
Samples (y) to use when converting shape to polygons
Declaration
Objective-C
extern NSString *const kMaplyShapeSampleYSwift
let kMaplyShapeSampleY: String -
If set to true, we’ll tessellate a shape using the opposite vertex ordering
Declaration
Objective-C
extern NSString *const kMaplyShapeInsideOutSwift
let kMaplyShapeInsideOut: String -
Center for the shape geometry
Declaration
Objective-C
extern NSString *const kMaplyShapeCenterXSwift
let kMaplyShapeCenterX: String -
Undocumented
-
Undocumented
-
These are used by active vector objects
Declaration
Objective-C
extern NSString *const kMaplyVecHeightSwift
let kMaplyVecHeight: String -
Undocumented
-
These are used by the particle systems
Declaration
Objective-C
extern NSString *const kMaplyPointSizeSwift
let kMaplyPointSize: String -
Undocumented
-
These are used by the texture
Declaration
Objective-C
extern NSString *const kMaplyTexFormatSwift
let kMaplyTexFormat: String -
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
These are the various shader programs we set up by default
Declaration
Objective-C
extern NSString *const kMaplyShaderDefaultTriSwift
let kMaplyShaderDefaultTri: String -
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
View on GitHub
Constants Reference