[ka-Map-users] Re: kaXmlIcon rotation
Pg
pg.navone at gmail.com
Tue Apr 25 15:39:45 EDT 2006
What is kaXmlSVG? Is there such an implementation?
There was a lot of discussion about vector graphics for
overlays: the main issue is we need different implementations for
different browsers (or the use of a third party plugin).
I'm doing experiments with <canvas> in Mozilla Firefox.
Seems to be very powerfull and efficient for small items (as icons and
small lines or polygons) but terribly unefficient for complex lines
and polygons (more than 100 vertex). But this is a very preliminary
result.
And last it works only for Firefox and Mac.
Bye
-Pg
2006/4/24, Wei Yang, Ng - Wayne <wayne at datalinktech.com.au>:
> Hi Pg,
> How about kaXmlSVG for kaXmlOverlay.js ? Do you like the idea?
>
> Cheers,
> Wayne
>
> Pg wrote:
> > Uhm?
> > 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...
> >
> > -Pg
> >
> > 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