0
   

Is there a way to do these two operations with only a single line of code?

 
 
sabrick
 
Reply Tue 24 Mar, 2015 01:00 pm
var KML = new Cesium.KmlDataSource()
KML.load($.parseXML(res.value[0]))
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 650 • Replies: 2
No top replies

 
ApollosEnvy
 
  1  
Reply Wed 25 Mar, 2015 03:14 am
@sabrick,
The single line of code would have to run a separate file which would contain both of the commands for your variable.
0 Replies
 
maxdancona
 
  1  
Reply Wed 25 Mar, 2015 04:52 am
@sabrick,
Have you tried just combining them?

new Cesium.KmlDataSource().load($.parseXML(res.value[0]))

(although technically this isn't really the same since the variable KML is never set in the second form)
0 Replies
 
 

Related Topics

 
  1. Forums
  2. » Is there a way to do these two operations with only a single line of code?
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 04/26/2024 at 12:11:08