Class: Google::Apis::CloudsearchV1::MapTile

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_urlGoogle::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_xFloat

Map tile x coordinate Corresponds to the JSON property tileX

Returns:

  • (Float)


4923
4924
4925
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4923

def tile_x
  @tile_x
end

#tile_yFloat

Map tile y coordinate Corresponds to the JSON property tileY

Returns:

  • (Float)


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