# Update map on removeProperty from entity

**URL:** <https://community.cesium.com/t/update-map-on-removeproperty-from-entity/4072>\
**Category:** CesiumJS\
**Created:** [May 3, 2016, 4:14am UTC](https://community.cesium.com/t/update-map-on-removeproperty-from-entity/4072 "2016-05-03T04:14:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rwinsemius](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@rwinsemius](https://community.cesium.com/u/rwinsemius)\
**Post date:** [May 3, 2016, 4:14am UTC](https://community.cesium.com/t/update-map-on-removeproperty-from-entity/4072/1 "2016-05-03T04:14:33Z")

</div>

Gday all,

So I'm trying to work out if I'm doing something wrong....

I have an entity (essentially a point), and Im successfully adding an ellipse to the entity, when I do so the map automatically updates to reflect the added ellipse.

However when I try to remove the ellipse using entity.removeProperty('\_ellipse')  
the map does not update...

Is this a bug or is there a way to force the redraw of the entity?

Thanks,  
Rowan

---

<div class="post-metadata">

**Author:** ![hannah](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hannah/32/4509_2.png) [@hannah](https://community.cesium.com/u/hannah)\
**Post date:** [May 3, 2016, 3:45pm UTC](https://community.cesium.com/t/update-map-on-removeproperty-from-entity/4072/2 "2016-05-03T15:45:15Z")

</div>

Hello Rowan,

This should work for removing your ellipse:

entity.ellipse = undefined;

``

Best,

Hannah

---

<div class="post-metadata">

**Author:** ![rwinsemius](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@rwinsemius](https://community.cesium.com/u/rwinsemius)\
**Post date:** [May 4, 2016, 12:11am UTC](https://community.cesium.com/t/update-map-on-removeproperty-from-entity/4072/3 "2016-05-04T00:11:03Z")

</div>

Thanks Hannah, that did the job!

I wonder if removeProperty() should set the variable to undefined? I'd be happy to put in a pull request if you thought it was worthwhile...

---

<div class="post-metadata">

**Author:** ![hannah](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hannah/32/4509_2.png) [@hannah](https://community.cesium.com/u/hannah)\
**Post date:** [May 4, 2016, 12:18pm UTC](https://community.cesium.com/t/update-map-on-removeproperty-from-entity/4072/4 "2016-05-04T12:18:15Z")

</div>

I think removeProperty is meant for removing a custom property added with addProperty. An ellipse is a default property so that’s why it didn’t work.

Best,

Hannah
