Vue Map - markers.location

Specifies the marker location.

Type:

Object

|

String

|

Array<Number>

You can specify the location value in one of the following formats.

  • { lat: 40.749825, lng: -73.987963}
  • "40.749825, -73.987963"
  • [40.749825, -73.987963]
  • "Brooklyn Bridge,New York,NY"

If provider is "osm" and you specify markers[].location as an address string, implement providerConfig.calculateLocation to convert this address to coordinates. If the Map cannot resolve the address, the component displays the marker at {lat: 0, lng: 0}.

lat

The latitude location of the UI component.

Type:

Number

Default Value: 0

lng

The longitude location of the UI component.

Type:

Number

Default Value: 0