MapMercatorProjection.fromMapPointToPixel Method

Determine the Top-Left pixel of the viewport given the longitude and latitude of the point along with the width and height of the viewport.
 

Parameters

x

Type: Number
Longitude of point.
y

Type: Number
Latitude of point.
width

Type: Number
Width of the viewport.
height

Type: Number
Height of the viewport.