Using the pegman on a custom map (streetview)

403 views
Skip to first unread message

Mqrius

unread,
Nov 1, 2010, 12:03:51 PM11/1/10
to google-map...@googlegroups.com
Hello

I have a custom map (Link), and I would like to add street view to it at some places. However, when I look at the Streetview docs, I only see the option to "modify the default Street View links to add a link to the custom imagery". Obviously, this is impossible, because my map is a map of a computer game.

I would like the user to be able to pick up the pegman, and show a blue outline or something on predefined areas, and also be able to place the pegman there, and get a street view, of course. Is this supported in any way?

Marc Ridey

unread,
Nov 1, 2010, 9:59:59 PM11/1/10
to google-map...@googlegroups.com
Two issues:

1. The StreetView panorama: you can supply a panorama provider and set
a custom pano ID. When your provider is called, supply the tile
definitions and the links to further panoramas. You can that way run a
complete world of panoramas without ever displaying Google's
StreetView tiles.

2. The Map and the StreetView control: This is a bit more complex. The
StreetView control is tightly integrated with Google's StreetView
data. As you drag the control, it displays the 'blue' layer, query the
StreetView service with the pegman's latlng position and retrieves the
corresponding pano ID. The simplest may be to disable the StreetView
control and position your own marker on the map, monitor the marker
being dragged and set the panorama panoID according to your marker
position.

> --
> 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 google-map...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-js-a...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>

Mqrius

unread,
Nov 3, 2010, 8:17:21 AM11/3/10
to google-map...@googlegroups.com
Thanks, sounds like a good idea :)
Reply all
Reply to author
Forward
0 new messages