A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/maps/documentation/javascript/reference/place-widget-child-elements below:

Place Widget Child Elements | Maps JavaScript API

PlaceStandardContentElement class

google.maps.places.PlaceStandardContentElement class

Configures a PlaceDetailsCompactElement or PlaceDetailsElement to show a standard set of content. Append this element as a child to use it.
For PlaceDetailsElement, standard content consists of:

For

PlaceDetailsCompactElement

, standard content consists of:

For example:

 <gmp-place-details>
  <gmp-place-standard-content></gmp-place-standard-content>
</gmp-place-details>

Custom element:
<gmp-place-standard-content></gmp-place-standard-content>

This class extends HTMLElement.

This class implements PlaceStandardContentElementOptions.

Access by calling const {PlaceStandardContentElement} = await google.maps.importLibrary("places").
See Libraries in the Maps JavaScript API.

Methods addEventListener

Notice: Available only in the v=beta channel.

addEventListener(type, listener[, options])

Parameters: 

Return Value:  void

Sets up a function that will be called whenever the specified event is delivered to the target. See

addEventListener

.

removeEventListener

Notice: Available only in the v=beta channel.

removeEventListener(type, listener[, options])

Parameters: 

Return Value:  void

Removes an event listener previously registered with addEventListener from the target. See

removeEventListener

.

google.maps.places.PlaceMediaElement class

Configures a PlaceDetailsCompactElement or PlaceDetailsElement to show a place's media, such as photos. Append this element as a child of a PlaceContentConfigElement to use it. For example:

 <gmp-place-content-config>
  <gmp-place-media lightbox-preferred></gmp-place-media>
</gmp-place-content-config>

Custom element:
<gmp-place-media lightbox-preferred></gmp-place-media>

This class extends HTMLElement.

This class implements PlaceMediaElementOptions.

Access by calling const {PlaceMediaElement} = await google.maps.importLibrary("places").
See Libraries in the Maps JavaScript API.

Properties lightboxPreferred

Type:  boolean optional

Default: false

Whether to enable or disable the media lightbox, in cases where both options are supported.

HTML attribute: Methods addEventListener

Notice: Available only in the v=beta channel.

addEventListener(type, listener[, options])

Parameters: 

Return Value:  void

Sets up a function that will be called whenever the specified event is delivered to the target. See

addEventListener

.

removeEventListener

Notice: Available only in the v=beta channel.

removeEventListener(type, listener[, options])

Parameters: 

Return Value:  void

Removes an event listener previously registered with addEventListener from the target. See

removeEventListener

.

google.maps.places.PlaceMediaElementOptions interface

Options for PlaceMediaElement.

PlaceTypeElementOptions interface

google.maps.places.PlaceTypeElementOptions interface

Options for PlaceTypeElement.

PlaceFeatureListElement class

google.maps.places.PlaceFeatureListElement class

Configures a PlaceDetailsElement to show a place's feature list in the "About" tab. Feature list can include accessibility options, amenities, accepted payment methods, and more. Append this element as a child of a PlaceContentConfigElement to use it. For example:

 <gmp-place-content-config>
  <gmp-place-feature-list></gmp-place-feature-list>
</gmp-place-content-config>

Custom element:
<gmp-place-feature-list></gmp-place-feature-list>

This class extends HTMLElement.

This class implements PlaceFeatureListElementOptions.

Access by calling const {PlaceFeatureListElement} = await google.maps.importLibrary("places").
See Libraries in the Maps JavaScript API.

Methods addEventListener

Notice: Available only in the v=beta channel.

addEventListener(type, listener[, options])

Parameters: 

Return Value:  void

Sets up a function that will be called whenever the specified event is delivered to the target. See

addEventListener

.

removeEventListener

Notice: Available only in the v=beta channel.

removeEventListener(type, listener[, options])

Parameters: 

Return Value:  void

Removes an event listener previously registered with addEventListener from the target. See

removeEventListener

.

PlacePhoneNumberElement class

google.maps.places.PlacePhoneNumberElement class

Configures a PlaceDetailsElement to show a place's phone number. Append this element as a child of a PlaceContentConfigElement to use it. For example:

 <gmp-place-content-config>
  <gmp-place-phone-number></gmp-place-phone-number>
</gmp-place-content-config>

Custom element:
<gmp-place-phone-number></gmp-place-phone-number>

This class extends HTMLElement.

This class implements PlacePhoneNumberElementOptions.

Access by calling const {PlacePhoneNumberElement} = await google.maps.importLibrary("places").
See Libraries in the Maps JavaScript API.

Methods addEventListener

Notice: Available only in the v=beta channel.

