Hi all I'm a newbie in google maps API, I'm trying to recreate google maps' Street View behavior, so I create a static control with the image of pegman unenable above of the zoom control, and a button to activate street view, so I create a draggable object over the pegman control, so the user can drag the pegman(draggable object) over the map and drop it in the map, so when it drops I change the draggable object to a Gmarker, to move the marker all over the map. When I detect de "mouseup" event, I catch the x and y position of the mouse and convert it to latlong position using google maps methods to set the marker over the map. But when I disable the streetview and enable it again, I put back the draggable object over the control, but it acts weird, the mouse pointer looks like its grabbing the object but the object is far away the mouse pointer, and it moves when I move the mouse, and it never points in the right place over the streetview layer. I also try to remove the draggable object from the maps and recreate it but it gives me an error.
This is the right way to do it??? I didn't find any code example how to use the pegman icon, and this is the way I figured out, there must be a better way or the right way??? Thanks in Advance for you help Frank --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
