[ka-Map-users] Re: kaXmlIcon rotation
Wei Yang, Ng - Wayne
wayne at datalinktech.com.au
Mon Apr 24 00:40:23 EDT 2006
How about kaXmlSVG for kaXmlOverlay.js ? Do you like the idea?
> 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:
>> 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
More information about the ka-Map-users