[ka-Map-users] Re: kaXmlIcon rotation

Pg pg.navone at gmail.com
Sat Apr 22 06:24:00 EDT 2006

The wz_rotateimg is very tricky.

I don't know why it's not working, but I can suggest an alternative
solution I use to represent the heading of vehicles.
I simply have 8 different icons for different headings
(N, NE, E, SE,...) and I load the icon that
approximates the real heading.

Not so smart but...


2006/4/21, Wei Yang, Ng - Wayne <wayne at datalinktech.com.au>:
> Hi Pg,
>       I am interested in rotating icons to show GPS headings/bearings
> (0-360). I am currently looking at your code in kaXmlOverlay.js. I came
> across wz_rotateimg.js while searching for a solution in google. I added
> the script to my html page and the following code in kaXmlOverlay.js:
>     ++img.name = 'marker';
> at line 940. I then added the following to my html page:
> <script type="text/javascript">
> SET_ROTATABLE("marker",90);
> </script>
> This basically invokes a function in wz_rotateimg.js and sets the img to
> be rotateable. However, when I refresh my page, the icon still shows but
> is not rotated. Is this happening because the image is within the div
> element?
> Cheers,
> Wayne

More information about the ka-Map-users mailing list