Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
Fixes #1270. Construct correct Raycaster
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Stichbury <2533428+nzjony@users.noreply.github.com>
  • Loading branch information
nzjony committed Feb 7, 2020
1 parent 42234cc commit bbd350b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion @here/harp-mapview/lib/MapView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import { SimpleTileGeometryManager, TileGeometryManager } from "./geometry/TileG
import { MapViewImageCache } from "./image/MapViewImageCache";
import { MapViewFog } from "./MapViewFog";
import { PickHandler, PickResult } from "./PickHandler";
import { PickingRaycaster } from "./PickingRaycaster";
import { PoiManager } from "./poi/PoiManager";
import { PoiRendererFactory } from "./poi/PoiRendererFactory";
import { PoiTableManager } from "./poi/PoiTableManager";
Expand Down Expand Up @@ -749,7 +750,7 @@ export class MapView extends THREE.EventDispatcher {
private m_enablePolarDataSource: boolean = true;

// gestures
private readonly m_raycaster = new THREE.Raycaster();
private readonly m_raycaster = new PickingRaycaster(this);
private readonly m_plane = new THREE.Plane(new THREE.Vector3(0, 0, 1));
private readonly m_sphere = new THREE.Sphere(undefined, EarthConstants.EQUATORIAL_RADIUS);

Expand Down

0 comments on commit bbd350b

Please sign in to comment.