Class: Google::Apis::VectortileV1::BasemapZOrder

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/vectortile_v1/classes.rb,
lib/google/apis/vectortile_v1/representations.rb,
lib/google/apis/vectortile_v1/representations.rb
more...

Overview

Metadata necessary to determine the ordering of a particular basemap element relative to others. To render the basemap correctly, sort by z-plane, then z- grade, then z-within-grade.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BasemapZOrder

Returns a new instance of BasemapZOrder.

[View source]

142
143
144
# File 'lib/google/apis/vectortile_v1/classes.rb', line 142

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#z_gradeFixnum

The second most significant component of the ordering of a component to be rendered onto the basemap. Corresponds to the JSON property zGrade

Returns:

  • (Fixnum)

128
129
130
# File 'lib/google/apis/vectortile_v1/classes.rb', line 128

def z_grade
  @z_grade
end

#z_planeFixnum

The most significant component of the ordering of a component to be rendered onto the basemap. Corresponds to the JSON property zPlane

Returns:

  • (Fixnum)

134
135
136
# File 'lib/google/apis/vectortile_v1/classes.rb', line 134

def z_plane
  @z_plane
end

#z_within_gradeFixnum

The least significant component of the ordering of a component to be rendered onto the basemap. Corresponds to the JSON property zWithinGrade

Returns:

  • (Fixnum)

140
141
142
# File 'lib/google/apis/vectortile_v1/classes.rb', line 140

def z_within_grade
  @z_within_grade
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

147
148
149
150
151
# File 'lib/google/apis/vectortile_v1/classes.rb', line 147

def update!(**args)
  @z_grade = args[:z_grade] if args.key?(:z_grade)
  @z_plane = args[:z_plane] if args.key?(:z_plane)
  @z_within_grade = args[:z_within_grade] if args.key?(:z_within_grade)
end