I had all of that but the StreetViewOverlay never showed up unless I went and enabled the StreetView control and started dragging the pegman. What I was trying to accomplish was to have the StreetViewOverlay, the blue road map that shows available street view locations, show up, like it does when you start dragging the pegman, without having that control enabled.
I did a very roundabout way of accomplishing this by adding a new ImageMapType but that seemed and still seems like a lot of work for something that was as simple as adding the streetview overlay in v2 of the api. I am still butting heads with the map click event not sending an overlay and overlaylatlng on the click event as well. I was able to tell if the user had clicked on the streetview overlay and therefore knew if the location was valid or not just by that, as well as having a generic map click event that could handle massive amounts of marker with just a single event. Now I have to add a listener for each individual marker. But that is another problem in and of itself. Is there no simple was to display the StreetView overlay than adding the ImageMapType? I was wanting to create a button that a user clicked on, this is easy since my googlemaps application is an embedded web component in a c++ program I am working on, and trigger the necessary javascript functions to show the overlay. Then when the user clicked on the overlay have it set the Panorama position to the location the user clicked. I didn't want the pegman icon to be dragged on there, but rather the user click the street view overlay to set the pano position. Does this make sense? On Fri, Jun 11, 2010 at 2:01 PM, Chad Killingsworth < [email protected]> wrote: > This post indirectly talks about how to do that: > > http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/f0f69c93b1107499/ > > You'll need to use/set a custom panorama. > > Chad Killingsworth > > On Jun 11, 9:53 am, Nathan Raley <[email protected]> wrote: > > Is it possible to add the old style street view overlay without using the > > street view control? > > > > I really would like to toggle the overlay on and off like I could do with > > the old v2 of the api but I have yet to see anything with regards of how > to > > add the street view overlay to the map without dragging the peg man. > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-maps-js-api-v3%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
