diff --git a/classes/AdvancedMarkerElement.html b/classes/AdvancedMarkerElement.html index 59327846..bc1b634b 100644 --- a/classes/AdvancedMarkerElement.html +++ b/classes/AdvancedMarkerElement.html @@ -1,4 +1,4 @@ -AdvancedMarkerElement | @googlemaps/jest-mocks

Hierarchy

  • HTMLElement
    • AdvancedMarkerElement

Implements

  • AdvancedMarkerElement

Constructors

constructor +AdvancedMarkerElement | @googlemaps/jest-mocks

Hierarchy

  • HTMLElement
    • AdvancedMarkerElement

Implements

  • AdvancedMarkerElement

Constructors

Properties

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name in the Maps +

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name in the Maps Eventing system.

Observed event.

Function to handle events.

-
collisionBehavior?: CollisionBehavior

See google.maps.marker.AdvancedMarkerElementOptions.collisionBehavior.

-
content?: Element

See google.maps.marker.AdvancedMarkerElementOptions.content.

-
element: HTMLElement

This field is read-only. The DOM Element backing the view.

-
gmpDraggable?: boolean

See google.maps.marker.AdvancedMarkerElementOptions.gmpDraggable.

-
map?: Map

See google.maps.marker.AdvancedMarkerElementOptions.map.

-
position?: LatLng | LatLngLiteral | LatLngAltitudeLiteral

See google.maps.marker.AdvancedMarkerElementOptions.position.

-
title: string
zIndex?: number

See google.maps.marker.AdvancedMarkerElementOptions.zIndex.

-
+
collisionBehavior?: CollisionBehavior

See google.maps.marker.AdvancedMarkerElementOptions.collisionBehavior.

+
content?: Element

See google.maps.marker.AdvancedMarkerElementOptions.content.

+
element: HTMLElement

This field is read-only. The DOM Element backing the view.

+
gmpDraggable?: boolean

See google.maps.marker.AdvancedMarkerElementOptions.gmpDraggable.

+
map?: Map

See google.maps.marker.AdvancedMarkerElementOptions.map.

+
position?: LatLng | LatLngLiteral | LatLngAltitudeLiteral

See google.maps.marker.AdvancedMarkerElementOptions.position.

+
title: string

MDN Reference

+
zIndex?: number

See google.maps.marker.AdvancedMarkerElementOptions.zIndex.

+
diff --git a/classes/Autocomplete.html b/classes/Autocomplete.html index d890c078..d85e31dd 100644 --- a/classes/Autocomplete.html +++ b/classes/Autocomplete.html @@ -1,4 +1,4 @@ -Autocomplete | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • Autocomplete

Constructors

constructor +Autocomplete | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • Autocomplete

Constructors

Properties

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an +

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an identifier for this listener that can be used with google.maps.event.removeListener.

-
bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

-
changed: Mock<any, any, any> = ...
get: Mock<any, any, any> = ...

Gets a value.

-
getBounds: Mock<any, any, any> = ...

Returns the bounds to which predictions are biased.

-
getFields: Mock<any, any, any> = ...

Returns the fields to be included for the Place in the details response +

bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

+
changed: Mock<any, any, any> = ...
get: Mock<any, any, any> = ...

Gets a value.

+
getBounds: Mock<any, any, any> = ...

Returns the bounds to which predictions are biased.

+
getFields: Mock<any, any, any> = ...

Returns the fields to be included for the Place in the details response when the details are successfully retrieved. For a list of fields see google.maps.places.PlaceResult.

-
getPlace: Mock<any, any, any> = ...

Returns the details of the Place selected by user if the details were +

getPlace: Mock<any, any, any> = ...

Returns the details of the Place selected by user if the details were successfully retrieved. Otherwise returns a stub Place object, with the name property set to the current value of the input field.

-
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both +

notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.

-
set: Mock<any, any, any> = ...

Sets a value.

-
setBounds: Mock<any, any, any> = ...

Sets the preferred area within which to return Place results. Results are +

set: Mock<any, any, any> = ...

Sets a value.

+
setBounds: Mock<any, any, any> = ...

Sets the preferred area within which to return Place results. Results are biased towards, but not restricted to, this area.

The biasing bounds.

-
setComponentRestrictions: Mock<any, any, any> = ...

Sets the component restrictions. Component restrictions are used to +

setComponentRestrictions: Mock<any, any, any> = ...

Sets the component restrictions. Component restrictions are used to restrict predictions to only those within the parent component. For example, the country.

The restrictions to use.

-
setFields: Mock<any, any, any> = ...

Sets the fields to be included for the Place in the details response when +

setFields: Mock<any, any, any> = ...

Sets the fields to be included for the Place in the details response when the details are successfully retrieved. For a list of fields see google.maps.places.PlaceResult.

-
setOptions: Mock<any, any, any> = ...
setTypes: Mock<any, any, any> = ...

Sets the types of predictions to be returned. For supported types, see +

setOptions: Mock<any, any, any> = ...
setTypes: Mock<any, any, any> = ...

Sets the types of predictions to be returned. For supported types, see the developer's guide. If no types are specified, all types will be returned.

The types of predictions to be included.

-
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

-
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current +

setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

+
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.

-
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

-
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
+
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

+
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
diff --git a/classes/AutocompleteService.html b/classes/AutocompleteService.html index 8814df1d..0d580069 100644 --- a/classes/AutocompleteService.html +++ b/classes/AutocompleteService.html @@ -1,15 +1,15 @@ -AutocompleteService | @googlemaps/jest-mocks

Implements

  • AutocompleteService

Constructors

constructor +AutocompleteService | @googlemaps/jest-mocks

Implements

  • AutocompleteService

Constructors

Properties

getPlacePredictions: Mock<any, any, any> = ...

Retrieves place autocomplete predictions based on the supplied +

Constructors

Properties

getPlacePredictions: Mock<any, any, any> = ...

Retrieves place autocomplete predictions based on the supplied autocomplete request.

The autocompletion request.

A callback accepting an array of AutocompletePrediction objects and a PlacesServiceStatus value as argument.

-
getQueryPredictions: Mock<any, any, any> = ...

Retrieves query autocomplete predictions based on the supplied query +

getQueryPredictions: Mock<any, any, any> = ...

Retrieves query autocomplete predictions based on the supplied query autocomplete request.

The query autocompletion request.

A callback accepting an array of QueryAutocompletePrediction objects and a PlacesServiceStatus value as argument.

-
+
diff --git a/classes/AutocompleteSessionToken.html b/classes/AutocompleteSessionToken.html index 9381b1c0..2b4995db 100644 --- a/classes/AutocompleteSessionToken.html +++ b/classes/AutocompleteSessionToken.html @@ -1,2 +1,2 @@ -AutocompleteSessionToken | @googlemaps/jest-mocks

Implements

  • AutocompleteSessionToken

Constructors

Constructors

+AutocompleteSessionToken | @googlemaps/jest-mocks

Implements

  • AutocompleteSessionToken

Constructors

Constructors

diff --git a/classes/Circle.html b/classes/Circle.html index 36b6f563..600900fe 100644 --- a/classes/Circle.html +++ b/classes/Circle.html @@ -1,4 +1,4 @@ -Circle | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • Circle

Constructors

constructor +Circle | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • Circle

Constructors

Properties

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an +

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an identifier for this listener that can be used with google.maps.event.removeListener.

-
bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

-
changed: Mock<any, any, any> = ...
get: Mock<any, any, any> = ...

Gets a value.

-
getBounds: Mock<any, any, any> = ...

Gets the LatLngBounds of this Circle.

-
getCenter: Mock<any, any, any> = ...

Returns the center of this circle.

-
getDraggable: Mock<any, any, any> = ...

Returns whether this circle can be dragged by the user.

-
getEditable: Mock<any, any, any> = ...

Returns whether this circle can be edited by the user.

-
getMap: Mock<any, any, any> = ...

Returns the map on which this circle is displayed.

-
getRadius: Mock<any, any, any> = ...

Returns the radius of this circle (in meters).

-
getVisible: Mock<any, any, any> = ...

Returns whether this circle is visible on the map.

-
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both +

bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

+
changed: Mock<any, any, any> = ...
get: Mock<any, any, any> = ...

Gets a value.

+
getBounds: Mock<any, any, any> = ...

Gets the LatLngBounds of this Circle.

+
getCenter: Mock<any, any, any> = ...

Returns the center of this circle.

+
getDraggable: Mock<any, any, any> = ...

Returns whether this circle can be dragged by the user.

+
getEditable: Mock<any, any, any> = ...

Returns whether this circle can be edited by the user.

+
getMap: Mock<any, any, any> = ...

Returns the map on which this circle is displayed.

+
getRadius: Mock<any, any, any> = ...

Returns the radius of this circle (in meters).

+
getVisible: Mock<any, any, any> = ...

Returns whether this circle is visible on the map.

+
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.

-
set: Mock<any, any, any> = ...

Sets a value.

-
setCenter: Mock<any, any, any> = ...

Sets the center of this circle.

-
setDraggable: Mock<any, any, any> = ...

If set to true, the user can drag this circle over the map.

-
setEditable: Mock<any, any, any> = ...

If set to true, the user can edit this circle by dragging +

set: Mock<any, any, any> = ...

Sets a value.

+
setCenter: Mock<any, any, any> = ...

Sets the center of this circle.

+
setDraggable: Mock<any, any, any> = ...

If set to true, the user can drag this circle over the map.

+
setEditable: Mock<any, any, any> = ...

If set to true, the user can edit this circle by dragging the control points shown at the center and around the circumference of the circle.

-
setMap: Mock<any, any, any> = ...

Renders the circle on the specified map. If map is set to +

setMap: Mock<any, any, any> = ...

Renders the circle on the specified map. If map is set to null, the circle will be removed.

-
setOptions: Mock<any, any, any> = ...
setRadius: Mock<any, any, any> = ...

Sets the radius of this circle (in meters).

-
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

-
setVisible: Mock<any, any, any> = ...

Hides this circle if set to false.

-
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current +

setOptions: Mock<any, any, any> = ...
setRadius: Mock<any, any, any> = ...

Sets the radius of this circle (in meters).

+
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

+
setVisible: Mock<any, any, any> = ...

Hides this circle if set to false.

+
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.

-
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

-
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
+
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

+
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
diff --git a/classes/Data.html b/classes/Data.html index 8b94c721..ec155e9f 100644 --- a/classes/Data.html +++ b/classes/Data.html @@ -1,4 +1,4 @@ -Data | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • Data

Constructors

constructor +Data | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • Data

Constructors

Properties

Constructors

Properties

add: Mock<any, any, any> = ...

Adds a feature to the collection, and returns the added feature.

If +

Constructors

Properties

add: Mock<any, any, any> = ...

Adds a feature to the collection, and returns the added feature.

If the feature has an ID, it will replace any existing feature in the collection with the same ID. If no feature is given, a new feature will be created with null geometry and no properties. If @@ -41,83 +41,83 @@ '1234' are equivalent. Adding a feature with ID 1234 will replace a feature with ID '1234', and vice versa.

-
addGeoJson: Mock<any, any, any> = ...

Adds GeoJSON features to the collection. Give this method a parsed JSON. +

addGeoJson: Mock<any, any, any> = ...

Adds GeoJSON features to the collection. Give this method a parsed JSON. The imported features are returned. Throws an exception if the GeoJSON could not be imported.

-
addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an +

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an identifier for this listener that can be used with google.maps.event.removeListener.

-
bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

-
changed: Mock<any, any, any> = ...
contains: Mock<any, any, any> = ...

Checks whether the given feature is in the collection.

-
forEach: Mock<any, any, any> = ...

Repeatedly invokes the given function, passing a feature in the +

bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

+
changed: Mock<any, any, any> = ...
contains: Mock<any, any, any> = ...

Checks whether the given feature is in the collection.

+
forEach: Mock<any, any, any> = ...

Repeatedly invokes the given function, passing a feature in the collection to the function on each invocation. The order of iteration through the features is undefined.

-
get: Mock<any, any, any> = ...

Gets a value.

-
getControlPosition: Mock<any, any, any> = ...

Returns the position of the drawing controls on the map.

-
getControls: Mock<any, any, any> = ...

Returns which drawing modes are available for the user to select, in the +

get: Mock<any, any, any> = ...

Gets a value.

+
getControlPosition: Mock<any, any, any> = ...

Returns the position of the drawing controls on the map.

+
getControls: Mock<any, any, any> = ...

Returns which drawing modes are available for the user to select, in the order they are displayed. This does not include the null drawing mode, which is added by default. Possible drawing modes are "Point", "LineString" or "Polygon".

-
getDrawingMode: Mock<any, any, any> = ...