addEventListener(type, listener[, options])

Parameters: 

Return Value:  void

Sets up a function that will be called whenever the specified event is delivered to the target. See

addEventListener

.

removeEventListener

Notice: Available only in the v=beta channel.

removeEventListener(type, listener[, options])

Parameters: 

Return Value:  void

Removes an event listener previously registered with addEventListener from the target. See

removeEventListener

.

PlacePlusCodeElement class

google.maps.places.PlacePlusCodeElement class

Configures a PlaceDetailsElement to show a place's plus code. Append this element as a child of a PlaceContentConfigElement to use it. For example:

 <gmp-place-content-config>
  <gmp-place-plus-code></gmp-place-plus-code>
</gmp-place-content-config>

Custom element:
<gmp-place-plus-code></gmp-place-plus-code>

This class extends HTMLElement.

This class implements PlacePlusCodeElementOptions.

Access by calling const {PlacePlusCodeElement} = await google.maps.importLibrary("places").
See Libraries in the Maps JavaScript API.

Methods addEventListener

Notice: Available only in the v=beta channel.

addEventListener(type, listener[, options])

Parameters: 

Return Value:  void

Sets up a function that will be called whenever the specified event is delivered to the target. See

addEventListener

.

removeEventListener

Notice: Available only in the v=beta channel.

removeEventListener(type, listener[, options])

Parameters: 

Return Value:  void

Removes an event listener previously registered with addEventListener from the target. See

removeEventListener

.

PlaceTypeSpecificHighlightsElement class

google.maps.places.PlaceTypeSpecificHighlightsElement class

Configures a PlaceDetailsElement to show a place's type-specific highlights, such as gas prices and EV charger availability. Append this element as a child of a PlaceContentConfigElement to use it. For example:

 <gmp-place-content-config>
  <gmp-place-type-specific-highlights></gmp-place-type-specific-highlights>
</gmp-place-content-config>

Custom element:
<gmp-place-type-specific-highlights></gmp-place-type-specific-highlights>

This class extends HTMLElement.

This class implements PlaceTypeSpecificHighlightsElementOptions.

Access by calling const {PlaceTypeSpecificHighlightsElement} = await google.maps.importLibrary("places").
See Libraries in the Maps JavaScript API.

Methods addEventListener

Notice: Available only in the v=beta channel.

addEventListener(type, listener[, options])

Parameters: 

Return Value:  void

Sets up a function that will be called whenever the specified event is delivered to the target. See

addEventListener

.

removeEventListener

Notice: Available only in the v=beta channel.

removeEventListener(type, listener[, options])

Parameters: 

Return Value:  void

Removes an event listener previously registered with addEventListener from the target. See

removeEventListener

.

PlaceAttributionElement class

google.maps.places.PlaceAttributionElement class

Allows customization of the Google Maps attribution text in a PlaceDetailsCompactElement or PlaceDetailsElement. Append this element as a child of a PlaceContentConfigElement to use it. If this element is omitted, attribution will still be shown with default colors. For example:

 <gmp-place-content-config>
  <gmp-place-attribution
     light-scheme-color="black"
     dark-scheme-color="white"
  ></gmp-place-attribution>
</gmp-place-content-config>

Custom element:
<gmp-place-attribution dark-scheme-color="white" light-scheme-color="white"></gmp-place-attribution>

This class extends HTMLElement.

This class implements PlaceAttributionElementOptions.

Access by calling const {PlaceAttributionElement} = await google.maps.importLibrary("places").
See Libraries in the Maps JavaScript API.

Properties darkSchemeColor Type:  AttributionColor optional

Default: AttributionColor.WHITE

The color of the Google Maps attribution in dark mode.

HTML attribute: lightSchemeColor Type:  AttributionColor optional

Default: AttributionColor.GRAY

The color of the Google Maps attribution in light mode.

HTML attribute: Methods addEventListener

Notice: Available only in the v=beta channel.

addEventListener(type, listener[, options])

Parameters: 

Return Value:  void

Sets up a function that will be called whenever the specified event is delivered to the target. See

addEventListener

.

removeEventListener

Notice: Available only in the v=beta channel.

removeEventListener(type, listener[, options])

Parameters: 

Return Value:  void

Removes an event listener previously registered with addEventListener from the target. See

removeEventListener

.

AttributionColor constants

google.maps.places.AttributionColor constants

Color options for Google Maps attribution text. Attribution may be customized to use any of these colors.

Access by calling const {AttributionColor} = await google.maps.importLibrary("places").
See Libraries in the Maps JavaScript API.

Constants BLACK Black attribution text. GRAY Gray attribution text. WHITE White attribution text.

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4