Class: Google::Apis::CloudsearchV1::MapTile
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::MapTile
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
Information used to render a map tile image in the proper location on a map.
Instance Attribute Summary collapse
-
#image_url ⇒ Google::Apis::CloudsearchV1::SafeUrlProto
Message containing a string that is safe to use in URL contexts in DOM APIs and HTML documents, where the URL context does not refer to a resource that loads code.
-
#tile_x ⇒ Float
Map tile x coordinate Corresponds to the JSON property
tileX. -
#tile_y ⇒ Float
Map tile y coordinate Corresponds to the JSON property
tileY.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MapTile
constructor
A new instance of MapTile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MapTile
Returns a new instance of MapTile.
4930 4931 4932 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4930 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image_url ⇒ Google::Apis::CloudsearchV1::SafeUrlProto
Message containing a string that is safe to use in URL contexts in DOM APIs
and HTML documents, where the URL context does not refer to a resource that
loads code.
Corresponds to the JSON property imageUrl
4918 4919 4920 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4918 def image_url @image_url end |
#tile_x ⇒ Float
Map tile x coordinate
Corresponds to the JSON property tileX
4923 4924 4925 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4923 def tile_x @tile_x end |
#tile_y ⇒ Float
Map tile y coordinate
Corresponds to the JSON property tileY
4928 4929 4930 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4928 def tile_y @tile_y end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4935 4936 4937 4938 4939 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4935 def update!(**args) @image_url = args[:image_url] if args.key?(:image_url) @tile_x = args[:tile_x] if args.key?(:tile_x) @tile_y = args[:tile_y] if args.key?(:tile_y) end |