Returns the current drawing mode of the given Data layer. A drawing mode +

getDrawingMode: Mock<any, any, any> = ...

Returns the current drawing mode of the given Data layer. A drawing mode of null means that the user can interact with the map as normal, and clicks do not draw anything. Possible drawing modes are null, "Point", "LineString" or "Polygon".

-
getFeatureById: Mock<any, any, any> = ...

Returns the feature with the given ID, if it exists in the collection. +

getFeatureById: Mock<any, any, any> = ...

Returns the feature with the given ID, if it exists in the collection. Otherwise returns undefined.

Note that the IDs 1234 and '1234' are equivalent. Either can be used to look up the same feature.

-
getMap: Mock<any, any, any> = ...

Returns the map on which the features are displayed.

-
getStyle: Mock<any, any, any> = ...

Gets the style for all features in the collection.

-
loadGeoJson: Mock<any, any, any> = ...

Loads GeoJSON from a URL, and adds the features to the collection.

+

getMap: Mock<any, any, any> = ...

Returns the map on which the features are displayed.

+
getStyle: Mock<any, any, any> = ...

Gets the style for all features in the collection.

+
loadGeoJson: Mock<any, any, any> = ...

Loads GeoJSON from a URL, and adds the features to the collection.

NOTE: The GeoJSON is fetched using XHR, and may not work cross-domain. If you have issues, we recommend you fetch the GeoJSON using your choice of AJAX library, and then call addGeoJson().

-
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both +

notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.

-
overrideStyle: Mock<any, any, any> = ...

Changes the style of a feature. These changes are applied on top of the +

overrideStyle: Mock<any, any, any> = ...

Changes the style of a feature. These changes are applied on top of the style specified by setStyle(). Style properties set to null revert to the value specified via setStyle().

-
remove: Mock<any, any, any> = ...

Removes a feature from the collection.

-
revertStyle: Mock<any, any, any> = ...

Removes the effect of previous overrideStyle() calls. The +

remove: Mock<any, any, any> = ...

Removes a feature from the collection.

+
revertStyle: Mock<any, any, any> = ...

Removes the effect of previous overrideStyle() calls. The style of the given feature reverts to the style specified by setStyle().

If no feature is given, all features have their style reverted.

-
set: Mock<any, any, any> = ...

Sets a value.

-
setControlPosition: Mock<any, any, any> = ...

Sets the position of the drawing controls on the map.

-
setControls: Mock<any, any, any> = ...

Sets which drawing modes are available for the user to select, in the +

set: Mock<any, any, any> = ...

Sets a value.

+
setControlPosition: Mock<any, any, any> = ...

Sets the position of the drawing controls on the map.

+
setControls: Mock<any, any, any> = ...

Sets which drawing modes are available for the user to select, in the order they are displayed. This should not include the null drawing mode, which is added by default. If null, drawing controls are disabled and not displayed. Possible drawing modes are "Point", "LineString" or "Polygon".

-
setDrawingMode: Mock<any, any, any> = ...

Sets the current drawing mode of the given Data layer. A drawing mode of +

setDrawingMode: Mock<any, any, any> = ...

Sets the current drawing mode of the given Data layer. A drawing mode of null means that the user can interact with the map as normal, and clicks do not draw anything. Possible drawing modes are null, "Point", "LineString" or "Polygon".

-
setMap: Mock<any, any, any> = ...

Renders the features on the specified map. If map is set to +

setMap: Mock<any, any, any> = ...

Renders the features on the specified map. If map is set to null, the features will be removed from the map.

-
setStyle: Mock<any, any, any> = ...

Sets the style for all features in the collection. Styles specified on a +

setStyle: Mock<any, any, any> = ...

Sets the style for all features in the collection. Styles specified on a per-feature basis via overrideStyle() continue to apply.

Pass either an object with the desired style options, or a function that computes the style for each feature. The function will be called -every time a feature's properties are updated.

setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

-
toGeoJson: Mock<any, any, any> = ...

Exports the features in the collection to a GeoJSON object.

-
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current +every time a feature's properties are updated.

setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

+
toGeoJson: Mock<any, any, any> = ...

Exports the features in the collection to a GeoJSON object.

+
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.

-
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

-
_mockClasses: typeof MVCObject[] = []
Feature: Mock<any, any, any> = ...

A feature has a geometry, an id, and a set of properties.

+
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

+
_mockClasses: typeof MVCObject[] = []
Feature: Mock<any, any, any> = ...

A feature has a geometry, an id, and a set of properties.

Access by calling const {Data} = await google.maps.importLibrary("maps"). See https://developers.google.com/maps/documentation/javascript/libraries.

-
mockInstances: MVCObject[] = []
Polygon: Mock<any, any, any> = ...

A Polygon geometry contains a number of Data.LinearRings. The +

mockInstances: MVCObject[] = []
Polygon: Mock<any, any, any> = ...

A Polygon geometry contains a number of Data.LinearRings. The first linear-ring must be the polygon exterior boundary and subsequent linear-rings must be interior boundaries, also known as holes. See the sample polygon with a hole.

Access by calling const {Data} = await google.maps.importLibrary("maps"). See https://developers.google.com/maps/documentation/javascript/libraries.

-
+
diff --git a/classes/DataPolygon.html b/classes/DataPolygon.html index cf8dac17..6ee0c3c6 100644 --- a/classes/DataPolygon.html +++ b/classes/DataPolygon.html @@ -1,4 +1,4 @@ -DataPolygon | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • Polygon

Constructors

constructor +DataPolygon | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • Polygon

Constructors

Properties

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an +

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an identifier for this listener that can be used with google.maps.event.removeListener.

-
bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

-
changed: Mock<any, any, any> = ...
forEachLatLng: Mock<any, any, any> = ...
get: Mock<any, any, any> = ...

Gets a value.

-
getArray: Mock<any, any, any> = ...

Returns an array of the contained Data.LinearRings. A new +

bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

+
changed: Mock<any, any, any> = ...
forEachLatLng: Mock<any, any, any> = ...
get: Mock<any, any, any> = ...

Gets a value.

+
getArray: Mock<any, any, any> = ...

Returns an array of the contained Data.LinearRings. A new array is returned each time getArray() is called.

-
getAt: Mock<any, any, any> = ...

Returns the n-th contained Data.LinearRing.

-
getLength: Mock<any, any, any> = ...

Returns the number of contained Data.LinearRings.

-
getType: Mock<any, any, any> = ...

Returns the string "Polygon".

-
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both +

getAt: Mock<any, any, any> = ...

Returns the n-th contained Data.LinearRing.

+
getLength: Mock<any, any, any> = ...

Returns the number of contained Data.LinearRings.

+
getType: Mock<any, any, any> = ...

Returns the string "Polygon".

+
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.

-
set: Mock<any, any, any> = ...

Sets a value.

-
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

-
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current +

set: Mock<any, any, any> = ...

Sets a value.

+
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

+
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.

-
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

-
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
+
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

+
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
diff --git a/classes/DirectionsService.html b/classes/DirectionsService.html index 157b3a46..23bb4e79 100644 --- a/classes/DirectionsService.html +++ b/classes/DirectionsService.html @@ -1,4 +1,4 @@ -DirectionsService | @googlemaps/jest-mocks

Implements

  • DirectionsService

Constructors

constructor +DirectionsService | @googlemaps/jest-mocks

Implements

  • DirectionsService

Constructors

Properties

Constructors

Properties

route: Mock<any, any, any> = ...

Issue a directions search request.

-
+

Constructors

Properties

route: Mock<any, any, any> = ...

Issue a directions search request.

+
diff --git a/classes/DistanceMatrixService.html b/classes/DistanceMatrixService.html index 87f596dc..d05f5247 100644 --- a/classes/DistanceMatrixService.html +++ b/classes/DistanceMatrixService.html @@ -1,4 +1,4 @@ -DistanceMatrixService | @googlemaps/jest-mocks

Implements

  • DistanceMatrixService

Constructors

constructor +DistanceMatrixService | @googlemaps/jest-mocks

Implements

  • DistanceMatrixService

Constructors

Properties

Constructors

Properties

getDistanceMatrix: Mock<any, any, any> = ...

Issues a distance matrix request.

-
+

Constructors

Properties

getDistanceMatrix: Mock<any, any, any> = ...

Issues a distance matrix request.

+
diff --git a/classes/ElevationService.html b/classes/ElevationService.html index 76751720..90327586 100644 --- a/classes/ElevationService.html +++ b/classes/ElevationService.html @@ -1,7 +1,7 @@ -ElevationService | @googlemaps/jest-mocks

Implements

  • ElevationService

Constructors

constructor +ElevationService | @googlemaps/jest-mocks

Implements

  • ElevationService

Constructors

Properties

getElevationAlongPath: Mock<any, any, any> = ...

Makes an elevation request along a path, where the elevation data are +

Constructors

Properties

getElevationAlongPath: Mock<any, any, any> = ...

Makes an elevation request along a path, where the elevation data are returned as distance-based samples along that path.

-
getElevationForLocations: Mock<any, any, any> = ...

Makes an elevation request for a list of discrete locations.

-
+
getElevationForLocations: Mock<any, any, any> = ...

Makes an elevation request for a list of discrete locations.

+
diff --git a/classes/Feature.html b/classes/Feature.html index be5c9e99..01a8d4e9 100644 --- a/classes/Feature.html +++ b/classes/Feature.html @@ -1,4 +1,4 @@ -Feature | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • Feature

Constructors

constructor +Feature | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • Feature

Constructors

Properties

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an +

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an identifier for this listener that can be used with google.maps.event.removeListener.

-
bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

-
changed: Mock<any, any, any> = ...
forEachProperty: Mock<any, any, any> = ...

Repeatedly invokes the given function, passing a property value and name +

bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

+
changed: Mock<any, any, any> = ...
forEachProperty: Mock<any, any, any> = ...

Repeatedly invokes the given function, passing a property value and name on each invocation. The order of iteration through the properties is undefined.

-
get: Mock<any, any, any> = ...

Gets a value.

-
getGeometry: Mock<any, any, any> = ...

Returns the feature's geometry.

-
getId: Mock<any, any, any> = ...

Returns the feature ID.

-
getProperty: Mock<any, any, any> = ...

Returns the value of the requested property, or undefined if +

get: Mock<any, any, any> = ...

Gets a value.

+
getGeometry: Mock<any, any, any> = ...

Returns the feature's geometry.

+
getId: Mock<any, any, any> = ...

Returns the feature ID.

+
getProperty: Mock<any, any, any> = ...

Returns the value of the requested property, or undefined if the property does not exist.

-
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both +

notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.

-
removeProperty: Mock<any, any, any> = ...

Removes the property with the given name.

-
set: Mock<any, any, any> = ...

Sets a value.

-
setGeometry: Mock<any, any, any> = ...

Sets the feature's geometry.

-
setProperty: Mock<any, any, any> = ...

Sets the value of the specified property. If newValue is +

removeProperty: Mock<any, any, any> = ...

Removes the property with the given name.

+
set: Mock<any, any, any> = ...

Sets a value.

+
setGeometry: Mock<any, any, any> = ...

Sets the feature's geometry.

+
setProperty: Mock<any, any, any> = ...

Sets the value of the specified property. If newValue is undefined this is equivalent to calling removeProperty.

-
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

-
toGeoJson: Mock<any, any, any> = ...

Exports the feature to a GeoJSON object.

-
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current +

setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

+
toGeoJson: Mock<any, any, any> = ...

Exports the feature to a GeoJSON object.

+
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.

-
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

-
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
+
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

+
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
diff --git a/classes/FeatureLayer.html b/classes/FeatureLayer.html index 8ceb5345..003168a8 100644 --- a/classes/FeatureLayer.html +++ b/classes/FeatureLayer.html @@ -1,4 +1,4 @@ -FeatureLayer | @googlemaps/jest-mocks

Implements

  • FeatureLayer

Constructors

constructor +FeatureLayer | @googlemaps/jest-mocks

Implements

  • FeatureLayer

Constructors

Properties

addListener featureType isAvailable @@ -7,15 +7,15 @@ identifier for this listener that can be used with google.maps.event.removeListener.

Observed event.

Function to handle events.

-
featureType: FeatureType = google.maps.FeatureType.ADMINISTRATIVE_AREA_LEVEL_1

The FeatureType associated with this +

featureType: FeatureType = google.maps.FeatureType.ADMINISTRATIVE_AREA_LEVEL_1

The FeatureType associated with this FeatureLayer.

-
isAvailable: boolean = false

Whether this FeatureLayer is available, meaning whether +

isAvailable: boolean = false

Whether this FeatureLayer is available, meaning whether Data-driven styling is available for this map (there is a map ID using vector tiles with this FeatureLayer enabled in the Google Cloud Console map style.) If this is false (or becomes false), styling on this FeatureLayer returns to default and events are not triggered.

