Input type representing a geographic point location.
Accepts various formats for specifying a point location:
Position
[longitude, latitude]
Point
Feature<Point>
Note: Coordinates follow GeoJSON standard with longitude first, then latitude: [lng, lat]
[lng, lat]
// As Position arrayconst pos1: HasLngLat = [4.9041, 52.3676];// As Point geometryconst pos2: HasLngLat = { type: 'Point', coordinates: [4.9041, 52.3676] };// As Featureconst pos3: HasLngLat = { type: 'Feature', geometry: { type: 'Point', coordinates: [4.9041, 52.3676] }, properties: {}}; Copy
// As Position arrayconst pos1: HasLngLat = [4.9041, 52.3676];// As Point geometryconst pos2: HasLngLat = { type: 'Point', coordinates: [4.9041, 52.3676] };// As Featureconst pos3: HasLngLat = { type: 'Feature', geometry: { type: 'Point', coordinates: [4.9041, 52.3676] }, properties: {}};
Input type representing a geographic point location.
Accepts various formats for specifying a point location:
Position: Raw coordinate array[longitude, latitude]Point: GeoJSON Point geometryFeature<Point>: GeoJSON Feature containing a Point geometry