Skip to content

Function: locationPreviewLayout() ​

ts
function locationPreviewLayout(location, maxWidth?): object;

Defined in: location.ts:238

Fit the captured frame without cropping; keep the sender's tile level and map labels.

Parameters ​

ParameterTypeDefault value
locationSharedMapLocationundefined
maxWidth?numberDEFAULT_MAP_WIDTH

Returns ​

object

NameTypeDefined in
heightnumberlocation.ts:274
markerobjectlocation.ts:274
marker.visiblebooleanlocation.ts:274
marker.xnumberlocation.ts:274
marker.ynumberlocation.ts:274
tilesobject[]location.ts:274
widthnumberlocation.ts:274

Released under the GNU Affero General Public License v3.0.