# Map mode rotate Blink issue

**URL:** <https://community.cesium.com/t/map-mode-rotate-blink-issue/10862>\
**Category:** CesiumJS\
**Created:** [September 9, 2020, 10:39am UTC](https://community.cesium.com/t/map-mode-rotate-blink-issue/10862 "2020-09-09T10:39:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mfgunes](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@mfgunes](https://community.cesium.com/u/mfgunes)\
**Post date:** [September 9, 2020, 10:39am UTC](https://community.cesium.com/t/map-mode-rotate-blink-issue/10862/1 "2020-09-09T10:39:17Z")

</div>

I am trying to focus on an entity(billboard) with trackedEntity and trying to rotate the map mostly according to the entity’s heading orientation on **2d only map**. I don’t use an imagery provider but instead a **Geojson** map added to viewer’s dataSources. I was using the camera’s rotate function, then I saw and tried viewer’s mapMode2D: Cesium.SceneMode.ROTATE option. I could use camera’s setView function with heading orientation now. It helped to rotating part much, but when I use this mode and lock on an entity with trackedEntity, everything starts blinking; map and entities vanish and appear back constantly. After a few function calls it works normally and then after some more, it gets bugged again. It looks like it renders everything again. How can I solve this issue?

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [September 9, 2020, 2:17pm UTC](https://community.cesium.com/t/map-mode-rotate-blink-issue/10862/2 "2020-09-09T14:17:05Z")

</div>

Can you reproduce this issue in a Sandcastle example? See [How to share custom Sandcastle examples](https://community.cesium.com/t/how-to-share-custom-sandcastle-examples/9828)

---

<div class="post-metadata">

**Author:** ![mfgunes](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@mfgunes](https://community.cesium.com/u/mfgunes)\
**Post date:** [September 10, 2020, 4:53am UTC](https://community.cesium.com/t/map-mode-rotate-blink-issue/10862/3 "2020-09-10T04:53:10Z")

</div>

I cannot currently do that since I m working on an offline machine and I use many things like a vector map or billboard entities, and I also don’t have time for that. Is there any other way to rotate the 2d map, like using camera.rotate(…), to rotate map **smoothly** for a better animation? Also when i rotate the map on unit-z axis at the same amount of heading values of a billboard entity, the map doesn’t line up with the entity. I don’t understand why.
