Why does close lines in polyline almost disappeared

50 views
Skip to first unread message

ali...@gmail.com

unread,
Oct 16, 2018, 11:23:47 AM10/16/18
to cesium-dev
I have polyline with 3 points.
The two line created are quite close to each other.
Near the second point, the line are almost disappear.
Any Idea?
Example that can be copied to Sandcastle:
var czml = [{
"id" : "document",
"name" : "CZML Geometries: Polyline",
"version" : "1.0"
}, {
"id" : "redLine",
"polyline" : {
"positions" : {
"cartographicDegrees" : [
35.097, 32.938, 0,
35.066935, 32.919731, 0,
35.096, 32.939, 0,
]
},
"width" : 2,
"clampToGround" : false
}

}];

var viewer = new Cesium.Viewer('cesiumContainer');
var dataSource = new Cesium.CzmlDataSource();

viewer.dataSources.add(dataSource);

dataSource.process(czml);

viewer.zoomTo(dataSource.entities.getById('redLine'));

Thanks in advance, Eitan

Omar Shehata

unread,
Oct 17, 2018, 10:59:23 AM10/17/18
to cesium-dev

alifut22

unread,
Oct 18, 2018, 1:27:27 AM10/18/18
to cesiu...@googlegroups.com
Thanks for your replay.
Good workaround for now :)


--
You received this message because you are subscribed to a topic in the Google Groups "cesium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cesium-dev/n0_H0cobX40/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages