{"action":"created","issue":{"url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/4131","repository_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium","labels_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/4131/labels{/name}","comments_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/4131/comments","events_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/4131/events","html_url":"https://github.com/AnalyticalGraphicsInc/cesium/issues/4131","id":166073950,"number":4131,"title":"KmlDataSource (Polyline) vs clampToGround","user":{"login":"jaforom","id":15927807,"avatar_url":"https://avatars.githubusercontent.com/u/15927807?v=3","gravatar_id":"","url":"https://api.github.com/users/jaforom","html_url":"https://github.com/jaforom","followers_url":"https://api.github.com/users/jaforom/followers","following_url":"https://api.github.com/users/jaforom/following{/other_user}","gists_url":"https://api.github.com/users/jaforom/gists{/gist_id}","starred_url":"https://api.github.com/users/jaforom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaforom/subscriptions","organizations_url":"https://api.github.com/users/jaforom/orgs","repos_url":"https://api.github.com/users/jaforom/repos","events_url":"https://api.github.com/users/jaforom/events{/privacy}","received_events_url":"https://api.github.com/users/jaforom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-18T11:34:49Z","updated_at":"2016-07-26T19:15:56Z","closed_at":null,"body":"Dears,\r\n\r\nThe clampToGround property doesn't seem to go right with KML LineString (it's ok with Polygon and Point). Here it is the example code:\r\n\r\n```\r\nvar viewer = new Cesium.Viewer('cesiumContainer');\r\nvar cesiumTerrainProviderMeshes = new Cesium.CesiumTerrainProvider({\r\n    url : 'https://assets.agi.com/stk-terrain/world',\r\n    requestWaterMask : true,\r\n    requestVertexNormals : true\r\n});\r\nviewer.terrainProvider = cesiumTerrainProviderMeshes;\r\n\r\nSandcastle.addDefaultToolbarMenu([{\r\n    text : 'Polygon',\r\n    onselect : function() {\r\n        var ds = Cesium.KmlDataSource.load(\r\n            'http://visortf.grafcan.es/KML/rep/Sand_Polygon.kml',\r\n            {\r\n                camera: viewer.scene.camera,\r\n                canvas: viewer.scene.canvas,\r\n                clampToGround:true\r\n            }\r\n        );\r\n\t\tCesium.when(ds,function(dataSource) {\r\n\t\t\tviewer.dataSources.add(dataSource);\r\n            viewer.flyTo(dataSource);\r\n\t\t});\r\n    }\r\n}, {\r\n    text : 'Polyline',\r\n    onselect : function() {\r\n        var ds = Cesium.KmlDataSource.load(\r\n            'http://visortf.grafcan.es/KML/rep/Sand_Polyline.kml',\r\n            {\r\n                camera: viewer.scene.camera,\r\n                canvas: viewer.scene.canvas,\r\n                clampToGround:true\r\n            }\r\n        );\r\n\t\tCesium.when(ds,function(dataSource) {\r\n\t\t\tviewer.dataSources.add(dataSource);\r\n            viewer.flyTo(dataSource);\r\n\t\t});\r\n    }\r\n}], 'zoomButtons');\r\n\r\nSandcastle.reset = function () {\r\n    viewer.entities.removeAll();\r\n    viewer.dataSources.removeAll();\r\n};\r\n```\r\n\r\n- First combo item: Sand_Polygon.kml (a single polygon and no style).\r\n- Second combo item: Sand_Polyline.kml contains a single polyline with no style, too.\r\n\r\nI don't know if I'm doing something wrong...\r\n\r\n\r\n\r\nRegards"},"comment":{"url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/comments/235374675","html_url":"https://github.com/AnalyticalGraphicsInc/cesium/issues/4131#issuecomment-235374675","issue_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/4131","id":235374675,"user":{"login":"denverpierce","id":5432027,"avatar_url":"https://avatars.githubusercontent.com/u/5432027?v=3","gravatar_id":"","url":"https://api.github.com/users/denverpierce","html_url":"https://github.com/denverpierce","followers_url":"https://api.github.com/users/denverpierce/followers","following_url":"https://api.github.com/users/denverpierce/following{/other_user}","gists_url":"https://api.github.com/users/denverpierce/gists{/gist_id}","starred_url":"https://api.github.com/users/denverpierce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denverpierce/subscriptions","organizations_url":"https://api.github.com/users/denverpierce/orgs","repos_url":"https://api.github.com/users/denverpierce/repos","events_url":"https://api.github.com/users/denverpierce/events{/privacy}","received_events_url":"https://api.github.com/users/denverpierce/received_events","type":"User","site_admin":false},"created_at":"2016-07-26T19:15:55Z","updated_at":"2016-07-26T19:15:55Z","body":"The tested KML doesn't have `<tessellate>` so it returns undefined when cesium checks for clamp-ability.\r\n\r\nhttps://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/DataSources/KmlDataSource.js#L1148\r\n"}}
{"actor":{"display_login":"denverpierce"}}