Ok I am back looking at this.. So we are staring to convert the kml file to a CZML format.
I want to make sure I understand how to do this with CZML since we are converting the code.
Our present system works as follows.
We have an application running on the same server we are running the Cesuim map and web application on the same machine as well.
The present application is writing to a file in a particular directory (KML file) The Web application sets up at initialization a network link for this data and
The google network link reads this file periodically using Google network Link periodic refresh interval also set up at initialization.
At the interval the positon(lat/long) of the element us updated on the map via an icon.
So over time we can see the element moving on the map. (again google map)
So to be clear is the only way to get this functionality to run with Cesium is to use WebSockets ? If the Web application periodically
Has a thread running and reads the CZML file in a particular directory and then displays the data with new position would this work as well
Without refreshing the browser to show the movement ? So would I be able to call the czmlDataStreamSource.process by parsing the file?
The application running will have to create czml_writer function in C++ and since on the same machine as Web browser did not know if we needed WebSockets
Interface to make the element move on the Cesium map.
I hope this is clear,
Thank you for your help,
Carlo
--
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/tKR2AdpsglA/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.
To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+unsubscribe@googlegroups.com.
I do not want to refresh the browser.. the data file is being refreshed by another application running on the
The same machine that has the apache server running on it. My web application will read this file from a directory and display it on the
Cesium map. (Again this was done on Google map with network links.)
I just want the element’s lat/long updated on the Cesium map to show it moving over time by reading the
Kml or czml file to get the updated lat/long then display it on the Cesium map with the new lat/long so it moves.
Right now I have a periodic call in my web page to read the file in (kml) and in order for it to update on the Cesium map to the new position I have to
Refresh the Web page.. and over time I run out of memory.
Does this make sense ?
Do you have an example on the setInterval function if will do the job ?
Thanks,
Carlo
--
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.
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.
--
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/tKR2AdpsglA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
--
To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/tKR2AdpsglA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+unsubscribe@googlegroups.com.
Does this function support all the major browsers ?
--
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.
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.
--
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/tKR2AdpsglA/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.
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.
--
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/tKR2AdpsglA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
--
To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/tKR2AdpsglA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/tKR2AdpsglA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+unsubscribe@googlegroups.com.
I am using kml files.. The interval seems to work fine.
Another question I have is I select the icon on the map to show me the KML data. Pops up on the Cesium screen.
I have a 3 second interval. Once the refresh occurs the popup screen goes away. Is there a way to keep this information up on the screen
So I can see the information change. Thanks…

