# Babylon in Mapbox Layer

**URL:** <https://forum.babylonjs.com/t/babylon-in-mapbox-layer/9328>\
**Category:** Questions\
**Created:** [March 19, 2020, 10:58pm UTC](https://forum.babylonjs.com/t/babylon-in-mapbox-layer/9328 "2020-03-19T22:58:05Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![gtsl-2](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/gtsl-2/32/27176_2.png) [@gtsl-2](https://forum.babylonjs.com/u/gtsl-2)\
**Post date:** [September 20, 2022, 8:55am UTC](https://forum.babylonjs.com/t/babylon-in-mapbox-layer/9328/17 "2022-09-20T08:55:07Z")

</div>

I make demo. The camera position is acquired at line 63 (console message), and it seems to be able to recognize the change in camera position.  
I think the problem is, as you say, that billboardMode is not working.

> **[Babylon-mapbox billboard - JSFiddle - Code Playground](https://jsfiddle.net/gtsl2/mrfs9td8/10/)**
>
> Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.

This topic is too long, I want to move 👇

> [@Force to recompute billboard](https://forum.babylonjs.com/t/force-to-recompute-billboard/15886):
>
> In a project I’m working on (mapbox ^^), I only set the projectionMatrix to control my Camera : scene.activeCamera.freezeProjectionMatrix(projectionMatrix); scene.render(true); So billboards does not work because camera.position = (0,0,0) For a specific mesh I can make : let invert = scene.activeCamera.getProjectionMatrix().clone().invert(); scene.activeCamera.position = BABYLON.Vector3.TransformCoordinates(new BABYLON.Vector3(), invert) mesh.lookAt(scene.activeCamera.position) And it works…

---

_[View the full topic](https://forum.babylonjs.com/t/babylon-in-mapbox-layer/9328)._
