project method

Point project(
  1. LngLat lnglat
)

Returns a {@link Point} representing pixel coordinates, relative to the map's container, that correspond to the specified geographical location.

@param {LngLatLike} lnglat The geographical location to project. @returns {Point} The {@link Point} corresponding to lnglat, relative to the map's container. @example var coordinate = -122.420679, 37.772537; var point = map.project(coordinate);

Implementation

Point project(LngLat lnglat) =>
    Point.fromJsObject(jsObject.project(lnglat.jsObject));