From: cesiu...@googlegroups.com [mailto:cesiu...@googlegroups.com]
On Behalf Of Scott Hunter
Sent: Thursday, April 27, 2017 10:56 AM
To: cesiu...@googlegroups.com
Subject: Re: EXTERNAL: Re: [cesium-dev] Re: Porting over GE to Cesium using network links with KML files
Yes, it's a standard browser function. MDN pages usually have a compatibility table at the bottom of the page.
On Thu, Apr 27, 2017 at 10:34 AM, Miceli, Carlo J. <CARLO.J...@leidos.com> wrote:
Does this function support all the major browsers ?
--
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.
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.
--
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/tKR2AdpsglA/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.
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.
--
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/tKR2AdpsglA/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.
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.
--
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/tKR2AdpsglA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
Looks like the map eventually crashes using the browser interval.. Also at every interval everything on the map gets refreshed.
Ran for a while and the map then disappeared in my web page.
Any other suggestions ?
Thanks
Carlo
From: cesiu...@googlegroups.com [mailto:cesiu...@googlegroups.com]
On Behalf Of Scott Hunter
Sent: Thursday, April 27, 2017 10:56 AM
To: cesiu...@googlegroups.com
Subject: Re: EXTERNAL: Re: [cesium-dev] Re: Porting over GE to Cesium using network links with KML files
Yes, it's a standard browser function. MDN pages usually have a compatibility table at the bottom of the page.
On Thu, Apr 27, 2017 at 10:34 AM, Miceli, Carlo J. <CARLO.J...@leidos.com> wrote:
Does this function support all the major browsers ?
--
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.
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.
--
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/tKR2AdpsglA/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.
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.
--
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/tKR2AdpsglA/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.
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.
--
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/tKR2AdpsglA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
Here is the error I get.
An error occurred while rendering. Rendering has stopped.
RuntimeError: Program failed to link. Link log: Internal linking error Error at t (http://10.37.208.115/aftweb/Build/Cesium/Cesium.js:418:7991) at p (http://10.37.208.115/aftweb/Build/Cesium/Cesium.js:432:1662) at _ (http://10.37.208.115/aftweb/Build/Cesium/Cesium.js:432:3651) at C.prototype._bind (http://10.37.208.115/aftweb/Build/Cesium/Cesium.js:432:5384) at G (http://10.37.208.115/aftweb/Build/Cesium/Cesium.js:451:9085) at q.prototype.draw (http://10.37.208.115/aftweb/Build/Cesium/Cesium.js:451:17598) at r.prototype.execute (http://10.37.208.115/aftweb/Build/Cesium/Cesium.js:431:4930) at m.prototype.execute (http://10.37.208.115/aftweb/Build/Cesium/Cesium.js:454:29390) at we (http://10.37.208.115/aftweb/Build/Cesium/Cesium.js:461:9320) at Ae (http://10.37.208.115/aftweb/Build/Cesium/Cesium.js:461:10424)
OK
From: cesiu...@googlegroups.com [mailto:cesiu...@googlegroups.com]
On Behalf Of Scott Hunter
Sent: Thursday, April 27, 2017 10:56 AM
To: cesiu...@googlegroups.com
Subject: Re: EXTERNAL: Re: [cesium-dev] Re: Porting over GE to Cesium using network links with KML files
Yes, it's a standard browser function. MDN pages usually have a compatibility table at the bottom of the page.
On Thu, Apr 27, 2017 at 10:34 AM, Miceli, Carlo J. <CARLO.J...@leidos.com> wrote:
Does this function support all the major browsers ?
--
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.
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.
--
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/tKR2AdpsglA/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.
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.
--
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/tKR2AdpsglA/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.
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.
--
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/tKR2AdpsglA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
Looks like I am at a dead end with .KML functionality.
I am trying to find out if CZML will help me.
The refresh interval will refresh browser and display new data location on the map but clears and redraws every time.
What I am asking is with Google Earth Plugin we used Network Links and Network links interval to
Read the new position file and update the display. This did not update the browser like refresh interval does.
Network links in google plugin refreshed the position entry on the map and not the whole map so other items
Displayed did not clear on refresh.
Is there an equivalent in Cesium with CZML (kml network links is not there) that this can be done.
I have an application I am trying to port over.
If not is there any suggestions or any idea if network links (google/.kml) will be ported to Cesium or any work around I can use in
The meantime.
Thank You
Carlo
Ok.. for refresh interval my map crashes over time.
Has anyone experienced this?

--
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/tKR2AdpsglA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
All examples I see with things moving are the CZML file has all the coordinates built into the czml file.
Ex.. Vehicle.czml.
Are there any examples that update the coordinates periodically and displayed on the map ?
I am also display a track history file which can be large (has all the points of a track from the beginning of the start scenario) and
The performance on the map is not very good.
Any help with this would greatly be appreciated.
Thank you
From: cesiu...@googlegroups.com [mailto:cesiu...@googlegroups.com] On Behalf Of Miceli, Carlo J.
Sent: Monday, May 01, 2017 8:25 AM
To: cesiu...@googlegroups.com
--
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/tKR2AdpsglA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.
Hi Rachel,
Thanks for your response.. I understand about the Entity … but.. I am looking using CZML streaming now….
In a nut shell.. I have a separate application that is updating a file in a director
On the same machine from a web browser that is has a Cesium map plugged in… a java script reads this file and displays
The lat/long of multiple tracks. The position gets updated over time. I used google map network links I am trying to port over.
I have used the browser interval to read the file and display but technique has major performance issues and will eventuall
Crash the Cesium Map.
I have looked at the Sandcastle examples but none of them show anything moving over time based on and updated CZML file.
In other works for example the CZML file will one have on position entry for each track.. I may have 1-50 tracks in this file that need to be displayed
On the map... This position entry will get updated over time for each track and displayed again on the map.
So need something that periodically reads this CZML file and displays all the tracks without cause performance issues and crashes.
Does this make sense ?
Thanks,
Carlo
From: cesiu...@googlegroups.com [mailto:cesiu...@googlegroups.com]
On Behalf Of Rachel Hwang
Sent: Monday, May 01, 2017 5:16 PM
To: cesium-dev
Cc: Miceli, Carlo J.
Subject: Re: EXTERNAL: Re: [cesium-dev] Re: Porting over GE to Cesium using network links with KML files
Hi there,
The Cesium Entity system is designed to handle problems just like this, where you want to specify how a property changes over time. I don't know exactly what your situation is, but you might consider reading in your CZML files using the CZML DataSource: https://cesiumjs.org/Cesium/Build/Documentation/CzmlDataSource.html
This will allow you to access all your CZML objects as entities. Entities provide a robust way of specifying an object's properties at specific times. Here are some Sandcastle examples you might find useful.
Hope that helps!
- Rachel
On Monday, May 1, 2017 at 10:38:44 AM UTC-4, Miceli, Carlo J. wrote:
All examples I see with things moving are the CZML file has all the coordinates built into the czml file.
Ex.. Vehicle.czml.
Are there any examples that update the coordinates periodically and displayed on the map ?
I am also display a track history file which can be large (has all the points of a track from the beginning of the start scenario) and
The performance on the map is not very good.
Any help with this would greatly be appreciated.
Thank you
From:
cesiu...@googlegroups.com [mailto:cesiu...@googlegroups.com]
On Behalf Of Miceli, Carlo J.
Sent: Monday, May 01, 2017 8:25 AM
To: cesiu...@googlegroups.com
Subject: RE: EXTERNAL: Re: [cesium-dev] Re: Porting over GE to Cesium using network links with KML files
Looks like I am at a dead end with .KML functionality.
I am trying to find out if CZML will help me.
The refresh interval will refresh browser and display new data location on the map but clears and redraws every time.
What I am asking is with Google Earth Plugin we used Network Links and Network links interval to
Read the new position file and update the display. This did not update the browser like refresh interval does.
Network links in google plugin refreshed the position entry on the map and not the whole map so other items
Displayed did not clear on refresh.
Is there an equivalent in Cesium with CZML (kml network links is not there) that this can be done.
I have an application I am trying to port over.
If not is there any suggestions or any idea if network links (google/.kml) will be ported to Cesium or any work around I can use in
The meantime.
Thank You
Carlo
--
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/tKR2AdpsglA/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.
--
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/tKR2AdpsglA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
Hi Carlo,
Reloading your CZML should work fine -- can you provide a code example of how you're reloading? Maybe we can spot a bug.
Best,
- Rachel
To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/tKR2AdpsglA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.
Hi Rachel,
Here is a basic code snippet.
I will find out if I can give you a copy of the .kml files in question.
Let me know if this is not clear
Thanks,
Carlo
var nIntervId;
var ge;
var viewer;
nIntervId = setInterval(updateTracks,5000); **** This is the autorefresh that will eventually crash the map.
viewer = new Cesium.Viewer('geContainer',
{ timeline: false,
animation: false
});
ge = new Cesium.KmlDataSource();
function updateTracks()
{
var options = {
camera : viewer.scene.camera,
canvas : viewer.scene.canvas
};
kmlUrl = 'google_earth/active/' + "localTracks" + '.kml'; **** THIS IS A DIRECTORY ON THE LINUX MACHINE>>> THIS FILE GETS UPDATED PERIODICALLY WITH NEW LOCATIONS>
viewer.dataSources.add(ge.load(kmlUrl,options))
.then( function (dataSource) {
viewer.flyTo(dataSource.entities);
}
From: Rachel Hwang [mailto:elkw...@gmail.com]
Sent: Thursday, May 04, 2017 10:15 PM
To: cesium-dev
Cc: Miceli, Carlo J.
Subject: Re: EXTERNAL: Re: [cesium-dev] Re: Porting over GE to Cesium using network links with KML files
Hi Carlo,
Reloading your CZML should work fine -- can you provide a code example of how you're reloading? Maybe we can spot a bug.
Best,
- Rachel
On Tuesday, May 2, 2017 at 7:33:49 AM UTC-4, Miceli, Carlo J. wrote:
Hi Rachel,
Thanks for your response.. I understand about the Entity … but.. I am looking using CZML streaming now….
In a nut shell.. I have a separate application that is updating a file in a director
On the same machine from a web browser that is has a Cesium map plugged in… a java script reads this file and displays
The lat/long of multiple tracks. The position gets updated over time. I used google map network links I am trying to port over.
I have used the browser interval to read the file and display but technique has major performance issues and will eventuall
Crash the Cesium Map.
I have looked at the Sandcastle examples but none of them show anything moving over time based on and updated CZML file.
In other works for example the CZML file will one have on position entry for each track.. I may have 1-50 tracks in this file that need to be displayed
On the map... This position entry will get updated over time for each track and displayed again on the map.
So need something that periodically reads this CZML file and displays all the tracks without cause performance issues and crashes.
Does this make sense ?
Thanks,
Carlo
From:
cesiu...@googlegroups.com [mailto:cesiu...@googlegroups.com]
On Behalf Of Rachel Hwang
Sent: Monday, May 01, 2017 5:16 PM
To: cesium-dev
Cc: Miceli, Carlo J.
Subject: Re: EXTERNAL: Re: [cesium-dev] Re: Porting over GE to Cesium using network links with KML files
Hi there,
The Cesium Entity system is designed to handle problems just like this, where you want to specify how a property changes over time. I don't know exactly what your situation is, but you might consider reading in your CZML files using the CZML DataSource: https://cesiumjs.org/Cesium/Build/Documentation/CzmlDataSource.html
This will allow you to access all your CZML objects as entities. Entities provide a robust way of specifying an object's properties at specific times. Here are some Sandcastle examples you might find useful.
Hope that helps!
- Rachel
On Monday, May 1, 2017 at 10:38:44 AM UTC-4, Miceli, Carlo J. wrote:
All examples I see with things moving are the CZML file has all the coordinates built into the czml file.
Ex.. Vehicle.czml.
Are there any examples that update the coordinates periodically and displayed on the map ?
I am also display a track history file which can be large (has all the points of a track from the beginning of the start scenario) and
The performance on the map is not very good.
Any help with this would greatly be appreciated.
Thank you
From:
cesiu...@googlegroups.com [mailto:cesiu...@googlegroups.com]
On Behalf Of Miceli, Carlo J.
Sent: Monday, May 01, 2017 8:25 AM
To: cesiu...@googlegroups.com
Subject: RE: EXTERNAL: Re: [cesium-dev] Re: Porting over GE to Cesium using network links with KML files
Looks like I am at a dead end with .KML functionality.
I am trying to find out if CZML will help me.
The refresh interval will refresh browser and display new data location on the map but clears and redraws every time.
What I am asking is with Google Earth Plugin we used Network Links and Network links interval to
Read the new position file and update the display. This did not update the browser like refresh interval does.
Network links in google plugin refreshed the position entry on the map and not the whole map so other items
Displayed did not clear on refresh.
Is there an equivalent in Cesium with CZML (kml network links is not there) that this can be done.
I have an application I am trying to port over.
If not is there any suggestions or any idea if network links (google/.kml) will be ported to Cesium or any work around I can use in
The meantime.
Thank You
Carlo
--
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/tKR2AdpsglA/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.
--
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/tKR2AdpsglA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/tKR2AdpsglA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+unsubscribe@googlegroups.com.
Ok.. how would I change this code then so I read the file and display on the map at each interval with the new lat/long ?
Thanks,
C.
From:
cesiu...@googlegroups.com [mailto:cesiu...@googlegroups.com]
On Behalf Of Rachel Hwang
Sent: Monday, May 01, 2017 5:16 PM
To: cesium-dev
Cc: Miceli, Carlo J.
Subject: Re: EXTERNAL: Re: [cesium-dev] Re: Porting over GE to Cesium using network links with KML files
Hi there,
The Cesium Entity system is designed to handle problems just like this, where you want to specify how a property changes over time. I don't know exactly what your situation is, but you might consider reading in your CZML files using the CZML DataSource: https://cesiumjs.org/Cesium/Build/Documentation/CzmlDataSource.html
This will allow you to access all your CZML objects as entities. Entities provide a robust way of specifying an object's properties at specific times. Here are some Sandcastle examples you might find useful.
Hope that helps!
- Rachel
On Monday, May 1, 2017 at 10:38:44 AM UTC-4, Miceli, Carlo J. wrote:
All examples I see with things moving are the CZML file has all the coordinates built into the czml file.
Ex.. Vehicle.czml.
Are there any examples that update the coordinates periodically and displayed on the map ?
I am also display a track history file which can be large (has all the points of a track from the beginning of the start scenario) and
The performance on the map is not very good.
Any help with this would greatly be appreciated.
Thank you
From:
cesiu...@googlegroups.com [mailto:cesiu...@googlegroups.com]
On Behalf Of Miceli, Carlo J.
Sent: Monday, May 01, 2017 8:25 AM
To: cesiu...@googlegroups.com
Subject: RE: EXTERNAL: Re: [cesium-dev] Re: Porting over GE to Cesium using network links with KML files
Looks like I am at a dead end with .KML functionality.
I am trying to find out if CZML will help me.
The refresh interval will refresh browser and display new data location on the map but clears and redraws every time.
What I am asking is with Google Earth Plugin we used Network Links and Network links interval to
Read the new position file and update the display. This did not update the browser like refresh interval does.
Network links in google plugin refreshed the position entry on the map and not the whole map so other items
Displayed did not clear on refresh.
Is there an equivalent in Cesium with CZML (kml network links is not there) that this can be done.
I have an application I am trying to port over.
If not is there any suggestions or any idea if network links (google/.kml) will be ported to Cesium or any work around I can use in
The meantime.
Thank You
Carlo
--
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/tKR2AdpsglA/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.
--
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/tKR2AdpsglA/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.
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.
--
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/tKR2AdpsglA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
I have an if around fly to view so it only flys to view at startup
From: cesiu...@googlegroups.com [mailto:cesiu...@googlegroups.com] On Behalf Of Scott Hunter
Sent: Monday, May 08, 2017 10:18 AM
To: cesiu...@googlegroups.com
From:
cesiu...@googlegroups.com [mailto:cesiu...@googlegroups.com]
On Behalf Of Rachel Hwang
Sent: Monday, May 01, 2017 5:16 PM
To: cesium-dev
Cc: Miceli, Carlo J.
Subject: Re: EXTERNAL: Re: [cesium-dev] Re: Porting over GE to Cesium using network links with KML files
Hi there,
The Cesium Entity system is designed to handle problems just like this, where you want to specify how a property changes over time. I don't know exactly what your situation is, but you might consider reading in your CZML files using the CZML DataSource: https://cesiumjs.org/Cesium/Build/Documentation/CzmlDataSource.html
This will allow you to access all your CZML objects as entities. Entities provide a robust way of specifying an object's properties at specific times. Here are some Sandcastle examples you might find useful.
Hope that helps!
- Rachel
On Monday, May 1, 2017 at 10:38:44 AM UTC-4, Miceli, Carlo J. wrote:
All examples I see with things moving are the CZML file has all the coordinates built into the czml file.
Ex.. Vehicle.czml.
Are there any examples that update the coordinates periodically and displayed on the map ?
I am also display a track history file which can be large (has all the points of a track from the beginning of the start scenario) and
The performance on the map is not very good.
Any help with this would greatly be appreciated.
Thank you
From:
cesiu...@googlegroups.com [mailto:cesiu...@googlegroups.com]
On Behalf Of Miceli, Carlo J.
Sent: Monday, May 01, 2017 8:25 AM
To: cesiu...@googlegroups.com
Subject: RE: EXTERNAL: Re: [cesium-dev] Re: Porting over GE to Cesium using network links with KML files
Looks like I am at a dead end with .KML functionality.
I am trying to find out if CZML will help me.
The refresh interval will refresh browser and display new data location on the map but clears and redraws every time.
What I am asking is with Google Earth Plugin we used Network Links and Network links interval to
Read the new position file and update the display. This did not update the browser like refresh interval does.
Network links in google plugin refreshed the position entry on the map and not the whole map so other items
Displayed did not clear on refresh.
Is there an equivalent in Cesium with CZML (kml network links is not there) that this can be done.
I have an application I am trying to port over.
If not is there any suggestions or any idea if network links (google/.kml) will be ported to Cesium or any work around I can use in
The meantime.
Thank You
Carlo
--
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/tKR2AdpsglA/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.
--
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/tKR2AdpsglA/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.
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.
--
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/tKR2AdpsglA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
I add the instance once now and then read the new file and load the new kml file.
That seems to work now.
The question I have can I keep the old point when the load is done. So if the position changes I want to
Have the old position still shown on the map so it shows a track history with KML ??
It appears I can do it with CZML.. Is there an way to do this with KML.. The KmlDataSource does not have a process function according to the docs.
Thanks,
Carlo
load(czml, options) → Promise.<CzmlDataSource>
DataSources/CzmlDataSource.js 2139
Loads the provided url or CZML object, replacing any existing data.
process(czml, options) → Promise.<CzmlDataSource>
DataSources/CzmlDataSource.js 2127
Processes the provided url or CZML object without clearing any existing data.
viewer = new Cesium.Viewer('geContainer',
{ timeline: false,
animation: false
});
ge = new Cesium.KmlDataSource();
kmlUrl = 'google_earth/active/' + "localTracks" + '.kml';
if (firstTimeFlyToView){
viewer.dataSources.add(ge.load(kmlUrl,options))
.then( function (dataSource) {
viewer.flyTo(dataSource.entities);
});
firstTimeFlyToView = 0;
}
else {
ge.load(kmlUrl,options);
}
From: cesiu...@googlegroups.com [mailto:cesiu...@googlegroups.com] On Behalf Of Scott Hunter
Sent: Monday, May 08, 2017 10:18 AM
To: cesiu...@googlegroups.com
From:
cesiu...@googlegroups.com [mailto:cesiu...@googlegroups.com]
On Behalf Of Rachel Hwang
Sent: Monday, May 01, 2017 5:16 PM
To: cesium-dev
Cc: Miceli, Carlo J.
Subject: Re: EXTERNAL: Re: [cesium-dev] Re: Porting over GE to Cesium using network links with KML files
Hi there,
The Cesium Entity system is designed to handle problems just like this, where you want to specify how a property changes over time. I don't know exactly what your situation is, but you might consider reading in your CZML files using the CZML DataSource: https://cesiumjs.org/Cesium/Build/Documentation/CzmlDataSource.html
This will allow you to access all your CZML objects as entities. Entities provide a robust way of specifying an object's properties at specific times. Here are some Sandcastle examples you might find useful.
Hope that helps!
- Rachel
On Monday, May 1, 2017 at 10:38:44 AM UTC-4, Miceli, Carlo J. wrote:
All examples I see with things moving are the CZML file has all the coordinates built into the czml file.
Ex.. Vehicle.czml.
Are there any examples that update the coordinates periodically and displayed on the map ?
I am also display a track history file which can be large (has all the points of a track from the beginning of the start scenario) and
The performance on the map is not very good.
Any help with this would greatly be appreciated.
Thank you
From:
cesiu...@googlegroups.com [mailto:cesiu...@googlegroups.com]
On Behalf Of Miceli, Carlo J.
Sent: Monday, May 01, 2017 8:25 AM
To: cesiu...@googlegroups.com
Subject: RE: EXTERNAL: Re: [cesium-dev] Re: Porting over GE to Cesium using network links with KML files
Looks like I am at a dead end with .KML functionality.
I am trying to find out if CZML will help me.
The refresh interval will refresh browser and display new data location on the map but clears and redraws every time.
What I am asking is with Google Earth Plugin we used Network Links and Network links interval to
Read the new position file and update the display. This did not update the browser like refresh interval does.
Network links in google plugin refreshed the position entry on the map and not the whole map so other items
Displayed did not clear on refresh.
Is there an equivalent in Cesium with CZML (kml network links is not there) that this can be done.
I have an application I am trying to port over.
If not is there any suggestions or any idea if network links (google/.kml) will be ported to Cesium or any work around I can use in
The meantime.
Thank You
Carlo
--
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/tKR2AdpsglA/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.
--
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/tKR2AdpsglA/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.
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.
--
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/tKR2AdpsglA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
Thanks Rachel,
That works fine.. is there a way after a few minutes to start removing the old sources ?
We only want to keep the last two minutes’ worth of data on the map.
Thank you.
From: Rachel Hwang [mailto:elkw...@gmail.com]
Sent: Tuesday, May 16, 2017 2:19 PM
To: cesium-dev
Cc: Miceli, Carlo J.
Subject: Re: EXTERNAL: Re: [cesium-dev] Re: Porting over GE to Cesium using network links with KML files
Hi Carlo,
Unfortunately, KML wasn't really designed to work this way -- the specification doesn't allow for it. However, you can keep the old data around just by creating a new KMLDataSource instance each time you load.
<p c
Hi Rachel,
One other thing.. not sure if you have any insight on this but after a while browser will crash
Saying ran out of memory when I add datasources for a while. I am updating the map display every second.
If you have any insight on this I would appreciate. I will try your suggestions as well.
Thank you
Carlo
Hi Rachel,
Ok I built a parser that reads in a .kml file and stores it to a .czml file.
I am now running with .czml files..
I have a Chrome browser running and and a IE browser running.
I eventually get a crash on the IE browser but the chrome one is still running for now.. (both crash in time with .kml processing for some reason)
Can anyone tell me the cause of this error on IE ? I will try firefox next.. Any suggestions or recommended settings on the browsers ?
Thank You
Carlo

From: Rachel Hwang [mailto:elkw...@gmail.com]
Sent: Wednesday, May 17, 2017 3:50 PM
To: cesium-dev
Hi Rachel,
Al browsers over time will crash and run out of memory.
Not sure if there is a bug or what is going on. But I can not keep it up that long with the examples I sent you.
Carlo
From: Rachel Hwang [mailto:elkw...@gmail.com]
Sent: Wednesday, May 17, 2017 3:50 PM
To: cesium-dev
Hi Rachel,
Al browsers over time will crash and run out of memory.
ge = new Cesium.KmlDataSource();
kmlUrl = 'google_earth/active/' + "localTracks" + '.kml';
if (firstTimeFlyToView){
viewer.dataSources.add(ge.load(kmlUrl,options))
.then( function (dataSource) {
viewer.flyTo(dataSource.entities);
});
firstTimeFlyToView = 0;
}
else {
ge.load(kmlUrl,options);
}
To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.
</
Hi Rachel,
I ran this in your sandcastle app. If you let it run for an hour or so the browser will hang and
Eventually run out of memory on Chrome. I think it will fail quicker with Mozilla.
Link is above and I deleted the JS code and pasted in the below code.
Let me know what you think.
Thanks,
Carlo
var czml =
[
{
"id" : "document",
"name" : "TEST",
"version" : "1.0"
},
{
"id" : "trk1",
"name" : "1 {477088000}",
"position" : {"cartographicDegrees" : [-82.392379761,27.857116699,53.2013]},
"point" :
{
"color": {"rgba":[255,255,255,255]},
"outlineColor": {"rgba":[255,0,0,255]},
"outlineWidth": 4,
"pixelSize": 2
},
"description": " <table border=\"1\"><b><tr><th colspan=\"3\">TRACK</th></tr> <tr><th>Item</th><th>Value</th><th>Units</th></tr> \
<tr><td>Latitude</td><td align=\"right\">27.7578</td><td>deg WGS 84</td></tr><tr><td>Longitude</td><td align=\"right\">-82.523</td> \
<td>deg WGS 84</td></tr><tr><td>Speed</td><td align=\"right\">11.0</td><td>knots</td></tr><tr><td>Heading</td> \
<td align=\"right\">11.7</td><td>deg</td></tr><tr><td>Kind</td><td colspan=\"2\">AIS</td></tr><tr><td>Age</td><td align=\"right\">00:03:33</td> \
<td>duration</td></tr><tr><td>Last Update</td><td>0x02010001</td><td>SensorId</td></tr><tr><td>Last Update</td><td colspan=\"2\">2017-05-17T12:03:08.529Z</td></tr></b></table>"
},
{
"id" : "trk2",
"name" : "2 {477058800}",
"position" : {"cartographicDegrees" : [-82.513336182,27.787147522,12.1227]},
"point" :
{
"color": {"rgba":[255,255,255,255]},
"outlineColor": {"rgba":[255,0,0,255]},
"outlineWidth": 4,
"pixelSize": 2
}
},
{
"id" : "trk3",
"name" : "3 {366390000}",
"position" : {"cartographicDegrees" : [-82.523002625,27.757831573,10.2413]},
"point" :
{
"color": {"rgba":[255,255,255,255]},
"outlineColor": {"rgba":[255,0,0,255]},
"outlineWidth": 4,
"pixelSize": 2
}
},
{
"id" : "trk4",
"name" : "4 {367168230}",
"position" : {"cartographicDegrees" : [-82.629875183,27.776863098,0.0922988]},
"point" :
{
"color": {"rgba":[255,255,255,255]},
"outlineColor": {"rgba":[255,0,0,255]},
"outlineWidth": 4,
"pixelSize": 2
}
},
{
"id" : "trk5",
"name" : "5 {366967050}",
"position" : {"cartographicDegrees" : [-82.558769226,27.633367538,22.9583]},
"point" :
{
"color": {"rgba":[255,255,255,255]},
"outlineColor": {"rgba":[255,0,0,255]},
"outlineWidth": 4,
"pixelSize": 2
}
},
{
"id" : "trk6",
"name" : "6 {367003260}",
"position" : {"cartographicDegrees" : [-82.559936523,27.634202957,22.5965]},
"point" :
{
"color": {"rgba":[255,255,255,255]},
"outlineColor": {"rgba":[255,0,0,255]},
"outlineWidth": 4,
"pixelSize": 2
}
},
{
"id" : "trk7",
"name" : "7 {366341000}",
"position" : {"cartographicDegrees" : [-82.574996948,27.685241699,10.0483]},
"point" :
{
"color": {"rgba":[255,255,255,255]},
"outlineColor": {"rgba":[255,0,0,255]},
"outlineWidth": 4,
"pixelSize": 2
}
},
{
"id" : "trk8",
"name" : "8 {CARNIVAL INSPIRATION}",
"position" : {"cartographicDegrees" : [-82.444549561,27.848119736,34.3424]},
"point" :
{
"color": {"rgba":[255,255,255,255]},
"outlineColor": {"rgba":[255,0,0,255]},
"outlineWidth": 4,
"pixelSize": 2
}
},
{
"id" : "trk9",
"name" : "9 {636091540}",
"position" : {"cartographicDegrees" : [-82.56124115,27.632991791,22.7631]},
"point" :
{
"color": {"rgba":[255,255,255,255]},
"outlineColor": {"rgba":[255,0,0,255]},
"outlineWidth": 4,
"pixelSize": 2
}
},
{
"id" : "trk10",
"name" : "10 {367078740}",
"position" : {"cartographicDegrees" : [-82.441169739,27.81936264,31.8315]},
"point" :
{
"color": {"rgba":[255,255,255,255]},
"outlineColor": {"rgba":[255,0,0,255]},
"outlineWidth": 4,
"pixelSize": 2
}
},
{
"id" : "trk11",
"name" : "11 {367168440}",
"position" : {"cartographicDegrees" : [-82.633415222,27.760282516,0.115857]},
"point" :
{
"color": {"rgba":[255,255,255,255]},
"outlineColor": {"rgba":[255,0,0,255]},
"outlineWidth": 4,
"pixelSize": 2
}
},
{
"id" : "trk12",
"name" : "12 {567035000}",
"position" : {"cartographicDegrees" : [-82.999794006,27.591011047,130.836]},
"point" :
{
"color": {"rgba":[255,255,255,255]},
"outlineColor": {"rgba":[255,0,0,255]},
"outlineWidth": 4,
"pixelSize": 2
}
},
{
"id" : "trk13",
"name" : "13 {567308000}",
"position" : {"cartographicDegrees" : [-82.428703308,27.907411575,51.4946]},
"point" :
{
"color": {"rgba":[255,255,255,255]},
"outlineColor": {"rgba":[255,0,0,255]},
"outlineWidth": 4,
"pixelSize": 2
}
},
{
"id" : "trk14",
"name" : "14 {309319000}",
"position" : {"cartographicDegrees" : [-82.41242981,27.797065735,39.4494]},
"point" :
{
"color": {"rgba":[255,255,255,255]},
"outlineColor": {"rgba":[255,0,0,255]},
"outlineWidth": 4,
"pixelSize": 2
}
},];
var viewer = new Cesium.Viewer('cesiumContainer');
var nIntervId = setInterval(updateTracks(),1000);
updateTracks();
function updateTracks()
{
viewer.dataSources.add(Cesium.CzmlDataSource.load(czml));
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.
</
I Ran the same test on firefox and it lasted only 30 minutes or so.
Here is what I got.

From: Miceli, Carlo J.
Sent: Tuesday, May 30, 2017 10:35 AM
To: 'Rachel Hwang'; cesium-dev
Subject: RE: EXTERNAL: Re: [cesium-dev] Re: Porting over GE to Cesium using network links with KML files
Hi Rachel,
I ran this in your sandcastle app. If you let it run for an hour or so the browser will hang and
Eventually run out of memory on Chrome. I think it will fail quicker with Mozilla.
Link is above and I deleted the JS code and pasted in the below code.
Let me know what you think.
Thanks,
Carlo
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.
</
Hi Rachel,
Were you able to catch the issue we are having with our example ?
Happens with Chrome,Firefox and IE.
Let me know.
Thank you
Carlo
From: cesiu...@googlegroups.com [mailto:cesiu...@googlegroups.com] On Behalf Of Miceli, Carlo J.
Sent: Tuesday, May 30, 2017 10:35 AM
To: Rachel Hwang; cesium-dev
<span style="font-size:11.0pt;font-family:"Calib
Hi Rachel,
Here it is.. Select Run (F8) and run.
Let it run for a while in firefox for example.. Just let it sit . There is a 1 second interval that will keep redrawing.
I have given this to multiple colleagues and it crashes on all of their different browsers machines.
Let me know what you find out.
Thanks,
Carlo
From: Rachel Hwang [mailto:elkw...@gmail.com]
Sent: Monday, June 05, 2017 12:06 PM
To: cesium-dev
Cc: elkw...@gmail.com; Miceli, Carlo J.
Subject: Re: EXTERNAL: Re: [cesium-dev] Re: Porting over GE to Cesium using network links with KML files
Hi Carlo,
Apologies -- I'm still having trouble reproducing your issue. Please paste your code into a sandcastle example, make sure that it runs, then click the "Share" button on the toolbar. This will save your code as a gist and generate a link to it that I can run.
I suspect there's some sort of memory leak in your code which we'll hopefully be able to debug together. Internet Explorer has some known issues with texture memory, but other browsers should be fine.
Thanks,
- Rachel
On Thursday, June 1, 2017 at 1:53:14 PM UTC-4, Miceli, Carlo J. wrote:
Hi Rachel,
Were you able to catch the issue we are having with our example ?
Happens with Chrome,Firefox and IE.
Let me know.
Thank you
Carlo
},<o:p
Hi Rachel,
Ok I am running some tests on the example you sent me to see if there still are memory issues..
I run the CZML example you sent me and click on one of the tracks on the map and a description box comes up and stays up even after all intervals
If I convert this example to KML with a box from one of you examples.. it runs but when you click on the box with your
Mouse the description box comes up on the map but then clears at the one second interval.
This does not happen with czml but it does with kml.
Here is the example
Is there a reason why a KML data source at interval time clears the displayed box on the map from when you click on the source on the map but
With CZML data source this behavior does not happen
You can use my example from before (link below) to see this differences in behavior.
Let me know what you think
Sorry..
Here is the shared link
Sorry here is the shared link
From: Miceli, Carlo J.
Sent: Wednesday, June 07, 2017 7:47 AM
To: 'Rachel Hwang'; cesium-dev
Subject: RE: EXTERNAL: Re: [cesium-dev] Re: Porting over GE to Cesium using network links with KML files
Hi Rachel,
Ok I am running some tests on the example you sent me to see if there still are memory issues..
I run the CZML example you sent me and click on one of the tracks on the map and a description box comes up and stays up even after all intervals
If I convert this example to KML with a box from one of you examples.. it runs but when you click on the box with your
Mouse the description box comes up on the map but then clears at the one second interval.
This does not happen with czml but it does with kml.
Here is the example
Is there a reason why a KML data source at interval time clears the displayed box on the map from when you click on the source on the map but
With CZML data source this behavior does not happen
You can use my example from before (link below) to see this differences in behavior.
Let me know what you think
Here is a better point.
Click on point.. Description comes up.. Then clears at interval time with KML data source.
Behavior does not clear displayed description with CZML data source
From: Miceli, Carlo J.
Sent: Wednesday, June 07, 2017 7:50 AM
To: 'Rachel Hwang'; 'cesium-dev'
Subject: RE: EXTERNAL: Re: [cesium-dev] Re: Porting over GE to Cesium using network links with KML files
Sorry here is the shared link
From: Miceli, Carlo J.
Sent: Wednesday, June 07, 2017 7:47 AM
To: 'Rachel Hwang'; cesium-dev
Subject: RE: EXTERNAL: Re: [cesium-dev] Re: Porting over GE to Cesium using network links with KML files
Hi Rachel,
Ok I am running some tests on the example you sent me to see if there still are memory issues..
I run the CZML example you sent me and click on one of the tracks on the map and a description box comes up and stays up even after all intervals
If I convert this example to KML with a box from one of you examples.. it runs but when you click on the box with your
Mouse the description box comes up on the map but then clears at the one second interval.
This does not happen with czml but it does with kml.
Here is the example
Is there a reason why a KML data source at interval time clears the displayed box on the map from when you click on the source on the map but
With CZML data source this behavior does not happen
You can use my example from before (link below) to see this differences in behavior.
Let me know what you think
Hi Did anyone get a chance to look at the links below that show the difference of the description popup clears at
Every interval for KML but not for CZML ?
Is this a design flaw in KML ?
Please let me know ?
Thanks,
Carlo
From: Miceli, Carlo J.
Sent: Wednesday, June 07, 2017 8:12 AM
To: 'Rachel Hwang'; 'cesium-dev'
Subject: RE: EXTERNAL: Re: [cesium-dev] Re: Porting over GE to Cesium using network links with KML files
Here is a better point.
Click on point.. Description comes up.. Then clears at interval time with KML data source.
Behavior does not clear displayed description with CZML data source
From: Miceli, Carlo J.
Sent: Wednesday, June 07, 2017 7:50 AM
To: 'Rachel Hwang'; 'cesium-dev'
Subject: RE: EXTERNAL: Re: [cesium-dev] Re: Porting over GE to Cesium using network links with KML files
Sorry here is the shared link
From: Miceli, Carlo J.
Sent: Wednesday, June 07, 2017 7:47 AM
To: 'Rachel Hwang'; cesium-dev
Subject: RE: EXTERNAL: Re: [cesium-dev] Re: Porting over GE to Cesium using network links with KML files
Hi Rachel,
Ok I am running some tests on the example you sent me to see if there still are memory issues..
I run the CZML example you sent me and click on one of the tracks on the map and a description box comes up and stays up even after all intervals
If I convert this example to KML with a box from one of you examples.. it runs but when you click on the box with your
Mouse the description box comes up on the map but then clears at the one second interval.
This does not happen with czml but it does with kml.
Here is the example
Is there a reason why a KML data source at interval time clears the displayed box on the map from when you click on the source on the map but
With CZML data source this behavior does not happen
You can use my example from before (link below) to see this differences in behavior.
Let me know what you think
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+unsubscribe@googlegroups.com.
Hi.
With my continue port of GE to Cesium I have some other Google Earth Plugin procedures I need to port.
Google.earth.addEventListener (“click”)… type is KmlPlaceMark.
Does Cesium have an equivalent of this function for KML ?
Thank you,
Carlo
Hi..
This helps .. to be more specific I am trying to port this code over.
Any examples would help using KML placemark.
Thanks,
Carlo
function addPlacemarkEventListener() {
//This code captures clicks on placemarks and places data within the left hand pane of web page
// Listen for mouse click on the window (look specifically for point placemarks).
var croName;
var croDesc;
var placemark;
var hookNum = 0;
google.earth.addEventListener(ge.getWindow(), 'click', function(event) {
if ( event.getTarget().getType() == 'KmlPlacemark' &&
( event.getTarget().getGeometry().getType() == 'KmlPoint' || event.getTarget().getGeometry().getType() == 'KmlMultiGeometry' )
){
event.preventDefault();
placemark = event.getTarget();
croName = placemark.getName();
croDesc = placemark.getDescription();
if (!croDesc == "") {
hookNum = hookNum + 1;
if (hookNum > 3)
{
hookNum = 1;
}
// Add to Cro Based upon Hook Number
if (hookNum ==1)
{
document.getElementById("trk1Id").innerHTML = "Id: " + croName;
document.getElementById("trk1Details").innerHTML = croDesc;
croObjects[0] = croName;
}
else if (hookNum == 2)
{
document.getElementById("trk2Id").innerHTML = "Id: " + croName;
document.getElementById("trk2Details").innerHTML = croDesc;
croObjects[1] = croName;
}
else
{
document.getElementById("trk3Id").innerHTML = "Id: " + croName;
document.getElementById("trk3Details").innerHTML = croDesc;
croObjects[2] = croName;
}
}
if (event.getTarget().getGeometry().getType() == 'KmlMultiGeometry' ) {
//this most Likely ADSB point therefore create point based placemark other downstream processing can handle
//alert ("detected multiGeometry");
placemark = ge.createPlacemark('');
var point = ge.createPoint('');
//var destLat = event.getTarget().getAbstractView().getLatitude();
//var destLon = event.getTarget().getAbstractView().getLongitude();
//var destAlt = event.getTarget().getAbstractView().getAltitude() * 0.3048;
//alert ("this is the values " + destLat + " " + destLon + " " + destAlt );
point.setLatitude(event.getTarget().getAbstractView().getLatitude());
point.setLongitude(event.getTarget().getAbstractView().getLongitude());
// NOTE UNLIKE OTHER DATA FROM AFT & GE THIS ALTITUDE DATA IS IN FEET THEREFORE MUST CONVERT TO METERS!!!
point.setAltitude(event.getTarget().getAbstractView().getAltitude() * 0.3048);
placemark.setGeometry(point)
}
// always add placemarks points for ruler calculations regardless of ruler style
if (placemarkRulerEnabled || pointRulerEnabled) {
addRulerPoint(placemark);
}
if (cameraViewEnabled) {
pointCamera(placemark);
objectTrackedByCamera = croName;
}
}
else {
//not a placemark or kml point however if pointRulerEnabled then we want to get the lat/lon/alt of the point(s)
// selected to compute the distance
if (pointRulerEnabled) {
// get point geometry from window
// Create the placemark and add it to Earth.
placemark = ge.createPlacemark('');
var point = ge.createPoint('');
point.setLatitude(event.getLatitude());
point.setLongitude(event.getLongitude());
point.setAltitude(event.getAltitude());
placemark.setGeometry(point);
if (rulerIndex==0) {
var tempId = 's' + numRulers;
placemark.setName(tempId);
currentKmlObjects[tempId] = placemark;
}
else {
var tempId = 'e' + numRulers;
placemark.setName(tempId);
currentKmlObjects[tempId] = placemark;
}
ge.getFeatures().appendChild(placemark);
addRulerPoint (placemark);
}
if (cameraViewEnabled) {
// get point geometry from window
// Create placemark holder
var tempPlacemark = ge.createPlacemark('');
var point = ge.createPoint('');
point.setLatitude(event.getLatitude());
point.setLongitude(event.getLongitude());
point.setAltitude(event.getAltitude());
tempPlacemark.setGeometry(point);
pointCamera(tempPlacemark);
objectTrackedByCamera = "";
}
}
});
}
From: cesiu...@googlegroups.com [mailto:cesiu...@googlegroups.com]
On Behalf Of Rachel Hwang
Sent: Monday, June 26, 2017 10:16 AM
To: cesium-dev
Cc: elkw...@gmail.com; Miceli, Carlo J.
Subject: Re: EXTERNAL: Re: [cesium-dev] Re: Porting over GE to Cesium using network links with KML files
Hi,
--
With the continue Google Earth Port… I am having style issues with the entities name. They are blurred and hard to read especially zoomed out.
Here is a placemark in our KML file.
<Placemark class="trk4"><name>4 {DEBBIE LOU}</name><Style><LabelStyle><scale class="scaleLabel_track">0.55</scale></LabelStyle><IconStyle><heading>264.873</heading><scale class="scaleIcon_track">0.65</scale><Icon><href>./trackAIS.png</href></Icon></IconStyle></Style><Point><coordinates>-82.629890442,27.776836395,0.0917636</coordinates></Point><description><![CDATA[<table border="1"><b><tr><th colspan="3">TRACK</th></tr><tr><th>Item</th><th>Value</th><th>Units</th></tr><tr><td>Latitude</td><td align="right">27.7768</td><td>deg WGS 84</td></tr><tr><td>Longitude</td><td align="right">-82.6299</td><td>deg WGS 84</td></tr><tr><td>Speed</td><td align="right">0.0</td><td>knots</td></tr><tr><td>Heading</td><td align="right">264.9</td><td>deg</td></tr><tr><td>Kind</td><td colspan="2">AIS</td></tr><tr><td>Age</td><td align="right">01:29:21</td><td>duration</td></tr><tr><td>Last Update</td><td>0x02010001</td><td>SensorId</td></tr><tr><td>Last Update</td><td colspan="2">2017-06-28T14:46:36.663Z</td></tr></b></table>]]></description></Placemark>
Any ideas would greatly be appreciated. Thank you
Carlo

From: cesiu...@googlegroups.com [mailto:cesiu...@googlegroups.com] On Behalf Of Rachel Hwang
Sent: Monday, June 26, 2017 10:16 AM
To: cesium-dev
Cc: elkw...@gmail.com; Miceli, Carlo J.
Subject: Re: EXTERNAL: Re: [cesium-dev] Re: Porting over GE to Cesium using network links with KML files
Hi,
--
Ok. Since I have not heard on this.. I am assuming this is how Cesium renders KML files and this is normal ?
To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/tKR2AdpsglA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.