# How to drape a geojson datasource in STK World Terrain?

**URL:** <https://community.cesium.com/t/how-to-drape-a-geojson-datasource-in-stk-world-terrain/3934>\
**Category:** CesiumJS\
**Created:** [March 30, 2016, 2:19pm UTC](https://community.cesium.com/t/how-to-drape-a-geojson-datasource-in-stk-world-terrain/3934 "2016-03-30T14:19:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tiziana\_Ferro](https://avatars.discourse-cdn.com/v4/letter/t/bbce88/32.png) [@Tiziana\_Ferro](https://community.cesium.com/u/Tiziana_Ferro)\
**Post date:** [March 30, 2016, 2:19pm UTC](https://community.cesium.com/t/how-to-drape-a-geojson-datasource-in-stk-world-terrain/3934/1 "2016-03-30T14:19:50Z")

</div>

Can you suggest me how to drape a geojson datasource over the terrain in the Scene 3d using STK World Terrain map?

---

<div class="post-metadata">

**Author:** ![Tiziana\_Ferro](https://avatars.discourse-cdn.com/v4/letter/t/bbce88/32.png) [@Tiziana\_Ferro](https://community.cesium.com/u/Tiziana_Ferro)\
**Post date:** [March 30, 2016, 2:26pm UTC](https://community.cesium.com/t/how-to-drape-a-geojson-datasource-in-stk-world-terrain/3934/2 "2016-03-30T14:26:40Z")

</div>

This is my code:

//Creo il viewer con i widget di cesium

var viewer = new Cesium.Viewer(‘map2’,{

sceneMode : Cesium.SceneMode.SCENE3D

});

// Create scene without anisotropic texture filtering

var scene = viewer.scene;

var positions = ; // xy position array

var cesiumTerrainProvider = new Cesium.CesiumTerrainProvider({

url : ‘[//assets.agi.com/stk-terrain/world](https://assets.agi.com/stk-terrain/world)’,

//requestVertexNormals : true,

//requestWaterMask : true

});

viewer.terrainProvider = cesiumTerrainProvider;

//test drap rectangle

var rectangleInstance = new Cesium.GeometryInstance({

geometry : new Cesium.RectangleGeometry({

rectangle : Cesium.Rectangle.fromDegrees(-140.0, 30.0, -100.0, 40.0)

}),

id : ‘rectangle’,

attributes : {

color : new Cesium.ColorGeometryInstanceAttribute(0.0, 1.0, 1.0, 0.5)

}

});

scene.primitives.add(new Cesium.GroundPrimitive({

geometryInstance : rectangleInstance

}));

//can’t drap geojson polygon the feature slide

viewer.dataSources.add(Cesium.GeoJsonDataSource.load(’./data/limiti\_regione.json’, {

stroke: Cesium.Color.HOTPINK,

fill: Cesium.Color.PINK.withAlpha(0.2),

strokeWidth: 10,

dashArray : “10, 8”,

perPositionHeight: true

}

));

---

<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:** [March 30, 2016, 2:38pm UTC](https://community.cesium.com/t/how-to-drape-a-geojson-datasource-in-stk-world-terrain/3934/3 "2016-03-30T14:38:21Z")

</div>

Hello,

We don’t support this feature yet, but it’s something we plan on adding. Tom did some work towards implementing it in this branch: [https://github.com/AnalyticalGraphicsInc/cesium/pull/3406](https://github.com/AnalyticalGraphicsInc/cesium/pull/3406)

There’s still a bit more that needs to be done before it is ready.

Best,

Hannah
