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.
addEventListener
Notice: Available only in the v=beta channel.
addEventListener(type, listener[, options])
type
: string
A case-sensitive string representing the event type to listen for.listener
: EventListener|EventListenerObject
The object that receives a notification. This must be a function or an object with the handleEvent methodoptions
: boolean|AddEventListenerOptions optional
See options. Custom events only support capture
and passive
.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])
type
: string
A string which specifies the type of event for which to remove an event listener.listener
: EventListener|EventListenerObject
The event listener of the event handler to remove from the event target.options
: boolean|EventListenerOptions optional
See options.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.
lightboxPreferred
Type: boolean optional
Default: false
Whether to enable or disable the media lightbox, in cases where both options are supported.
HTML attribute:<gmp-place-media lightbox-preferred></gmp-place-media>
addEventListener
Notice: Available only in the v=beta channel.
addEventListener(type, listener[, options])
type
: string
A case-sensitive string representing the event type to listen for.listener
: EventListener|EventListenerObject
The object that receives a notification. This must be a function or an object with the handleEvent methodoptions
: boolean|AddEventListenerOptions optional
See options. Custom events only support capture
and passive
.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])
type
: string
A string which specifies the type of event for which to remove an event listener.listener
: EventListener|EventListenerObject
The event listener of the event handler to remove from the event target.options
: boolean|EventListenerOptions optional
See options.Return Value: void
Removes an event listener previously registered with addEventListener from the target. See
removeEventListener.
google.maps.places.PlaceMediaElementOptions
interface
Options for PlaceMediaElement
.
google.maps.places.PlaceTypeElementOptions
interface
Options for PlaceTypeElement
.
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.
addEventListener
Notice: Available only in the v=beta channel.
addEventListener(type, listener[, options])
type
: string
A case-sensitive string representing the event type to listen for.listener
: EventListener|EventListenerObject
The object that receives a notification. This must be a function or an object with the handleEvent methodoptions
: boolean|AddEventListenerOptions optional
See options. Custom events only support capture
and passive
.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])
type
: string
A string which specifies the type of event for which to remove an event listener.listener
: EventListener|EventListenerObject
The event listener of the event handler to remove from the event target.options
: boolean|EventListenerOptions optional
See options.Return Value: void
Removes an event listener previously registered with addEventListener from the target. See
removeEventListener.
PlacePhoneNumberElement classgoogle.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.
addEventListener
Notice: Available only in the v=beta channel.
addEventListener(type, listener[, options])
type
: string
A case-sensitive string representing the event type to listen for.listener
: EventListener|EventListenerObject
The object that receives a notification. This must be a function or an object with the handleEvent methodoptions
: boolean|AddEventListenerOptions optional
See options. Custom events only support capture
and passive
.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])
type
: string
A string which specifies the type of event for which to remove an event listener.listener
: EventListener|EventListenerObject
The event listener of the event handler to remove from the event target.options
: boolean|EventListenerOptions optional
See options.Return Value: void
Removes an event listener previously registered with addEventListener from the target. See
removeEventListener.
PlacePlusCodeElement classgoogle.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.
addEventListener
Notice: Available only in the v=beta channel.
addEventListener(type, listener[, options])
type
: string
A case-sensitive string representing the event type to listen for.listener
: EventListener|EventListenerObject
The object that receives a notification. This must be a function or an object with the handleEvent methodoptions
: boolean|AddEventListenerOptions optional
See options. Custom events only support capture
and passive
.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])
type
: string
A string which specifies the type of event for which to remove an event listener.listener
: EventListener|EventListenerObject
The event listener of the event handler to remove from the event target.options
: boolean|EventListenerOptions optional
See options.Return Value: void
Removes an event listener previously registered with addEventListener from the target. See
removeEventListener.
PlaceTypeSpecificHighlightsElement classgoogle.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.
addEventListener
Notice: Available only in the v=beta channel.
addEventListener(type, listener[, options])
type
: string
A case-sensitive string representing the event type to listen for.listener
: EventListener|EventListenerObject
The object that receives a notification. This must be a function or an object with the handleEvent methodoptions
: boolean|AddEventListenerOptions optional
See options. Custom events only support capture
and passive
.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])
type
: string
A string which specifies the type of event for which to remove an event listener.listener
: EventListener|EventListenerObject
The event listener of the event handler to remove from the event target.options
: boolean|EventListenerOptions optional
See options.Return Value: void
Removes an event listener previously registered with addEventListener from the target. See
removeEventListener.
PlaceAttributionElement classgoogle.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.
darkSchemeColor
Type: AttributionColor optional
Default: AttributionColor.WHITE
The color of the Google Maps attribution in dark mode.
HTML attribute:<gmp-place-attribution dark-scheme-color="white"></gmp-place-attribution>
<gmp-place-attribution dark-scheme-color="black"></gmp-place-attribution>
<gmp-place-attribution dark-scheme-color="gray"></gmp-place-attribution>
lightSchemeColor
Type: AttributionColor optional
Default: AttributionColor.GRAY
The color of the Google Maps attribution in light mode.
HTML attribute:<gmp-place-attribution light-scheme-color="white"></gmp-place-attribution>
<gmp-place-attribution light-scheme-color="black"></gmp-place-attribution>
<gmp-place-attribution light-scheme-color="gray"></gmp-place-attribution>
addEventListener
Notice: Available only in the v=beta channel.
addEventListener(type, listener[, options])
type
: string
A case-sensitive string representing the event type to listen for.listener
: EventListener|EventListenerObject
The object that receives a notification. This must be a function or an object with the handleEvent methodoptions
: boolean|AddEventListenerOptions optional
See options. Custom events only support capture
and passive
.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])
type
: string
A string which specifies the type of event for which to remove an event listener.listener
: EventListener|EventListenerObject
The event listener of the event handler to remove from the event target.options
: boolean|EventListenerOptions optional
See options.Return Value: void
Removes an event listener previously registered with addEventListener from the target. See
removeEventListener.
AttributionColor constantsgoogle.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.
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