# Help with ground-push-plugin

**URL:** https://community.cesium.com/t/help-with-ground-push-plugin/3520
**Category:** CesiumJS
**Created:** [January 4, 2016, 9:58am UTC](https://community.cesium.com/t/help-with-ground-push-plugin/3520 "2016-01-04T09:58:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Chris\_Wang](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/chris_wang/32/4450_2.png) [@Chris\_Wang](https://community.cesium.com/u/Chris_Wang)
#### Post date: [January 4, 2016, 9:58am UTC](https://community.cesium.com/t/help-with-ground-push-plugin/3520/1 "2016-01-04T09:58:26Z")

</div>

Hello everyone

I’m a student in GIS and no little about computer graphics. Now I’m trying to upgrade the[ground-push-plugin](https://github.com/NICTA/cesium-groundpush-plugin) to the latest Cesium 1.16.

My method is stupid, I change the Cesium 1.2 in lib with Cesium 1.16 and found the function available in cesium 1.2 but not in 1.16 and change them with a similar function in 1.16.

First, I change the Function intersectWith in line 53 to intersection like below :

/\*var tileContainsRectangle =

!Cesium.Rectangle.isEmpty(Cesium.Rectangle.intersectWith(rectangle, that.\_outerRectangle)) ||

!Cesium.Rectangle.isEmpty(Cesium.Rectangle.intersectWith(rectangle, that.\_innerRectangle));

\*/

var tileContainsRectangle =

!(Cesium.Rectangle.intersection(rectangle, that.\_outerRectangle)==undefined) ||

!(Cesium.Rectangle.intersection(rectangle, that.\_innerRectangle)==undefined);

Then I met another error : Cannot read property ‘indexOf’ of undefined

After debugging the code, I found this.baseVertexShaderString in line 94 is empty in my changed version. And It does have value in the original version.

Can I get some help about how to upgrade the code into the latest Cesium version? Can my method succeed?

Thank you.

Chris

---

<div class="post-metadata">

### Author: ![Chris\_Wang](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/chris_wang/32/4450_2.png) [@Chris\_Wang](https://community.cesium.com/u/Chris_Wang)
#### Post date: [January 18, 2016, 2:34am UTC](https://community.cesium.com/t/help-with-ground-push-plugin/3520/2 "2016-01-18T02:34:56Z")

</div>

Is it possible to upgrade the[ground-push-plugin](https://github.com/NICTA/cesium-groundpush-plugin) to the latest Cesium or at least Cesium 1.12 ?

Hope anyone can give me some hint

Thanks

在 2016年1月4日星期一 UTC+8下午5:58:26，Chris Wang写道：
