map

map.latLngToWorld

latLngToWorld(lat: number, lng: number, mode?: MapMode): object

Convert lat/lng to scene world coordinates using the default coordinate provider (scale=1, raw earth meters — ~6.3M units at the equator).

Phase 2 will switch to the active map's scale when a live map is present.

latnumberLatitude in degrees.
lngnumberLongitude in degrees.
modeMapModeProjection mode. Defaults to the current map mode, or "planar" if no map is active.

Returns: object