-
style: FeatureStyleOptions | FeatureStyleFunction = null

The style of Features in the FeatureLayer. The +

style: FeatureStyleOptions | FeatureStyleFunction = null

The style of Features in the FeatureLayer. The style is applied when style is set. If your style function updates, you must set the style property again. A FeatureStyleFunction must return consistent results when it is applied over the map tiles, and @@ -25,4 +25,4 @@ Set the style to null to remove the previously set style. If this FeatureLayer is not available, setting style does nothing and logs an error.

-
+
diff --git a/classes/Geocoder.html b/classes/Geocoder.html index 880d88c4..775c8637 100644 --- a/classes/Geocoder.html +++ b/classes/Geocoder.html @@ -1,4 +1,4 @@ -Geocoder | @googlemaps/jest-mocks

Implements

  • Geocoder

Constructors

constructor +Geocoder | @googlemaps/jest-mocks

Implements

  • Geocoder

Constructors

Properties

Constructors

Properties

geocode: Mock<any, any, any> = ...

Geocode a request.

-
+

Constructors

Properties

geocode: Mock<any, any, any> = ...

Geocode a request.

+
diff --git a/classes/InfoWindow.html b/classes/InfoWindow.html index 10d07e08..da416a5e 100644 --- a/classes/InfoWindow.html +++ b/classes/InfoWindow.html @@ -1,4 +1,4 @@ -InfoWindow | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • InfoWindow

Constructors

constructor +InfoWindow | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • InfoWindow

Constructors

Properties

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an +

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an identifier for this listener that can be used with google.maps.event.removeListener.

-
bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

-
changed: Mock<any, any, any> = ...
close: Mock<any, any, any> = ...

Closes this InfoWindow by removing it from the DOM structure.

-
focus: Mock<any, any, any> = ...

Sets focus on this InfoWindow. You may wish to consider +

bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

+
changed: Mock<any, any, any> = ...
close: Mock<any, any, any> = ...

Closes this InfoWindow by removing it from the DOM structure.

+
focus: Mock<any, any, any> = ...

Sets focus on this InfoWindow. You may wish to consider using this method along with a visible event to make sure that InfoWindow is visible before setting focus on it. An InfoWindow that is not visible cannot be focused.

-
get: Mock<any, any, any> = ...

Gets a value.

-
getContent: Mock<any, any, any> = ...
getHeaderContent: Mock<any, any, any> = ...
getHeaderDisabled: Mock<any, any, any> = ...
getPosition: Mock<any, any, any> = ...
getZIndex: Mock<any, any, any> = ...
isOpen: boolean = false

Checks if the InfoWindow is open.

-
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both +

get: Mock<any, any, any> = ...

Gets a value.

+
getContent: Mock<any, any, any> = ...
getHeaderContent: Mock<any, any, any> = ...
getHeaderDisabled: Mock<any, any, any> = ...
getPosition: Mock<any, any, any> = ...
getZIndex: Mock<any, any, any> = ...
isOpen: boolean = false

Checks if the InfoWindow is open.

+
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.

-
open: Mock<any, any, any> = ...

Opens this InfoWindow on the given map. Optionally, an InfoWindow can be +

open: Mock<any, any, any> = ...

Opens this InfoWindow on the given map. Optionally, an InfoWindow can be associated with an anchor. In the core API, the only anchor is the Marker class. However, an anchor can be any MVCObject that exposes a LatLng position property and optionally a Point @@ -54,18 +54,18 @@ the anchor is non-null, the InfoWindow will be positioned at the top-center of the anchor. The InfoWindow will be rendered on the same map or panorama as the anchor (when available).

-
set: Mock<any, any, any> = ...

Sets a value.

-
setContent: Mock<any, any, any> = ...

The content to be displayed by this InfoWindow.

-
setHeaderContent: Mock<any, any, any> = ...

The header content to be displayed by this +

set: Mock<any, any, any> = ...

Sets a value.

+
setContent: Mock<any, any, any> = ...

The content to be displayed by this InfoWindow.

+
setHeaderContent: Mock<any, any, any> = ...

The header content to be displayed by this InfoWindow. See google.maps.InfoWindowOptions.headerContent.

-
setHeaderDisabled: Mock<any, any, any> = ...

Specifies whether to disable the whole header row. +

setHeaderDisabled: Mock<any, any, any> = ...

Specifies whether to disable the whole header row. See google.maps.InfoWindowOptions.headerDisabled.

-
setOptions: Mock<any, any, any> = ...
setPosition: Mock<any, any, any> = ...

The LatLng position at which to display this InfoWindow.

-
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

-
setZIndex: Mock<any, any, any> = ...

The z-index for this InfoWindow. An InfoWindow with a +

setOptions: Mock<any, any, any> = ...
setPosition: Mock<any, any, any> = ...

The LatLng position at which to display this InfoWindow.

+
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

+
setZIndex: Mock<any, any, any> = ...

The z-index for this InfoWindow. An InfoWindow with a greater z-index will be displayed in front of all other InfoWindows with a lower z-index.

-
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current +

unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.

-
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

-
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
+
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

+
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
diff --git a/classes/KmlLayer.html b/classes/KmlLayer.html index b270a9fe..541abd14 100644 --- a/classes/KmlLayer.html +++ b/classes/KmlLayer.html @@ -1,4 +1,4 @@ -KmlLayer | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • KmlLayer

Constructors

constructor +KmlLayer | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • KmlLayer

Constructors

Properties

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an +

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an identifier for this listener that can be used with google.maps.event.removeListener.

-
bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

-
changed: Mock<any, any, any> = ...
get: Mock<any, any, any> = ...

Gets a value.

-
getDefaultViewport: Mock<any, any, any> = ...

Get the default viewport for the layer being displayed.

-
getMap: Mock<any, any, any> = ...

Get the map on which the KML Layer is being rendered.

-
getMetadata: Mock<any, any, any> = ...

Get the metadata associated with this layer, as specified in the layer +

bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

+
changed: Mock<any, any, any> = ...
get: Mock<any, any, any> = ...

Gets a value.

+
getDefaultViewport: Mock<any, any, any> = ...

Get the default viewport for the layer being displayed.

+
getMap: Mock<any, any, any> = ...

Get the map on which the KML Layer is being rendered.

+
getMetadata: Mock<any, any, any> = ...

Get the metadata associated with this layer, as specified in the layer markup.

-
getStatus: Mock<any, any, any> = ...

Get the status of the layer, set once the requested document has loaded.

-
getUrl: Mock<any, any, any> = ...

Gets the URL of the KML file being displayed.

-
getZIndex: Mock<any, any, any> = ...

Gets the z-index of the KML Layer.

-
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both +

getStatus: Mock<any, any, any> = ...

Get the status of the layer, set once the requested document has loaded.

+
getUrl: Mock<any, any, any> = ...

Gets the URL of the KML file being displayed.

+
getZIndex: Mock<any, any, any> = ...

Gets the z-index of the KML Layer.

+
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.

-
set: Mock<any, any, any> = ...

Sets a value.

-
setMap: Mock<any, any, any> = ...

Renders the KML Layer on the specified map. If map is set to +

set: Mock<any, any, any> = ...

Sets a value.

+
setMap: Mock<any, any, any> = ...

Renders the KML Layer on the specified map. If map is set to null, the layer is removed.

-
setOptions: Mock<any, any, any> = ...
setUrl: Mock<any, any, any> = ...

Sets the URL of the KML file to display.

-
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

-
setZIndex: Mock<any, any, any> = ...

Sets the z-index of the KML Layer.

+
setOptions: Mock<any, any, any> = ...
setUrl: Mock<any, any, any> = ...

Sets the URL of the KML file to display.

+
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

+
setZIndex: Mock<any, any, any> = ...

Sets the z-index of the KML Layer.

The z-index to set.

-
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current +

unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.

-
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

-
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
+
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

+
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
diff --git a/classes/LatLng.html b/classes/LatLng.html index fc130f93..4fd0076e 100644 --- a/classes/LatLng.html +++ b/classes/LatLng.html @@ -9,19 +9,19 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

-

Implements

Constructors

Implements

  • LatLng

Constructors

Properties

equals: Mock<any, any, any> = ...

Comparison function.

-
lat: Mock<any, any, any> = ...

Returns the latitude in degrees.

-
lng: Mock<any, any, any> = ...

Returns the longitude in degrees.

-
toJSON: Mock<any, any, any> = ...

Converts to JSON representation. This function is intended to be used via +

Constructors

Properties

equals: Mock<any, any, any> = ...

Comparison function.

+
lat: Mock<any, any, any> = ...

Returns the latitude in degrees.

+
lng: Mock<any, any, any> = ...

Returns the longitude in degrees.

+
toJSON: Mock<any, any, any> = ...

Converts to JSON representation. This function is intended to be used via JSON.stringify.

-
toString: Mock<any, any, any> = ...

Converts to string representation.

-
toUrlValue: Mock<any, any, any> = ...

Returns a string of the form "lat,lng" for this LatLng. We +

toString: Mock<any, any, any> = ...

Converts to string representation.

+
toUrlValue: Mock<any, any, any> = ...

Returns a string of the form "lat,lng" for this LatLng. We round the lat/lng values to 6 decimal places by default.

-
+
diff --git a/classes/LatLngAltitude.html b/classes/LatLngAltitude.html index 7157bca0..2f9e0ca4 100644 --- a/classes/LatLngAltitude.html +++ b/classes/LatLngAltitude.html @@ -9,15 +9,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

-

Implements

Constructors

Implements

  • LatLngAltitude

Constructors

Properties

Constructors

Properties

altitude: number = 0

Returns the altitude.

-
equals: Mock<any, any, any> = ...

Comparison function.

+

Constructors

Properties

altitude: number = 0

Returns the altitude.

+
equals: Mock<any, any, any> = ...

Comparison function.

Another LatLngAltitude object.

-
lat: number = 0

Returns the latitude.

-
lng: number = 0

Returns the longitude.

-
toJSON: Mock<any, any, any> = ...
+
lat: number = 0

Returns the latitude.

+
lng: number = 0

Returns the longitude.

+
toJSON: Mock<any, any, any> = ...
diff --git a/classes/LatLngBounds.html b/classes/LatLngBounds.html index 6312c5f5..881fc922 100644 --- a/classes/LatLngBounds.html +++ b/classes/LatLngBounds.html @@ -1,4 +1,4 @@ -LatLngBounds | @googlemaps/jest-mocks

Implements

  • LatLngBounds

Constructors

constructor +LatLngBounds | @googlemaps/jest-mocks

Implements

  • LatLngBounds

Constructors

Properties

Constructors

Properties

contains: Mock<any, any, any> = ...

Returns true if the given lat/lng is in this bounds.

-
equals: Mock<any, any, any> = ...

Returns true if this bounds approximately equals the given +

Constructors

Properties

contains: Mock<any, any, any> = ...

Returns true if the given lat/lng is in this bounds.

+
equals: Mock<any, any, any> = ...

Returns true if this bounds approximately equals the given bounds.

-
extend: Mock<any, any, any> = ...

Extends this bounds to contain the given point.

-
getCenter: Mock<any, any, any> = ...

Computes the center of this LatLngBounds

-
getNorthEast: Mock<any, any, any> = ...

Returns the north-east corner of this bounds.

-
getSouthWest: Mock<any, any, any> = ...

Returns the south-west corner of this bounds.

-
intersects: Mock<any, any, any> = ...

Returns true if this bounds shares any points with the other +

extend: Mock<any, any, any> = ...

Extends this bounds to contain the given point.

+
getCenter: Mock<any, any, any> = ...

Computes the center of this LatLngBounds

+
getNorthEast: Mock<any, any, any> = ...

Returns the north-east corner of this bounds.

+
getSouthWest: Mock<any, any, any> = ...

Returns the south-west corner of this bounds.

+
intersects: Mock<any, any, any> = ...

Returns true if this bounds shares any points with the other bounds.

-
isEmpty: Mock<any, any, any> = ...

Returns if the bounds are empty.

-
toJSON: Mock<any, any, any> = ...

Converts to JSON representation. This function is intended to be used via +

isEmpty: Mock<any, any, any> = ...

Returns if the bounds are empty.

+
toJSON: Mock<any, any, any> = ...

Converts to JSON representation. This function is intended to be used via JSON.stringify.

-
toSpan: Mock<any, any, any> = ...

Converts the given map bounds to a lat/lng span.

-
toString: Mock<any, any, any> = ...

Converts to string.

-
toUrlValue: Mock<any, any, any> = ...

Returns a string of the form "lat_lo,lng_lo,lat_hi,lng_hi" for +

