# Can't zoom after adding bitmap pointshape

**URL:** <https://community.thinkgeo.com/t/cant-zoom-after-adding-bitmap-pointshape/8985>\
**Category:** WinForms\
**Created:** [March 5, 2018, 2:49pm UTC](https://community.thinkgeo.com/t/cant-zoom-after-adding-bitmap-pointshape/8985 "2018-03-05T14:49:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan\_Weaver](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f8ce5/32.png) [@Dan\_Weaver](https://community.thinkgeo.com/u/Dan_Weaver)\
**Post date:** [March 5, 2018, 2:49pm UTC](https://community.thinkgeo.com/t/cant-zoom-after-adding-bitmap-pointshape/8985/1 "2018-03-05T14:49:33Z")

</div>

I add bitmaps as pointshapes with a rotation angle by doing what is suggested in this post: [Rotated Points and Text](https://community.thinkgeo.com/t/rotated-points-and-text/401/4)

The bitmap and rotation of that bitmap show up on the map fine, but for some reason the zoom in/out no longer works. Panning works fine, but zoom in/out seem to be disabled. I’m not getting any exceptions thrown. It’s only AFTER I add a bitmap.

Any ideas what could cause this?

Thanks.

Update: so it’s not just the bitmap, it’s when I add any feature to the layer.

This is an InMemoryFeatureLayer that I’m adding features to. The zoom works fine when adding ponits/shapes/etc. to the trackshapelayer.

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [March 6, 2018, 5:28am UTC](https://community.thinkgeo.com/t/cant-zoom-after-adding-bitmap-pointshape/8985/2 "2018-03-06T05:28:03Z")

</div>

Hi Dan,

Please try to rebuild index after you modify the feature.

If that don’t works, could you please upload a sample so we can look into it?

Regards,

Ethan

---

<div class="post-metadata">

**Author:** ![Dan\_Weaver](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f8ce5/32.png) [@Dan\_Weaver](https://community.thinkgeo.com/u/Dan_Weaver)\
**Post date:** [March 6, 2018, 12:37pm UTC](https://community.thinkgeo.com/t/cant-zoom-after-adding-bitmap-pointshape/8985/3 "2018-03-06T12:37:03Z")

</div>

What would I rebuild the index of?

Edit: Restarted my comp and now it’s working fine. Weird.

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [March 7, 2018, 2:13am UTC](https://community.thinkgeo.com/t/cant-zoom-after-adding-bitmap-pointshape/8985/4 "2018-03-07T02:13:19Z")

</div>

Hi Dan,

That’s strange to fix it by restart your computer, if you met any update later please let us know.

Regards,

Ethan
