Viewpoint.withLatLongScale constructor

Viewpoint.withLatLongScale({
  1. required double latitude,
  2. required double longitude,
  3. required double scale,
})

Creates a viewpoint with latitude, longitude, and scale.

The spatial reference for the defined point is WGS84.

Parameters:

  • latitude — The latitude coordinate for the viewpoint. Negative values are south of the equator.
  • longitude — The longitude coordinate for the viewpoint. Negative values are west of the prime meridian.
  • scale — The ratio between a distance on the map and the corresponding distance on the ground.