toSpan: Mock<any, any, any> = ...

Converts the given map bounds to a lat/lng span.

+
toString: Mock<any, any, any> = ...

Converts to string.

+
toUrlValue: Mock<any, any, any> = ...

Returns a string of the form "lat_lo,lng_lo,lat_hi,lng_hi" for this bounds, where "lo" corresponds to the southwest corner of the bounding box, while "hi" corresponds to the northeast corner of that box.

-
union: Mock<any, any, any> = ...

Extends this bounds to contain the union of this and the given bounds.

-
+
union: Mock<any, any, any> = ...

Extends this bounds to contain the union of this and the given bounds.

+
diff --git a/classes/MVCArray.html b/classes/MVCArray.html index 80d9acda..21353f57 100644 --- a/classes/MVCArray.html +++ b/classes/MVCArray.html @@ -1,4 +1,4 @@ -MVCArray | @googlemaps/jest-mocks

Type Parameters

  • T

Hierarchy (view full)

Implements

  • MVCArray<T>

Constructors

constructor +MVCArray | @googlemaps/jest-mocks

Type Parameters

  • T

Hierarchy (view full)

Implements

  • MVCArray<T>

Constructors

Properties

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an +

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an identifier for this listener that can be used with google.maps.event.removeListener.

-
bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

-
changed: Mock<any, any, any> = ...
clear: Mock<any, any, any> = ...

Removes all elements from the array.

-
forEach: Mock<any, any, any> = ...

Iterate over each element, calling the provided callback. The callback is +

bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

+
changed: Mock<any, any, any> = ...
clear: Mock<any, any, any> = ...

Removes all elements from the array.

+
forEach: Mock<any, any, any> = ...

Iterate over each element, calling the provided callback. The callback is called for each element like: callback(element, index).

-
get: Mock<any, any, any> = ...

Gets a value.

-
getArray: Mock<any, any, any> = ...

Returns a reference to the underlying Array. Warning: if the Array is +

get: Mock<any, any, any> = ...

Gets a value.

+
getArray: Mock<any, any, any> = ...

Returns a reference to the underlying Array. Warning: if the Array is mutated, no events will be fired by this object.

-
getAt: Mock<any, any, any> = ...

Returns the element at the specified index.

-
getLength: Mock<any, any, any> = ...

Returns the number of elements in this array.

-
insertAt: Mock<any, any, any> = ...

Inserts an element at the specified index.

-
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both +

getAt: Mock<any, any, any> = ...

Returns the element at the specified index.

+
getLength: Mock<any, any, any> = ...

Returns the number of elements in this array.

+
insertAt: Mock<any, any, any> = ...

Inserts an element at the specified index.

+
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.

-
pop: Mock<any, any, any> = ...

Removes the last element of the array and returns that element.

-
push: Mock<any, any, any> = ...

Adds one element to the end of the array and returns the new length of +

pop: Mock<any, any, any> = ...

Removes the last element of the array and returns that element.

+
push: Mock<any, any, any> = ...

Adds one element to the end of the array and returns the new length of the array.

-
removeAt: Mock<any, any, any> = ...

Removes an element from the specified index.

-
set: Mock<any, any, any> = ...

Sets a value.

-
setAt: Mock<any, any, any> = ...

Sets an element at the specified index.

-
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

-
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current +

removeAt: Mock<any, any, any> = ...

Removes an element from the specified index.

+
set: Mock<any, any, any> = ...

Sets a value.

+
setAt: Mock<any, any, any> = ...

Sets an element at the specified index.

+
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

+
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.

-
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

-
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
+
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

+
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
diff --git a/classes/MVCObject.html b/classes/MVCObject.html index 7670aab9..a118dbe5 100644 --- a/classes/MVCObject.html +++ b/classes/MVCObject.html @@ -1,4 +1,4 @@ -MVCObject | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • MVCObject

Constructors

constructor +MVCObject | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • MVCObject

Constructors

Properties

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an +

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an identifier for this listener that can be used with google.maps.event.removeListener.

-
bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

-
changed: Mock<any, any, any> = ...
get: Mock<any, any, any> = ...

Gets a value.

-
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both +

bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

+
changed: Mock<any, any, any> = ...
get: Mock<any, any, any> = ...

Gets a value.

+
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.

-
set: Mock<any, any, any> = ...

Sets a value.

-
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

-
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current +

set: Mock<any, any, any> = ...

Sets a value.

+
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

+
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.

-
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

-
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
+
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

+
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
diff --git a/classes/Map.html b/classes/Map.html index 94d53c72..ead1a093 100644 --- a/classes/Map.html +++ b/classes/Map.html @@ -1,4 +1,4 @@ -Map | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • Map

Constructors

constructor +Map | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • Map

Constructors

Properties

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an +

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an identifier for this listener that can be used with google.maps.event.removeListener.

-
bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

-
changed: Mock<any, any, any> = ...
controls: MVCArray<HTMLElement>[]

Additional controls to attach to the map. To add a control to the map, +

bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

+
changed: Mock<any, any, any> = ...
controls: MVCArray<HTMLElement>[]

Additional controls to attach to the map. To add a control to the map, add the control's <div> to the MVCArray corresponding to the ControlPosition where it should be rendered.

-
data: Data

An instance of Data, bound to the map. Add features to this +

data: Data

An instance of Data, bound to the map. Add features to this Data object to conveniently display them on this map.

-
fitBounds: Mock<any, any, any> = ...

Sets the viewport to contain the given bounds.
+

fitBounds: Mock<any, any, any> = ...

Sets the viewport to contain the given bounds.
Note: When the map is set to display: none, the fitBounds function reads the map's size as 0x0, and therefore does not do anything. To change the viewport while the map is @@ -71,8 +71,8 @@ the map that remains after padding is removed. A number value will yield the same padding on all 4 sides. Supply 0 here to make a fitBounds idempotent on the result of getBounds.

-
get: Mock<any, any, any> = ...

Gets a value.

-
getBounds: Mock<any, any, any> = ...

Returns the lat/lng bounds of the current viewport. If more than one copy +

get: Mock<any, any, any> = ...

Gets a value.

+
getBounds: Mock<any, any, any> = ...

Returns the lat/lng bounds of the current viewport. If more than one copy of the world is visible, the bounds range in longitude from -180 to 180 degrees inclusive. If the map is not yet initialized or center and zoom have not been set then the result is undefined. For vector @@ -80,15 +80,15 @@ represents the smallest bounding box that includes the visible region of the map's viewport. See google.maps.MapCanvasProjection.getVisibleRegion for getting the exact visible region of the map's viewport.

-
getCenter: Mock<any, any, any> = ...

Returns the position displayed at the center of the map. Note that +

getCenter: Mock<any, any, any> = ...

Returns the position displayed at the center of the map. Note that this google.maps.LatLng object is not wrapped. See LatLng for more information. If the center or bounds have not been set then the result is undefined.

-
getClickableIcons: Mock<any, any, any> = ...

Returns the clickability of the map icons. A map icon represents a point +

getClickableIcons: Mock<any, any, any> = ...

Returns the clickability of the map icons. A map icon represents a point of interest, also known as a POI. If the returned value is true, then the icons are clickable on the map.

-
getDatasetFeatureLayer: Mock<FeatureLayer, [datasetId: string], any> = ...

Available only in the v=beta channel: https://goo.gle/3oAthT3. +

getDatasetFeatureLayer: Mock<FeatureLayer, [datasetId: string], any> = ...

Available only in the v=beta channel: https://goo.gle/3oAthT3. Returns the FeatureLayer for the specified datasetId. Dataset IDs must be configured in the Google Cloud Console. If the dataset ID is not associated with the map's map @@ -96,63 +96,63 @@ tiles, no Data-Driven Styling feature layers or Datasets configured in the Map Style), this logs an error, and the resulting FeatureLayer.isAvailable will be false.

-
getDiv: Mock<any, any, any> = ...
getFeatureLayer: Mock<FeatureLayer, [featureType: FeatureType], any> = ...

Returns the FeatureLayer of the specific +

getDiv: Mock<any, any, any> = ...
getFeatureLayer: Mock<FeatureLayer, [featureType: FeatureType], any> = ...

Returns the FeatureLayer of the specific FeatureType. A FeatureLayer must be enabled in the Google Cloud Console. If a FeatureLayer of the specified FeatureType does not exist on this map, or if Data-driven styling is not available (no map ID, no vector tiles, and no FeatureLayer enabled in the map style), this logs an error, and the resulting FeatureLayer.isAvailable will be false.

-
getHeading: Mock<any, any, any> = ...

Returns the compass heading of the map. The heading value is measured in +

getHeading: Mock<any, any, any> = ...

Returns the compass heading of the map. The heading value is measured in degrees (clockwise) from cardinal direction North. If the map is not yet initialized then the result is undefined.

-
getHeadingInteractionEnabled: Mock<any, any, any> = ...

Returns whether heading interactions are enabled. This option is only in +

getHeadingInteractionEnabled: Mock<any, any, any> = ...

Returns whether heading interactions are enabled. This option is only in effect when the map is a vector map. If not set in code, then the cloud configuration for the map ID will be used (if available).

-
getMapCapabilities: Mock<{
    isAdvancedMarkersAvailable: boolean;
    isDataDrivenStylingAvailable: boolean;
}, [], any> = ...

Informs the caller of the current capabilities available to the map based +

getMapCapabilities: Mock<{
    isAdvancedMarkersAvailable: boolean;
    isDataDrivenStylingAvailable: boolean;
}, [], any> = ...

Informs the caller of the current capabilities available to the map based on the Map ID that was provided.

-
getMapTypeId: Mock<any, any, any> = ...
getProjection: Mock<any, any, any> = ...

Returns the current Projection. If the map is not yet +

getMapTypeId: Mock<any, any, any> = ...
getProjection: Mock<any, any, any> = ...

Returns the current Projection. If the map is not yet initialized then the result is undefined. Listen to the projection_changed event and check its value to ensure it is not undefined.

-
getRenderingType: Mock<any, any, any> = ...

Returns the current RenderingType of the map.

-
getStreetView: Mock<any, any, any> = ...

Returns the default StreetViewPanorama bound to the map, +

getRenderingType: Mock<any, any, any> = ...

Returns the current RenderingType of the map.

+
getStreetView: Mock<any, any, any> = ...

Returns the default StreetViewPanorama bound to the map, which may be a default panorama embedded within the map, or the panorama set using setStreetView(). Changes to the map's streetViewControl will be reflected in the display of such a bound panorama.

-
getTilt: Mock<any, any, any> = ...

Returns the current angle of incidence of the map, in degrees from the +

getTilt: Mock<any, any, any> = ...

Returns the current angle of incidence of the map, in degrees from the viewport plane to the map plane. For raster maps, the result will be 0 for imagery taken directly overhead or 45 for 45° imagery. This method does not return the value set by setTilt. See setTilt for details.

-
getTiltInteractionEnabled: Mock<any, any, any> = ...

Returns whether tilt interactions are enabled. This option is only in +

getTiltInteractionEnabled: Mock<any, any, any> = ...

Returns whether tilt interactions are enabled. This option is only in effect when the map is a vector map. If not set in code, then the cloud configuration for the map ID will be used (if available).

-
getZoom: Mock<any, any, any> = ...

Returns the zoom of the map. If the zoom has not been set then the result +

getZoom: Mock<any, any, any> = ...

Returns the zoom of the map. If the zoom has not been set then the result is undefined.

-
mapTypes: MapTypeRegistry

A registry of MapType instances by string ID.

-
moveCamera: Mock<any, any, any> = ...

Immediately sets the map's camera to the target camera options, +

mapTypes: MapTypeRegistry

A registry of MapType instances by string ID.

+
moveCamera: Mock<any, any, any> = ...

Immediately sets the map's camera to the target camera options, without animation.

-
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both +

notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.

-
overlayMapTypes: MVCArray<MapType>

Additional map types to overlay. Overlay map types will display on top of +

overlayMapTypes: MVCArray<MapType>

Additional map types to overlay. Overlay map types will display on top of the base map they are attached to, in the order in which they appear in the overlayMapTypes array (overlays with higher index values are displayed in front of overlays with lower index values).

-
panBy: Mock<any, any, any> = ...

Changes the center of the map by the given distance in pixels. If the +

panBy: Mock<any, any, any> = ...

Changes the center of the map by the given distance in pixels. If the distance is less than both the width and height of the map, the transition will be smoothly animated. Note that the map coordinate system increases from west to east (for x values) and north to south (for y values).

Number of pixels to move the map in the x direction.

Number of pixels to move the map in the y direction.

-
panTo: Mock<any, any, any> = ...

Changes the center of the map to the given LatLng. If the +

