by "these two points" i mean the start vertex and end vertex of the line, of course
On 24 Nov., 15:29, Goetz Freytag <[email protected]> wrote: > i would consider letting the user draw a line along his house's edge. > you could then calculate the bearing between these two points. for > distances between points as short as your average house side-length > you needn't compute spherical bearings, you can just do it in > euclidean space. > > On 24 Nov., 10:08, Mike Williams <[email protected]> wrote: > > > You might have better luck with the Flash API than the Javascript API > > because Flash has the ability to rotate images but Javascript doesn't > > (except CANVAS images in HTML5 compliant browsers). > > > If you decide to go with Javascript, then you'll need to create a large > > number of images representing the icon rotated by various amounts, and > > switch between then with marker.setIcon(). > > > Perhaps you could have two buttons in the infowindow [Rotate Left] > > [Rotate Right]. Instead of using onClick on those buttons, you could use > > onMousedown and onMouseup. While the mouse is down run a timer to slowly > > rotate the icon using marker.setIcon() calls. > > > -- > > Mike Williamshttp://econym.org.uk/gmap -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
