The source code for CanaryWarf? (for mouseover highlighting)

Hi,

In http://cesiumjs.org/2015/08/10/Introducing-3D-Tiles/ there is a demo named CanaryWharf that shows mouseover highlighting.

Can I get the source code of CanaryWharf so that I can include the mouseover highlighting feature for my internal demo project?

I tried to find the source code for mouseover highlighting, but failed.

Maybe I can code it for myself after studying Cesium and 3D Tiles more, but for now I just want to check some feature with the relevant source code.

Thanks in advance.

I’ve implemented it myself.

The source code is as follows:

var prevFeature, prevFeatureColor;

document.getElementById('cesiumContainer').addEventListener('mousemove', function (event)

{

var feature, position;

position = new Cesium.Cartesian2(event.clientX, event.clientY);

feature = viewer.scene.pick(position);

//console.log(‘mousemove’, position, feature);

if (Cesium.defined(prevFeature))

{

if (prevFeature !== feature)

prevFeature.color = prevFeatureColor;

}

if (Cesium.defined(feature))

{

if (prevFeature !== feature)

prevFeatureColor = feature.color;

feature.color = Cesium.Color.YELLOW;

}

prevFeature = feature;

});

``

It’s made of Cesium API call.

I’ve referenced the following links:

2017년 1월 11일 수요일 오전 10시 40분 27초 UTC+9, Taeyun Kim 님의 말:

Hi,

can you let me see the code of a complete example when you apply this code?

I’m not able to implement it…

:frowning:

THANKS IN ADVANCE!!!

Héctor

Hi all,

Also, see this 3D Tiles picking example that is new with Cesium 1.35:

http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=3D%20Tiles%20Feature%20Picking.html&label=Showcases

Thanks,

Patrick

Thanks Patrick.

We are willing to use 3D Tiles but we have no tools to convert our KML models, you told me that you were working on it, is there any news about it?

Best wishes.

Héctor

Hi Héctor,

For the latest on tiling tools, see my first post here: https://groups.google.com/forum/#!topic/cesium-dev/xLkYIuku9hA

Just drop me a note at pcozzi@agi.com and we can see how the pre-release version works with your KML.

Patrick