panTo: Mock<any, any, any> = ...

Changes the center of the map to the given LatLng. If the change is less than both the width and height of the map, the transition will be smoothly animated.

The new center latitude/longitude of the map.

-
panToBounds: Mock<any, any, any> = ...

Pans the map by the minimum amount necessary to contain the given +

panToBounds: Mock<any, any, any> = ...

Pans the map by the minimum amount necessary to contain the given LatLngBounds. It makes no guarantee where on the map the bounds will be, except that the map will be panned to show as much of the bounds as possible inside {currentMapSizeInPx} - {padding}. @@ -161,24 +161,24 @@

The bounds to pan the map to.

Padding in pixels. A number value will yield the same padding on all 4 sides. The default value is 0.

-
set: Mock<any, any, any> = ...

Sets a value.

-
setCenter: Mock<any, any, any> = ...
setClickableIcons: Mock<any, any, any> = ...

Controls whether the map icons are clickable or not. A map icon +

set: Mock<any, any, any> = ...

Sets a value.

+
setCenter: Mock<any, any, any> = ...
setClickableIcons: Mock<any, any, any> = ...

Controls whether the map icons are clickable or not. A map icon represents a point of interest, also known as a POI. To disable the clickability of map icons, pass a value of false to this method.

-
setHeading: Mock<any, any, any> = ...

Sets the compass heading for map measured in degrees from cardinal +

setHeading: Mock<any, any, any> = ...

Sets the compass heading for map measured in degrees from cardinal direction North. For raster maps, this method only applies to aerial imagery.

-
setHeadingInteractionEnabled: Mock<any, any, any> = ...

Sets whether heading interactions are enabled. This option is only in +

setHeadingInteractionEnabled: Mock<any, any, any> = ...

Sets whether heading interactions are enabled. This option is only in effect when the map is a vector map. If not set in code, then the cloud configuration for the map ID will be used (if available).

-
setMapTypeId: Mock<any, any, any> = ...
setOptions: Mock<any, any, any> = ...
setRenderingType: Mock<any, any, any> = ...

Sets the current RenderingType of the map.

-
setStreetView: Mock<any, any, any> = ...

Binds a StreetViewPanorama to the map. This panorama +

setMapTypeId: Mock<any, any, any> = ...
setOptions: Mock<any, any, any> = ...
setRenderingType: Mock<any, any, any> = ...

Sets the current RenderingType of the map.

+
setStreetView: Mock<any, any, any> = ...

Binds a StreetViewPanorama to the map. This panorama overrides the default StreetViewPanorama, allowing the map to bind to an external panorama outside of the map. Setting the panorama to null binds the default embedded panorama back to the map.

The panorama to bind to the map.

-
setTilt: Mock<any, any, any> = ...

For vector maps, sets the angle of incidence of the map. The allowed +

setTilt: Mock<any, any, any> = ...

For vector maps, sets the angle of incidence of the map. The allowed values are restricted depending on the zoom level of the map.

For raster maps, controls the automatic switching behavior for the angle of incidence of the map. The only allowed values are 0 and @@ -195,13 +195,13 @@ setTilt refer to different things, do not bind() the tilt property; doing so may yield unpredictable effects.

-
setTiltInteractionEnabled: Mock<any, any, any> = ...

Sets whether tilt interactions are enabled. This option is only in effect +

setTiltInteractionEnabled: Mock<any, any, any> = ...

Sets whether tilt interactions are enabled. This option is only in effect when the map is a vector map. If not set in code, then the cloud configuration for the map ID will be used (if available).

-
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

-
setZoom: Mock<any, any, any> = ...

Sets the zoom of the map.

+
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

+
setZoom: Mock<any, any, any> = ...

Sets the zoom of the map.

Larger zoom values correspond to a higher resolution.

-
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current +

unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.

-
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

-
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
+
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

+
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
diff --git a/classes/MapCanvasProjection.html b/classes/MapCanvasProjection.html index f36b3f27..1d69c799 100644 --- a/classes/MapCanvasProjection.html +++ b/classes/MapCanvasProjection.html @@ -1,4 +1,4 @@ -MapCanvasProjection | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • MapCanvasProjection

Constructors

constructor +MapCanvasProjection | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • MapCanvasProjection

Constructors

Properties

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an +

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an identifier for this listener that can be used with google.maps.event.removeListener.

-
bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

-
changed: Mock<any, any, any> = ...
fromContainerPixelToLatLng: Mock<any, any, any> = ...

Computes the geographical coordinates from pixel coordinates in the +

bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

+
changed: Mock<any, any, any> = ...
fromContainerPixelToLatLng: Mock<any, any, any> = ...

Computes the geographical coordinates from pixel coordinates in the map's container.

-
fromDivPixelToLatLng: Mock<any, any, any> = ...

Computes the geographical coordinates from pixel coordinates in the div +

fromDivPixelToLatLng: Mock<any, any, any> = ...

Computes the geographical coordinates from pixel coordinates in the div that holds the draggable map.

-
fromLatLngToContainerPixel: Mock<any, any, any> = ...

Computes the pixel coordinates of the given geographical location in the +

fromLatLngToContainerPixel: Mock<any, any, any> = ...

Computes the pixel coordinates of the given geographical location in the map's container element.

-
fromLatLngToDivPixel: Mock<any, any, any> = ...

Computes the pixel coordinates of the given geographical location in the +

fromLatLngToDivPixel: Mock<any, any, any> = ...

Computes the pixel coordinates of the given geographical location in the DOM element that holds the draggable map.

-
get: Mock<any, any, any> = ...

Gets a value.

-
getVisibleRegion: Mock<any, any, any> = ...

The visible region of the map. Returns null if the map has +

get: Mock<any, any, any> = ...

Gets a value.

+
getVisibleRegion: Mock<any, any, any> = ...

The visible region of the map. Returns null if the map has no size. Returns null if the OverlayView is on a StreetViewPanorama.

-
getWorldWidth: Mock<any, any, any> = ...

The width of the world in pixels in the current zoom level. For +

getWorldWidth: Mock<any, any, any> = ...

The width of the world in pixels in the current zoom level. For projections with a heading angle of either 90 or 270 degrees, this corresponds to the pixel span in the Y-axis.

-
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both +

notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.

-
set: Mock<any, any, any> = ...

Sets a value.

-
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

-
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current +

set: Mock<any, any, any> = ...

Sets a value.

+
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

+
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.

-
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

-
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
+
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

+
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
diff --git a/classes/MapPanes.html b/classes/MapPanes.html index 3cbf23df..91d0c013 100644 --- a/classes/MapPanes.html +++ b/classes/MapPanes.html @@ -9,7 +9,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

-

Implements

Constructors

Implements

  • MapPanes

Constructors

Properties

Constructors

Properties

floatPane: Element

This pane contains the info window. It is above all map overlays. (Pane 4).

-
mapPane: Element

This pane is the lowest pane and is above the tiles. It does not receive +

mapPane: Element

This pane is the lowest pane and is above the tiles. It does not receive DOM events. (Pane 0).

-
markerLayer: Element

This pane contains markers. It does not receive DOM events. (Pane 2).

-
overlayLayer: Element

This pane contains polylines, polygons, ground overlays and tile layer +

markerLayer: Element

This pane contains markers. It does not receive DOM events. (Pane 2).

+
overlayLayer: Element

This pane contains polylines, polygons, ground overlays and tile layer overlays. It does not receive DOM events. (Pane 1).

-
overlayMouseTarget: Element

This pane contains elements that receive DOM events. (Pane 3).

-
+
overlayMouseTarget: Element

This pane contains elements that receive DOM events. (Pane 3).

+
diff --git a/classes/Marker.html b/classes/Marker.html index 202ba530..9abc06ce 100644 --- a/classes/Marker.html +++ b/classes/Marker.html @@ -1,4 +1,4 @@ -Marker | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • Marker

Constructors

constructor +Marker | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • Marker

Constructors

Properties

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an +

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an identifier for this listener that can be used with google.maps.event.removeListener.

-
bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

-
changed: Mock<any, any, any> = ...
get: Mock<any, any, any> = ...

Gets a value.

-
getAnimation: Mock<any, any, any> = ...

Get the currently running animation.

-
getClickable: Mock<any, any, any> = ...

Get the clickable status of the google.maps.Marker.

-
getCursor: Mock<any, any, any> = ...

Get the mouse cursor type shown on hover.

-
getDraggable: Mock<any, any, any> = ...

Get the draggable status of the google.maps.Marker.

-
getIcon: Mock<any, any, any> = ...

Get the icon of the google.maps.Marker. See google.maps.MarkerOptions.icon.

-
getLabel: Mock<any, any, any> = ...

Get the label of the google.maps.Marker. See google.maps.MarkerOptions.label.

-
getMap: Mock<any, any, any> = ...

Get the map or panaroama the google.maps.Marker is rendered on.

-
getOpacity: Mock<any, any, any> = ...

Get the opacity of the google.maps.Marker.

-
getPosition: Mock<any, any, any> = ...

Get the position of the google.maps.Marker.

-
getShape: Mock<any, any, any> = ...

Get the shape of the google.maps.Marker used for interaction. +

bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

+
changed: Mock<any, any, any> = ...
get: Mock<any, any, any> = ...

Gets a value.

+
getAnimation: Mock<any, any, any> = ...

Get the currently running animation.

+
getClickable: Mock<any, any, any> = ...

Get the clickable status of the google.maps.Marker.

+
getCursor: Mock<any, any, any> = ...

Get the mouse cursor type shown on hover.

+
getDraggable: Mock<any, any, any> = ...

Get the draggable status of the google.maps.Marker.

+
getIcon: Mock<any, any, any> = ...

Get the icon of the google.maps.Marker. See google.maps.MarkerOptions.icon.

+
getLabel: Mock<any, any, any> = ...

Get the label of the google.maps.Marker. See google.maps.MarkerOptions.label.

+
getMap: Mock<any, any, any> = ...

Get the map or panaroama the google.maps.Marker is rendered on.

+
getOpacity: Mock<any, any, any> = ...

Get the opacity of the google.maps.Marker.

+
getPosition: Mock<any, any, any> = ...

Get the position of the google.maps.Marker.

+
getShape: Mock<any, any, any> = ...

Get the shape of the google.maps.Marker used for interaction. See google.maps.MarkerOptions.shape and google.maps.MarkerShape.

-
getTitle: Mock<any, any, any> = ...

Get the title of the google.maps.Marker tooltip. See google.maps.MarkerOptions.title.

-
getVisible: Mock<any, any, any> = ...

Get the visibility of the google.maps.Marker.

-
getZIndex: Mock<any, any, any> = ...

Get the zIndex of the google.maps.Marker. See google.maps.MarkerOptions.zIndex.

-
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both +

getTitle: Mock<any, any, any> = ...

Get the title of the google.maps.Marker tooltip. See google.maps.MarkerOptions.title.

+
getVisible: Mock<any, any, any> = ...

Get the visibility of the google.maps.Marker.

+
getZIndex: Mock<any, any, any> = ...

Get the zIndex of the google.maps.Marker. See google.maps.MarkerOptions.zIndex.

+
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.

-
set: Mock<any, any, any> = ...

Sets a value.

-
setAnimation: Mock<any, any, any> = ...

Start an animation. Any ongoing animation will be cancelled. Currently +

set: Mock<any, any, any> = ...

Sets a value.

+
setAnimation: Mock<any, any, any> = ...

Start an animation. Any ongoing animation will be cancelled. Currently supported animations are: google.maps.Animation.BOUNCE, google.maps.Animation.DROP. Passing in null will cause any animation to stop.

The animation to play.

-
setClickable: Mock<any, any, any> = ...

Set if the google.maps.Marker is clickable.

+
setClickable: Mock<any, any, any> = ...

Set if the google.maps.Marker is clickable.

If true, the Marker can be clicked.

-
setCursor: Mock<any, any, any> = ...

Set the mouse cursor type shown on hover.

+
setCursor: Mock<any, any, any> = ...

Set the mouse cursor type shown on hover.

Mouse cursor type.

-
setDraggable: Mock<any, any, any> = ...

Set if the google.maps.Marker is draggable.

+
setDraggable: Mock<any, any, any> = ...

Set if the google.maps.Marker is draggable.

If true, the Marker can be dragged.

-
setIcon: Mock<any, any, any> = ...

Set the icon for the google.maps.Marker. See google.maps.MarkerOptions.icon.

-
setLabel: Mock<any, any, any> = ...

Set the label for the google.maps.Marker. See google.maps.MarkerOptions.label.

+
setIcon: Mock<any, any, any> = ...

Set the icon for the google.maps.Marker. See google.maps.MarkerOptions.icon.

+
setLabel: Mock<any, any, any> = ...

