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.



4760
4761
4762
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4760

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



4748
4749
4750
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4748

def image_url
  @image_url
end

#tile_xFloat

Map tile x coordinate Corresponds to the JSON property tileX

Returns:

  • (Float)


4753
4754
4755
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4753

def tile_x
  @tile_x
end

#tile_yFloat

Map tile y coordinate Corresponds to the JSON property tileY

Returns:

  • (Float)


4758
4759
4760
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4758

def tile_y
  @tile_y
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4765
4766
4767
4768
4769
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4765

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