1. Yes

2.
function onYawChange(newYaw) {
  var GUY_NUM_ICONS = 16;
  var GUY_ANGULAR_RES = 360/GUY_NUM_ICONS;
  if (newYaw < 0) {
    newYaw += 360;
  }
  guyImageNum = Math.round(newYaw/GUY_ANGULAR_RES) % GUY_NUM_ICONS;
  guyImageUrl = "http://maps.gstatic.com/mapfiles/cb/man_arrow-"; +
guyImageNum + ".png";
  marker.setImage(guyImageUrl);
}


On Jul 26, 12:06 am, jwalton <[email protected]> wrote:
> I have an application (dual Google Map and Panorama) where, on the
> Google Map, I wish to display a Pegman above a marker that indicates
> the direction in which Pegman is "looking" (very similar to Google
> Maps web page).
>
> I believe that best way is to use an appropriate Sprite such 
> ashttp://maps.gstatic.com/intl/en_ALL/mapfiles/cb/mod_cb_scout/cb_scout...
>
> However, ther are several others variations of the Sprite, with
> suffixes of 001,002,003 etc.
>
> Questions:
>
> 1) is "000.png" the best and recommended "standard" Sprite to use for
> this application?
>
> 2) Given a bearing of 0-15 (representing 0-360 degrees), is there a
> simple algorithm that will enable me to select the correct element
> from the Sprite. Or do I need to build a little look-up table?
>
> John Walton

-- 
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.

Reply via email to