Set the label for the google.maps.Marker. See google.maps.MarkerOptions.label.

The label can either be a character string or a google.maps.MarkerLabel object.

-
setMap: Mock<any, any, any> = ...

Renders the google.maps.Marker on the specified map or panorama. +

setMap: Mock<any, any, any> = ...

Renders the google.maps.Marker on the specified map or panorama. If map is set to null, the marker will be removed.

-
setOpacity: Mock<any, any, any> = ...

Set the opacity of the google.maps.Marker.

+
setOpacity: Mock<any, any, any> = ...

Set the opacity of the google.maps.Marker.

A number between 0.0, transparent, and 1.0, opaque.

-
setOptions: Mock<any, any, any> = ...

Set the options for the google.maps.Marker.

-
setPosition: Mock<any, any, any> = ...

Set the postition for the google.maps.Marker.

+
setOptions: Mock<any, any, any> = ...

Set the options for the google.maps.Marker.

+
setPosition: Mock<any, any, any> = ...

Set the postition for the google.maps.Marker.

The new position.

-
setShape: Mock<any, any, any> = ...

Set the shape of the google.maps.Marker used for interaction. +

setShape: Mock<any, any, any> = ...

Set the shape of the google.maps.Marker used for interaction. See google.maps.MarkerOptions.shape and google.maps.MarkerShape.

-
setTitle: Mock<any, any, any> = ...

Set the title of the google.maps.Marker tooltip. See google.maps.MarkerOptions.title.

-
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

-
setVisible: Mock<any, any, any> = ...

Set if the google.maps.Marker is visible.

+
setTitle: Mock<any, any, any> = ...

Set the title of the google.maps.Marker tooltip. See google.maps.MarkerOptions.title.

+
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

+
setVisible: Mock<any, any, any> = ...

Set if the google.maps.Marker is visible.

If true, the Marker is visible

-
setZIndex: Mock<any, any, any> = ...

Set the zIndex of the google.maps.Marker. See google.maps.MarkerOptions.zIndex.

-
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current +

setZIndex: Mock<any, any, any> = ...

Set the zIndex of the google.maps.Marker. See google.maps.MarkerOptions.zIndex.

+
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.

-
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

-
_mockClasses: typeof MVCObject[] = []
MAX_ZINDEX: number

The maximum default z-index that the API will assign to a marker. You may +

unbindAll: Mock<any, any, any> = ...

Removes all bindings.

+
_mockClasses: typeof MVCObject[] = []
MAX_ZINDEX: number

The maximum default z-index that the API will assign to a marker. You may set a higher z-index to bring a marker to the front.

-
mockInstances: MVCObject[] = []
+
mockInstances: MVCObject[] = []
diff --git a/classes/MaxZoomService.html b/classes/MaxZoomService.html index dc56e2fc..c9c1204f 100644 --- a/classes/MaxZoomService.html +++ b/classes/MaxZoomService.html @@ -1,8 +1,8 @@ -MaxZoomService | @googlemaps/jest-mocks

Implements

  • MaxZoomService

Constructors

constructor +MaxZoomService | @googlemaps/jest-mocks

Implements

  • MaxZoomService

Constructors

Properties

Constructors

Properties

getMaxZoomAtLatLng: Mock<any, any, any> = ...

Returns the maximum zoom level for which detailed imagery is available at +

Constructors

Properties

getMaxZoomAtLatLng: Mock<any, any, any> = ...

Returns the maximum zoom level for which detailed imagery is available at a particular LatLng for the satellite map type. As this request is asynchronous, you must pass a callback function which will be executed upon completion of the request, being passed a MaxZoomResult.

-
+
diff --git a/classes/OverlayView.html b/classes/OverlayView.html index 32777d6f..8a65881c 100644 --- a/classes/OverlayView.html +++ b/classes/OverlayView.html @@ -1,4 +1,4 @@ -OverlayView | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • OverlayView

Constructors

constructor +OverlayView | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • OverlayView

Constructors

Properties

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an +

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an identifier for this listener that can be used with google.maps.event.removeListener.

-
bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

-
changed: Mock<any, any, any> = ...
draw: Mock<any, any, any> = ...

Implement this method to draw or update the overlay. Use the position +

bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

+
changed: Mock<any, any, any> = ...
draw: Mock<any, any, any> = ...

Implement this method to draw or update the overlay. Use the position from projection.fromLatLngToDivPixel() to correctly position the overlay relative to the MapPanes. This method is called after onAdd(), and is called on change of zoom or center. It is not recommended to do computationally expensive work in this method.

-
get: Mock<any, any, any> = ...

Gets a value.

-
getMap: Mock<any, any, any> = ...
getPanes: Mock<any, any, any> = ...

Returns the panes in which this OverlayView can be rendered. The panes +

get: Mock<any, any, any> = ...

Gets a value.

+
getMap: Mock<any, any, any> = ...
getPanes: Mock<any, any, any> = ...

Returns the panes in which this OverlayView can be rendered. The panes are not initialized until onAdd is called by the API.

-
getProjection: Mock<any, any, any> = ...

Returns the MapCanvasProjection object associated with this +

getProjection: Mock<any, any, any> = ...

Returns the MapCanvasProjection object associated with this OverlayView. The projection is not initialized until onAdd is called by the API.

-
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both +

notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.

-
onAdd: Mock<any, any, any> = ...

Implement this method to initialize the overlay DOM elements. This method +

onAdd: Mock<any, any, any> = ...

Implement this method to initialize the overlay DOM elements. This method is called once after setMap() is called with a valid map. At this point, panes and projection will have been initialized.

-
onRemove: Mock<any, any, any> = ...

Implement this method to remove your elements from the DOM. This method +

onRemove: Mock<any, any, any> = ...

Implement this method to remove your elements from the DOM. This method is called once following a call to setMap(null).

-
set: Mock<any, any, any> = ...

Sets a value.

-
setMap: Mock<any, any, any> = ...

Adds the overlay to the map or panorama.

+
set: Mock<any, any, any> = ...

Sets a value.

+
setMap: Mock<any, any, any> = ...

Adds the overlay to the map or panorama.

The map or panorama. If null, the layer will be removed.

-
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

-
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current +

setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

+
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.

-
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

-
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
+
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

+
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
diff --git a/classes/PinElement.html b/classes/PinElement.html index 95182717..f18b9dc1 100644 --- a/classes/PinElement.html +++ b/classes/PinElement.html @@ -1,4 +1,4 @@ -PinElement | @googlemaps/jest-mocks

Hierarchy

  • HTMLElement
    • PinElement

Implements

  • PinElement

Constructors

constructor +PinElement | @googlemaps/jest-mocks

Hierarchy

  • HTMLElement
    • PinElement

Implements

  • PinElement

Constructors

Properties

Constructors

Properties

addListener: Mock<any, any, any> = ...
background?: string

See google.maps.marker.PinElementOptions.background.

-
borderColor?: string

See google.maps.marker.PinElementOptions.borderColor.

-
element: HTMLElement

This field is read-only. The DOM Element backing the view.

-
glyph?: string | Element | URL

See google.maps.marker.PinElementOptions.glyph.

-
glyphColor?: string

See google.maps.marker.PinElementOptions.glyphColor.

-
scale?: number

See google.maps.marker.PinElementOptions.scale.

-
+

Constructors

Properties

addListener: Mock<any, any, any> = ...
background?: string

See google.maps.marker.PinElementOptions.background.

+
borderColor?: string

See google.maps.marker.PinElementOptions.borderColor.

+
element: HTMLElement

This field is read-only. The DOM Element backing the view.

+
glyph?: string | Element | URL

See google.maps.marker.PinElementOptions.glyph.

+
glyphColor?: string

See google.maps.marker.PinElementOptions.glyphColor.

+
scale?: number

See google.maps.marker.PinElementOptions.scale.

+
diff --git a/classes/PlacesService.html b/classes/PlacesService.html index 8a8fcdf2..17ade47f 100644 --- a/classes/PlacesService.html +++ b/classes/PlacesService.html @@ -1,10 +1,10 @@ -PlacesService | @googlemaps/jest-mocks

Implements

  • PlacesService

Constructors

constructor +PlacesService | @googlemaps/jest-mocks

Implements

  • PlacesService

Constructors

Properties

findPlaceFromPhoneNumber: Mock<any, any, any> = ...

Retrieves a list of places based on a phone number. In most cases there +

Constructors

Properties

findPlaceFromPhoneNumber: Mock<any, any, any> = ...

Retrieves a list of places based on a phone number. In most cases there should be just one item in the result list, however if the request is ambiguous more than one result may be returned. The google.maps.places.PlaceResults passed to the callback are subsets of a full google.maps.places.PlaceResult. Your app can get a more @@ -12,7 +12,7 @@ calling google.maps.places.PlacesService.getDetails and passing the google.maps.places.PlaceResult.place_id for the desired place.

-
findPlaceFromQuery: Mock<any, any, any> = ...

Retrieves a list of places based on a query string. In most cases there +

findPlaceFromQuery: Mock<any, any, any> = ...

Retrieves a list of places based on a query string. In most cases there should be just one item in the result list, however if the request is ambiguous more than one result may be returned. The google.maps.places.PlaceResults passed to the callback are subsets of a full google.maps.places.PlaceResult. Your app can get a more @@ -20,9 +20,9 @@ calling google.maps.places.PlacesService.getDetails and passing the google.maps.places.PlaceResult.place_id for the desired place.

-
getDetails: Mock<any, any, any> = ...

Retrieves details about the place identified by the given +

getDetails: Mock<any, any, any> = ...

Retrieves details about the place identified by the given placeId.

-
nearbySearch: Mock<any, any, any> = ...

Retrieves a list of places near a particular location, based on keyword +

nearbySearch: Mock<any, any, any> = ...

Retrieves a list of places near a particular location, based on keyword or type. Location must always be specified, either by passing a LatLngBounds, or location and radius parameters. The google.maps.places.PlaceResults passed to the callback are subsets of @@ -34,7 +34,7 @@ The google.maps.places.PlaceSearchPagination object can be used to fetch additional pages of results (null if this is the last page of results or if there is only one page of results).

-
textSearch: Mock<any, any, any> = ...

