Monthly Archives: October 2015

Cesiumjs – How to get the the coordinate of a KML point ?

phpmind-cesiumjs-coordinate-of-a-KML-point

Here is an event handler that will get the Cartesian3 position of a point on left click and writes it to the console.

Share

Cesiumjs – How to add global event for specific entities?

phpmind-cesiumjs-event-for-specific-entities

Share

Cesiumjs – How to Accessing entity data ?

Share

Cesiumjs – TypeError: Cannot read property ‘length’ of null

This is how you can debug console and as a pop-up.

Share

Cesiumjs – How to draw a polyline on point entity ?

phpmind-cesiumjs-polylineand-entity-point

Share

Cesiumjs – How to draw 3D polyline ?

phpmind-cesiumjs-3d-polyline

Share

Cesiumjs – How can i control visibility of datasource show/hide ?

phpmind-cesiumjs-show-hide-kml

Share

Cesiumjs – How to get the content of a KML tag.

Cesiumjs-phpmind-get-des

The final computed description for a KML object is available in the entity.description property. In a pickedObject, the id property is the entity (if an entity was picked) So you can retrieve it as follows:

Time is the current scene time. You can omit the time parameter if you are 100% sure the description property is a static value.

Share

Cesiumjs – How to remove individual KML DataSources?

Cesiumjs-phpmind-remove-datasource

Cesiumjs-phpmind-remove-datasource_add

If you are not familiat with Promises, I recommend reading this article: http://www.html5rocks.com/en/tutorials/es6/promises/ Cesium specifically uses the when promise library that is mentioned in the article.

Share

Cesiumjs How to add name/description in the center of polygon

phpmind-cesiumjs-show-name

Share