This object is in archive! 

Network KML question: What is better, to have 24 different icons for different angles of points, or dyn. rotate them by IconStyle->heading

elmuSSo shared this question 10 years ago
Answered

I`m drawing aircraft icons from KML Network link. They have 24 different positions (every 15 degrees (24*15=360)) . Now I just have 24 different icons for each state. Is it better to just have one icon, that I will rotate using "IconStyle->heading" KML feature? The second option will make the download of icons faster (but does it matter if they are cached by Locus anyway), but will that influence the performance and processor/memory usage by Locus?


So my question again: From the point of view of a programmer, which option is better?

Replies (5)

photo
1

hmm, hard to say. In case you see quite low number of images on screen at once, I think rotation is not a big problem.


It`s always the same problem - consumed memory versus efficiency


- if you device, do not have problems with memory, then 24 cached icons may speed up drawing a little bit


- if you have problems with memory, or your device is fast, then it`s better to use one rotated image


I personally probably prefer one rotated icon. It reduce KML file, allow to cache just one icon and on performance it will still have almost zero effect.


And in case, you`ll see more then 1000 planes on screen at once, Locus will be slow in all cases :)

photo
1

Exactly, it will be slow in all cases, thats why it is important to minimise the impact.


What would you say on caching an already-rotated icons?


Lets say I`m downloading ONE icon, and I`m using its 24 rotated versions. Everytime Locus is rotating it to a new heading, it is internally creating and caching a rotated version of this icon. What do you think about that?

photo
1

no :) I really think it`s not so bad with this rotation. You may try it on your own if you want. Just try difference between 24 icons and 1 rotated.


Also, what you want is quite crazy because in you case, you want to use just 24 angles. But what more generic cases, when someone want "unlimited" number of angles ...

photo
1

I also thought about that. Just think about a plausible limit, and thats it.

photo
1

Anyway I will try rotation, now when it is fixed:)

Replies have been locked on this page!