Retrieves a list of places based on a query string (for example, +

textSearch: Mock<any, any, any> = ...

Retrieves a list of places based on a query string (for example, "pizza in New York", or "shoe stores near Ottawa"). Location parameters are optional; when the location is specified, results are only biased toward nearby results rather than restricted to places @@ -44,4 +44,4 @@ PlaceSearchPagination object can be used to fetch additional pages of results (null if this is the last page of results or if there is only one page of results).

-
+
diff --git a/classes/Point.html b/classes/Point.html index 0c68d86f..7e2df4fe 100644 --- a/classes/Point.html +++ b/classes/Point.html @@ -9,13 +9,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

-

Implements

Constructors

Implements

  • Point

Constructors

Properties

Methods

Constructors

Properties

toString: Mock<any, any, any> = ...

Returns a string representation of this Point.

-
x: number

The X coordinate

-
y: number

The Y coordinate

-

Methods

+

Constructors

Properties

toString: Mock<any, any, any> = ...

Returns a string representation of this Point.

+
x: number

The X coordinate

+
y: number

The Y coordinate

+

Methods

diff --git a/classes/Polygon.html b/classes/Polygon.html index fbbd9211..812ec589 100644 --- a/classes/Polygon.html +++ b/classes/Polygon.html @@ -1,4 +1,4 @@ -Polygon | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • Polygon

Constructors

constructor +Polygon | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • Polygon

Constructors

Properties

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an +

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an identifier for this listener that can be used with google.maps.event.removeListener.

-
bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

-
changed: Mock<any, any, any> = ...
get: Mock<any, any, any> = ...

Gets a value.

-
getDraggable: Mock<any, any, any> = ...

Returns whether this shape can be dragged by the user.

-
getEditable: Mock<any, any, any> = ...

Returns whether this shape can be edited by the user.

-
getMap: Mock<any, any, any> = ...

Returns the map on which this shape is attached.

-
getPath: Mock<any, any, any> = ...

Retrieves the first path.

-
getPaths: Mock<any, any, any> = ...

Retrieves the paths for this polygon.

-
getVisible: Mock<any, any, any> = ...

Returns whether this poly is visible on the map.

-
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both +

bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

+
changed: Mock<any, any, any> = ...
get: Mock<any, any, any> = ...

Gets a value.

+
getDraggable: Mock<any, any, any> = ...

Returns whether this shape can be dragged by the user.

+
getEditable: Mock<any, any, any> = ...

Returns whether this shape can be edited by the user.

+
getMap: Mock<any, any, any> = ...

Returns the map on which this shape is attached.

+
getPath: Mock<any, any, any> = ...

Retrieves the first path.

+
getPaths: Mock<any, any, any> = ...

Retrieves the paths for this polygon.

+
getVisible: Mock<any, any, any> = ...

Returns whether this poly is visible on the map.

+
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.

-
set: Mock<any, any, any> = ...

Sets a value.

-
setDraggable: Mock<any, any, any> = ...

If set to true, the user can drag this shape over the map. +

set: Mock<any, any, any> = ...

Sets a value.

+
setDraggable: Mock<any, any, any> = ...

If set to true, the user can drag this shape over the map. The geodesic property defines the mode of dragging.

-
setEditable: Mock<any, any, any> = ...

If set to true, the user can edit this shape by dragging the +

setEditable: Mock<any, any, any> = ...

If set to true, the user can edit this shape by dragging the control points shown at the vertices and on each segment.

-
setMap: Mock<any, any, any> = ...

Renders this shape on the specified map. If map is set to +

setMap: Mock<any, any, any> = ...

Renders this shape on the specified map. If map is set to null, the shape will be removed.

-
setOptions: Mock<any, any, any> = ...
setPath: Mock<any, any, any> = ...
setOptions: Mock<any, any, any> = ...
setPath: Mock<any, any, any> = ...

Sets the first path. See PolygonOptions for more details.

-
setPaths: Mock<any, any, any> = ...

Sets the path for this polygon.

-
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

-
setVisible: Mock<any, any, any> = ...

Hides this poly if set to false.

-
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current +

setPaths: Mock<any, any, any> = ...

Sets the path for this polygon.

+
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

+
setVisible: Mock<any, any, any> = ...

Hides this poly if set to false.

+
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.

-
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

-
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
+
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

+
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
diff --git a/classes/Polyline.html b/classes/Polyline.html index a5135a1b..0e56de0f 100644 --- a/classes/Polyline.html +++ b/classes/Polyline.html @@ -1,4 +1,4 @@ -Polyline | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • Polyline

Constructors

constructor +Polyline | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • Polyline

Constructors

Properties

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an +

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an identifier for this listener that can be used with google.maps.event.removeListener.

-
bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

-
changed: Mock<any, any, any> = ...
get: Mock<any, any, any> = ...

Gets a value.

-
getDraggable: Mock<any, any, any> = ...

Returns whether this shape can be dragged by the user.

-
getEditable: Mock<any, any, any> = ...

Returns whether this shape can be edited by the user.

-
getMap: Mock<any, any, any> = ...

Returns the map on which this shape is attached.

-
getPath: Mock<any, any, any> = ...

Retrieves the path.

-
getVisible: Mock<any, any, any> = ...

Returns whether this poly is visible on the map.

-
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both +

bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

+
changed: Mock<any, any, any> = ...
get: Mock<any, any, any> = ...

Gets a value.

+
getDraggable: Mock<any, any, any> = ...

Returns whether this shape can be dragged by the user.

+
getEditable: Mock<any, any, any> = ...

Returns whether this shape can be edited by the user.

+
getMap: Mock<any, any, any> = ...

Returns the map on which this shape is attached.

+
getPath: Mock<any, any, any> = ...

Retrieves the path.

+
getVisible: Mock<any, any, any> = ...

Returns whether this poly is visible on the map.

+
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.

-
set: Mock<any, any, any> = ...

Sets a value.

-
setDraggable: Mock<any, any, any> = ...

If set to true, the user can drag this shape over the map. +

set: Mock<any, any, any> = ...

Sets a value.

+
setDraggable: Mock<any, any, any> = ...

If set to true, the user can drag this shape over the map. The geodesic property defines the mode of dragging.

-
setEditable: Mock<any, any, any> = ...

If set to true, the user can edit this shape by dragging the +

setEditable: Mock<any, any, any> = ...

If set to true, the user can edit this shape by dragging the control points shown at the vertices and on each segment.

-
setMap: Mock<any, any, any> = ...

Renders this shape on the specified map. If map is set to +

setMap: Mock<any, any, any> = ...

Renders this shape on the specified map. If map is set to null, the shape will be removed.

-
setOptions: Mock<any, any, any> = ...
setPath: Mock<any, any, any> = ...
setOptions: Mock<any, any, any> = ...
setPath: Mock<any, any, any> = ...

Sets the path. See PolylineOptions for more details.

-
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

-
setVisible: Mock<any, any, any> = ...

Hides this poly if set to false.

-
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current +

setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

+
setVisible: Mock<any, any, any> = ...

Hides this poly if set to false.

+
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.

-
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

-
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
+
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

+
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
diff --git a/classes/Rectangle.html b/classes/Rectangle.html index 221061ff..e9eef2c9 100644 --- a/classes/Rectangle.html +++ b/classes/Rectangle.html @@ -1,4 +1,4 @@ -Rectangle | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • Rectangle

Constructors

constructor +Rectangle | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • Rectangle

Constructors

Properties

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an +

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an identifier for this listener that can be used with google.maps.event.removeListener.

-
bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

-
changed: Mock<any, any, any> = ...
get: Mock<any, any, any> = ...

Gets a value.

-
getBounds: Mock<any, [], any> = ...

Returns the bounds of this rectangle.

-
getDraggable: Mock<boolean, [], any> = ...

Returns whether this rectangle can be dragged by the user.

-
getEditable: Mock<boolean, [], any> = ...

Returns whether this rectangle can be edited by the user.

-
getMap: Mock<Map, [], any> = ...

Returns the map on which this rectangle is displayed.

-
getVisible: Mock<boolean, [], any> = ...

Returns whether this rectangle is visible on the map.

-
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both +

bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

+
changed: Mock<any, any, any> = ...
get: Mock<any, any, any> = ...

Gets a value.

+
getBounds: Mock<any, [], any> = ...

Returns the bounds of this rectangle.

+
getDraggable: Mock<boolean, [], any> = ...

Returns whether this rectangle can be dragged by the user.

+
getEditable: Mock<boolean, [], any> = ...

Returns whether this rectangle can be edited by the user.

+
getMap: Mock<Map, [], any> = ...

Returns the map on which this rectangle is displayed.

+
getVisible: Mock<boolean, [], any> = ...

Returns whether this rectangle is visible on the map.

+
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.

-
set: Mock<any, any, any> = ...

Sets a value.

-
setBounds: Mock<void, [bounds: LatLngBounds | LatLngBoundsLiteral], any> = ...

Sets the bounds of this rectangle.

-
setDraggable: Mock<void, [draggable: boolean], any> = ...

If set to true, the user can drag this rectangle over the +

set: Mock<any, any, any> = ...

Sets a value.

+
setBounds: Mock<void, [bounds: LatLngBounds | LatLngBoundsLiteral], any> = ...

Sets the bounds of this rectangle.

+
setDraggable: Mock<void, [draggable: boolean], any> = ...

If set to true, the user can drag this rectangle over the map.

-
setEditable: Mock<void, [editable: boolean], any> = ...

If set to true, the user can edit this rectangle by dragging +

setEditable: Mock<void, [editable: boolean], any> = ...

If set to true, the user can edit this rectangle by dragging the control points shown at the corners and on each edge.

-
setMap: Mock<void, [map: Map], any> = ...

Renders the rectangle on the specified map. If map is set to +

setMap: Mock<void, [map: Map], any> = ...

Renders the rectangle on the specified map. If map is set to null, the rectangle will be removed.

-
setOptions: Mock<void, [options: RectangleOptions], any> = ...
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

-
setVisible: Mock<void, [visible: boolean], any> = ...

Hides this rectangle if set to false.

-
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current +

setOptions: Mock<void, [options: RectangleOptions], any> = ...
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

+
setVisible: Mock<void, [visible: boolean], any> = ...

Hides this rectangle if set to false.

+
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.

-
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

-
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
+
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

+
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
diff --git a/classes/SearchBox.html b/classes/SearchBox.html index f16930fe..a6775ea3 100644 --- a/classes/SearchBox.html +++ b/classes/SearchBox.html @@ -1,4 +1,4 @@ -SearchBox | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • SearchBox

Constructors

constructor +SearchBox | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • SearchBox

Constructors

Properties

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an +

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an identifier for this listener that can be used with google.maps.event.removeListener.

-
bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

-
changed: Mock<any, any, any> = ...
get: Mock<any, any, any> = ...

Gets a value.

-
getBounds: Mock<any, any, any> = ...

Returns the bounds to which query predictions are biased.

-
getPlaces: Mock<any, any, any> = ...

Returns the query selected by the user to be used with +

bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

+
changed: Mock<any, any, any> = ...
get: Mock<any, any, any> = ...

Gets a value.

+
getBounds: Mock<any, any, any> = ...

Returns the bounds to which query predictions are biased.

+
getPlaces: Mock<any, any, any> = ...

Returns the query selected by the user to be used with places_changed event.

-
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both +

notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.

-
set: Mock<any, any, any> = ...

Sets a value.

-
setBounds: Mock<any, any, any> = ...

Sets the region to use for biasing query predictions. Results will only +

set: Mock<any, any, any> = ...

Sets a value.

+
setBounds: Mock<any, any, any> = ...

Sets the region to use for biasing query predictions. Results will only be biased towards this area and not be completely restricted to it.

-
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

-
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current +

setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

+
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.

-
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

-
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
+
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

+
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
diff --git a/classes/Size.html b/classes/Size.html index 65df861a..a6c25cdd 100644 --- a/classes/Size.html +++ b/classes/Size.html @@ -9,13 +9,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

-

Implements

  • Size

Constructors

Implements

  • Size

Constructors

Properties

Methods

Constructors

  • Parameters

    • width: number
    • height: number
    • OptionalwidthUnit: string
    • OptionalheightUnit: string

    Returns Size

Properties

height: number

The height along the y-axis, in pixels.

-
toString: Mock<any, any, any> = ...

Returns a string representation of this Size.

-
width: number

The width along the x-axis, in pixels.

-

Methods

  • Compares two Sizes.

    -

    Parameters

    Returns boolean

+

Constructors

  • Parameters

    • width: number
    • height: number
    • OptionalwidthUnit: string
    • OptionalheightUnit: string

    Returns Size

Properties

height: number

The height along the y-axis, in pixels.

+
toString: Mock<any, any, any> = ...

Returns a string representation of this Size.

+
width: number

The width along the x-axis, in pixels.

+

Methods

  • Compares two Sizes.

    +

    Parameters

    Returns boolean

diff --git a/classes/StreetViewCoverageLayer.html b/classes/StreetViewCoverageLayer.html index b5ce3cc5..f277ee43 100644 --- a/classes/StreetViewCoverageLayer.html +++ b/classes/StreetViewCoverageLayer.html @@ -1,4 +1,4 @@ -StreetViewCoverageLayer | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • StreetViewCoverageLayer

Constructors

constructor +StreetViewCoverageLayer | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • StreetViewCoverageLayer

Constructors

Properties

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an +

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an identifier for this listener that can be used with google.maps.event.removeListener.

-
bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

-
changed: Mock<any, any, any> = ...
get: Mock<any, any, any> = ...

Gets a value.

-
getMap: Mock<any, any, any> = ...

Returns the map on which this layer is displayed.

-
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both +

bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

+
changed: Mock<any, any, any> = ...
get: Mock<any, any, any> = ...

Gets a value.

+
getMap: Mock<any, any, any> = ...

Returns the map on which this layer is displayed.

+
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.

-
set: Mock<any, any, any> = ...

Sets a value.

-
setMap: Mock<any, any, any> = ...

Renders the layer on the specified map. If the map is set to null, the +

set: Mock<any, any, any> = ...

Sets a value.

+
setMap: Mock<any, any, any> = ...

Renders the layer on the specified map. If the map is set to null, the layer will be removed.

-
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

-
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current +

setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

+
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.

-
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

-
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
+
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

+
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
diff --git a/classes/StreetViewPanorama.html b/classes/StreetViewPanorama.html index 5af49623..3c2d905e 100644 --- a/classes/StreetViewPanorama.html +++ b/classes/StreetViewPanorama.html @@ -1,4 +1,4 @@ -StreetViewPanorama | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • StreetViewPanorama

Constructors

constructor +StreetViewPanorama | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • StreetViewPanorama

Constructors

Properties

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an +

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an identifier for this listener that can be used with google.maps.event.removeListener.

-
bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

-
changed: Mock<any, any, any> = ...
controls: MVCArray<HTMLElement>[] = []

Additional controls to attach to the panorama. To add a control to the +

bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

+
changed: Mock<any, any, any> = ...
controls: MVCArray<HTMLElement>[] = []

Additional controls to attach to the panorama. To add a control to the panorama, add the control's <div> to the MVCArray corresponding to the google.maps.ControlPosition where it should be rendered.

-
focus: Mock<any, any, any> = ...

Sets focus on this StreetViewPanorama. You may wish to +

focus: Mock<any, any, any> = ...

Sets focus on this StreetViewPanorama. You may wish to consider using this method along with a visible_changed event to make sure that StreetViewPanorama is visible before setting focus on it. A StreetViewPanorama that is not visible cannot be focused.

-
get: Mock<any, any, any> = ...

Gets a value.

-
getLinks: Mock<any, any, any> = ...

Returns the set of navigation links for the Street View panorama.

-
getLocation: Mock<any, any, any> = ...

Returns the StreetViewLocation of the current panorama.

-
getMotionTracking: Mock<any, any, any> = ...

Returns the state of motion tracker. If true when the user +

get: Mock<any, any, any> = ...

Gets a value.

+
getLinks: Mock<any, any, any> = ...

Returns the set of navigation links for the Street View panorama.

+
getLocation: Mock<any, any, any> = ...

Returns the StreetViewLocation of the current panorama.

+
getMotionTracking: Mock<any, any, any> = ...

Returns the state of motion tracker. If true when the user physically moves the device and the browser supports it, the Street View Panorama tracks the physical movements.

-
getPano: Mock<any, any, any> = ...

Returns the current panorama ID for the Street View panorama. This id is +

getPano: Mock<any, any, any> = ...

Returns the current panorama ID for the Street View panorama. This id is stable within the browser's current session only.

-
getPhotographerPov: Mock<any, any, any> = ...

Returns the heading and pitch of the photographer when this panorama was +

getPhotographerPov: Mock<any, any, any> = ...

Returns the heading and pitch of the photographer when this panorama was taken. For Street View panoramas on the road, this also reveals in which direction the car was travelling. This data is available after the pano_changed event.

-
getPosition: Mock<any, any, any> = ...

Returns the current LatLng position for the Street View +

getPosition: Mock<any, any, any> = ...

Returns the current LatLng position for the Street View panorama.

-
getPov: Mock<any, any, any> = ...

Returns the current point of view for the Street View panorama.

-
getStatus: Mock<any, any, any> = ...

Returns the status of the panorama on completion of the +

getPov: Mock<any, any, any> = ...

Returns the current point of view for the Street View panorama.

+
getStatus: Mock<any, any, any> = ...

Returns the status of the panorama on completion of the setPosition() or setPano() request.

-
getVisible: Mock<any, any, any> = ...

Returns true if the panorama is visible. It does not specify +

getVisible: Mock<any, any, any> = ...

Returns true if the panorama is visible. It does not specify whether Street View imagery is available at the specified position.

-
getZoom: Mock<any, any, any> = ...

Returns the zoom level of the panorama. Fully zoomed-out is level 0, +

getZoom: Mock<any, any, any> = ...

Returns the zoom level of the panorama. Fully zoomed-out is level 0, where the field of view is 180 degrees. Zooming in increases the zoom level.

-
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both +

notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.

-
registerPanoProvider: Mock<any, any, any> = ...

Set the custom panorama provider called on pano change to load custom +

registerPanoProvider: Mock<any, any, any> = ...

Set the custom panorama provider called on pano change to load custom panoramas.

-
set: Mock<any, any, any> = ...

Sets a value.

-
setLinks: Mock<any, any, any> = ...

Sets the set of navigation links for the Street View panorama.

-
setMotionTracking: Mock<any, any, any> = ...

Sets the state of motion tracker. If true when the user +

set: Mock<any, any, any> = ...

Sets a value.

+
setLinks: Mock<any, any, any> = ...

Sets the set of navigation links for the Street View panorama.

+
setMotionTracking: Mock<any, any, any> = ...

Sets the state of motion tracker. If true when the user physically moves the device and the browser supports it, the Street View Panorama tracks the physical movements.

-
setOptions: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

-
setPano: Mock<any, any, any> = ...

Sets the current panorama ID for the Street View panorama.

-
setPosition: Mock<any, any, any> = ...

Sets the current LatLng position for the Street View +

setOptions: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

+
setPano: Mock<any, any, any> = ...

Sets the current panorama ID for the Street View panorama.

+
setPosition: Mock<any, any, any> = ...

Sets the current LatLng position for the Street View panorama.

-
setPov: Mock<any, any, any> = ...

Sets the point of view for the Street View panorama.

-
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

-
setVisible: Mock<any, any, any> = ...

Sets to true to make the panorama visible. If set to +

setPov: Mock<any, any, any> = ...

Sets the point of view for the Street View panorama.

+
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

+
setVisible: Mock<any, any, any> = ...

Sets to true to make the panorama visible. If set to false, the panorama will be hidden whether it is embedded in the map or in its own <div>.

-
setZoom: Mock<any, any, any> = ...

Sets the zoom level of the panorama. Fully zoomed-out is level 0, where +

setZoom: Mock<any, any, any> = ...

Sets the zoom level of the panorama. Fully zoomed-out is level 0, where the field of view is 180 degrees. Zooming in increases the zoom level.

-
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current +

unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.

-
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

-
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
+
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

+
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
diff --git a/classes/StreetViewService.html b/classes/StreetViewService.html index 7ead1152..8dd4b1eb 100644 --- a/classes/StreetViewService.html +++ b/classes/StreetViewService.html @@ -1,6 +1,6 @@ -StreetViewService | @googlemaps/jest-mocks

Implements

  • StreetViewService

Constructors

constructor +StreetViewService | @googlemaps/jest-mocks

Implements

  • StreetViewService

Constructors

Properties

Constructors

Properties

getPanorama: Mock<any, any, any> = ...

Retrieves the StreetViewPanoramaData for a panorama that +

Constructors

Properties

getPanorama: Mock<any, any, any> = ...

Retrieves the StreetViewPanoramaData for a panorama that matches the supplied Street View query request. The StreetViewPanoramaData is passed to the provided callback.

-
+
diff --git a/classes/VisibleRegion.html b/classes/VisibleRegion.html index 5e2a4628..c1e6164c 100644 --- a/classes/VisibleRegion.html +++ b/classes/VisibleRegion.html @@ -1,4 +1,4 @@ -VisibleRegion | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • VisibleRegion

Constructors

constructor +VisibleRegion | @googlemaps/jest-mocks

Hierarchy (view full)

Implements

  • VisibleRegion

Constructors

Properties

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an +

Constructors

Properties

addListener: Mock<any, any, any> = ...

Adds the given listener function to the given event name. Returns an identifier for this listener that can be used with google.maps.event.removeListener.

-
bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

-
changed: Mock<any, any, any> = ...
farLeft: LatLng
farRight: LatLng
get: Mock<any, any, any> = ...

Gets a value.

-
latLngBounds: LatLngBounds

The smallest bounding box that includes the visible region.

-
nearLeft: LatLng
nearRight: LatLng
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both +

bindTo: Mock<any, any, any> = ...

Binds a View to a Model.

+
changed: Mock<any, any, any> = ...
farLeft: LatLng
farRight: LatLng
get: Mock<any, any, any> = ...

Gets a value.

+
latLngBounds: LatLngBounds

The smallest bounding box that includes the visible region.

+
nearLeft: LatLng
nearRight: LatLng
notify: Mock<any, any, any> = ...

Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.

-
set: Mock<any, any, any> = ...

Sets a value.

-
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

-
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current +

set: Mock<any, any, any> = ...

Sets a value.

+
setValues: Mock<any, any, any> = ...

Sets a collection of key-value pairs.

+
unbind: Mock<any, any, any> = ...

Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.

-
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

-
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
+
unbindAll: Mock<any, any, any> = ...

Removes all bindings.

+
_mockClasses: typeof MVCObject[] = []
mockInstances: MVCObject[] = []
diff --git a/classes/event.html b/classes/event.html index ee72d79b..7435be1c 100644 --- a/classes/event.html +++ b/classes/event.html @@ -1,4 +1,4 @@ -event | @googlemaps/jest-mocks

Implements

  • event

Constructors

constructor +event | @googlemaps/jest-mocks

Implements

  • event

Constructors

Properties

addDomListener addDomListenerOnce addListener @@ -16,24 +16,24 @@ href="https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener">addEventListener() method instead. The feature will continue to work and there is no plan to decommission it.

-
addDomListenerOnce: ((instance: object, eventName: string, handler: Function, capture?: boolean) => MapsEventListener) = ...

Wrapper around addDomListener that removes the listener after the first +

addDomListenerOnce: ((instance: object, eventName: string, handler: Function, capture?: boolean) => MapsEventListener) = ...

Wrapper around addDomListener that removes the listener after the first event.

google.maps.event.addDomListenerOnce() is deprecated, use the standard addEventListener() method instead. The feature will continue to work and there is no plan to decommission it.

-
addListener: ((instance: object, eventName: string, handler: Function) => MapsEventListener) = ...

Adds the given listener function to the given event name for the given +

addListener: ((instance: object, eventName: string, handler: Function) => MapsEventListener) = ...

Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().

-
addListenerOnce: ((instance: object, eventName: string, handler: Function) => MapsEventListener) = ...

Like addListener, but the handler removes itself after handling the first +

addListenerOnce: ((instance: object, eventName: string, handler: Function) => MapsEventListener) = ...

Like addListener, but the handler removes itself after handling the first event.

-
clearInstanceListeners: ((instance: object) => void) = ...

Removes all listeners for all events for the given instance.

-
clearListeners: ((instance: object, eventName: string) => void) = ...

Removes all listeners for the given event for the given instance.

-
hasListeners: ((instance: object, eventName: string) => boolean) = ...

Returns if there are listeners for the given event on the given instance. +

clearInstanceListeners: ((instance: object) => void) = ...

Removes all listeners for all events for the given instance.

+
clearListeners: ((instance: object, eventName: string) => void) = ...

Removes all listeners for the given event for the given instance.

+
hasListeners: ((instance: object, eventName: string) => boolean) = ...

Returns if there are listeners for the given event on the given instance. Can be used to save the computation of expensive event details.

-
removeListener: ((listener: MapsEventListener) => void) = ...

Removes the given listener, which should have been returned by +

removeListener: ((listener: MapsEventListener) => void) = ...

Removes the given listener, which should have been returned by addListener above. Equivalent to calling listener.remove().

-
trigger: ((instance: object, eventName: string, ...eventArgs: any[]) => void) = ...

Triggers the given event. All arguments after eventName are passed as +

trigger: ((instance: object, eventName: string, ...eventArgs: any[]) => void) = ...

Triggers the given event. All arguments after eventName are passed as arguments to the listeners.

-
+
diff --git a/functions/initialize.html b/functions/initialize.html index 87bd32aa..e36a5825 100644 --- a/functions/initialize.html +++ b/functions/initialize.html @@ -1 +1 @@ -initialize | @googlemaps/jest-mocks
+initialize | @googlemaps/jest-mocks
diff --git a/variables/importLibrary.html b/variables/importLibrary.html index 80a5fd75..b7cee27d 100644 --- a/variables/importLibrary.html +++ b/variables/importLibrary.html @@ -1 +1 @@ -importLibrary | @googlemaps/jest-mocks

Variable importLibraryConst

importLibrary: Mock<Promise<
    | CoreLibrary
    | MapsLibrary
    | PlacesLibrary
    | GeocodingLibrary
    | RoutesLibrary
    | MarkerLibrary
    | GeometryLibrary
    | ElevationLibrary
    | StreetViewLibrary
    | JourneySharingLibrary
    | DrawingLibrary
    | VisualizationLibrary>, [name: string], any> = ...
+importLibrary | @googlemaps/jest-mocks

Variable importLibraryConst

importLibrary: Mock<Promise<
    | CoreLibrary
    | MapsLibrary
    | PlacesLibrary
    | GeocodingLibrary
    | RoutesLibrary
    | MarkerLibrary
    | GeometryLibrary
    | ElevationLibrary
    | StreetViewLibrary
    | JourneySharingLibrary
    | DrawingLibrary
    | VisualizationLibrary>, [name: string], any> = ...
diff --git a/variables/mockInstances.html b/variables/mockInstances.html index 930c8520..34712d19 100644 --- a/variables/mockInstances.html +++ b/variables/mockInstances.html @@ -1 +1 @@ -mockInstances | @googlemaps/jest-mocks

Variable mockInstancesConst

mockInstances: {
    clear: (<T, K>(item: T, ...rest: K) => void);
    clearAll: (() => void);
    get: (<T>(item: T) => InstanceType<T>[]);
} = ...
+mockInstances | @googlemaps/jest-mocks

Variable mockInstancesConst

mockInstances: {
    clear: (<T, K>(item: T, ...rest: K) => void);
    clearAll: (() => void);
    get: (<T>(item: T) => InstanceType<T>[]);
} = ...