Create the PoiRenderer
for the specified MapView.
The {@link THREE.WebGLRenderer} to be rendered to.
The PoiManager to be used.
The ImageCaches to look for loaded images.
Add the icon. Icon will only be added if opacity > 0, otherwise only its space will be allocated.
PoiInfo containing information for rendering the POI icon.
Position on screen (2D):
Object handling the collision checks for screen-aligned 2D boxes.
Box's distance to camera.
Scaling factor to apply to text and icon.
If true
screen space will be allocated for the icon.
Opacity of icon to allow fade in/out.
true
if icon has been actually rendered, false
otherwise.Update the info with the memory footprint caused by objects owned by the PoiRenderer
.
The info object to increment with the values from this PoiRenderer
.
Fill the picking results for the pixel with the given screen coordinate. If multiple PoiInfos are found, the order of the results is unspecified.
Screen coordinate of picking position.
Callback to be called for every picked element.
TextElement with PoiInfo for rendering the POI icon.
TODO! The current zoomLevel level of MapView
True
if the space is not already allocated by another object (text label or POI)
Renders the content of this PoiRenderer
.
Orthographic camera.
The Layer to be rendered.
Reset all batches, removing all content from the PoiBatchRegistry. Called at the beginning of a frame before the POIs are placed.
Update the geometry of all [[PoiBatch]]es. Called before rendering.
Compute screen box for icon. It is required that prepareRender
has been successfully called
before computeScreenBox
may be called.
PoiInfo containing information for rendering the POI icon.
Position on screen (2D).
Scale to apply to icon.
Current zoom level.
Box that will be used to store the result.
The computed screen box for the icon.
Generated using TypeDoc
Manage POI rendering. Uses a PoiBatchRegistry to actually create the geometry that is being rendered.