Interaction Tools

Orthographic Selection

What this shows

Select map objects from a plan view without perspective distortion.

This example needs a Canvas2D-capable browser.

Loading scene…

Loading scene…

Key API excerpt

import * as EASEL from "@xsyetopz/easel";

const camera = new EASEL.OrthographicCamera({ left: -6, right: 6, top: 3.5, bottom: -3.5 });

raycaster.setFromCamera(pointer, camera);
const hit = raycaster.intersectObjects(cubes, false)[0];