algorithm - Programmatically creating vector arrows in KML -


Is anyone practically practical examples of portraying a mouse that are vectors in KML? In particular, there is a magnitude and a brain data on the coordinates given to me, and I want to do the mouse (or other graphical element) generated on the basis of these values.

How can I think about this:

Image directory (a cruel power path): one of 360 different image files Create image directors (maybe the batch rotate an image) Every variant Azimuth I have seen "things like" but looking for code that I can use in a program instead of a web program problem : Arrow does not have magnitude reference That would be a label.

  • Line creation in KML : Probably create a formula that creates a line with the origin at the coordinate points, the length of the proportional line for the magnesite With, and multiplied according to Azimath Then there will be two more lines, maybe to get the 30-degree arrow head expanded from the end of the previous line. Problems : Not a different image icon, so it's not sure how it will work in KML. It is also not sure how easy it will be to create algorithm.

  • Different image generation: probably creates a PHP file that uses image magnifier or something similarly dynamically in the same method Generate a .png file, and then link to the icon using the URI "domain.tld / imagegen.php? Magnitude = merguev and azimuth = essaymvalue" Problem : There is still a problem writing algorithm for image generation.

  • So, the question : Does anyone else have to come up with solutions for the generation instead of the vectors (arrows only) generation?

    I have seen this with a version of Option 1 , But using only one image of an arrow and setting the size and direction using the KML IconStyle element.

    In whatever format you place them in the headings (in the north to 0 degrees to 360 degrees in the north by clockwise) and the vector length scale factor (in a float in decimal notation) move your vectors first. Have to change You have to give each vector a unique name. Then make a part of KML for each vector, with the scale of 1.8 for vector "my-vector-1" and title of 90.0 (i.e.):

       

    And then place the vector in the map context on IconStyle:

       

    Wrap it all up:

      & lt; Km l & gt; & Lt; Document & gt; ... & lt; / Document & gt; & Lt; / Kml & gt;  

    And you should display a bunch of vector. Getting the right factor may be able to do some experiments (and it will depend on the size of your arrow's image), but this approach should be very fast and load many different images. If this is any help, then maybe I can lose Fortran to do this ...


    Comments

    Popular posts from this blog

    c# - ListView onScroll event -

    PHP - get image from byte array -

    Linux Terminal Problem with Non-Canonical Terminal I/O app -