Maps API for JavaScript Developer's Guide

H.map.render.RenderingParams

Type Definition Summary

An object containing rendering parameters.

[ For full details, see the Type Definition Details ]

Property Summary

Table 1. Properties
Properties

bounds

The geographical area to render. Note that it is not the same as visible viewport. Specified bounds also include H.Map.Options#margin and optionally an additional margin in case of DOM node rendering for a better rendering experience.

zoom

The zoom level to render the data for.

screenCenter

The coordinates of the screen center in CSS pixels.

priorityCenter

The coordinates relative to the screen center where the rendering has the highest priority. If the layer has to request and/or process data asynchronously, it's recommended to prioritize the rendering close to this center.

projection

The pixel projection to use to project geographical coordinates into screen coordinates and vice versa.

cacheOnly

Indicates whether only cached data should be considered.

size

The size of the area to render.

pixelRatio

The pixelRatio to use for over-sampling in cases of high-resolution displays. See https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio.

Type Definition Description

An object containing rendering parameters.

Property Details

bounds: {H.geo.Rect}

The geographical area to render. Note that it is not the same as visible viewport. Specified bounds also include H.Map.Options#margin and optionally an additional margin in case of DOM node rendering for a better rendering experience.

zoom: {number}

The zoom level to render the data for.

screenCenter: {H.math.Point}

The coordinates of the screen center in CSS pixels.

priorityCenter: {H.math.Point}

The coordinates relative to the screen center where the rendering has the highest priority. If the layer has to request and/or process data asynchronously, it's recommended to prioritize the rendering close to this center.

projection: {H.geo.PixelProjection}

The pixel projection to use to project geographical coordinates into screen coordinates and vice versa.

cacheOnly: {boolean}

Indicates whether only cached data should be considered.

size: {H.math.Size}

The size of the area to render.

pixelRatio: {number}

The pixelRatio to use for over-sampling in cases of high-resolution displays. See https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio.