streetView - share markers and set options

124 views
Skip to first unread message

spiderplant0

unread,
Jun 27, 2010, 2:36:13 PM6/27/10
to Google Maps JavaScript API v3
Hi, I'm getting confused with StreetView. As far as I can tell there
are two main ways to show a street-view:
use: .getStreetView() on a map object
or use the constructor: new google.maps.StreetViewPanorama(...)
If you use the '.getStreetView()' way, I believe you cannot set
StreetViewPanoramaOptions such as disabling the address control.
And if you use the 'new google.maps.StreetViewPanorama' way, you dont
get automatic overlay sharing - e.g. markers that are on the map cant
be made to appear on the street-view.
Is there a way to allow full control of the streetview options and
allow markers to be automatically shown on both map and streetview? (I
guess the cumbersome alternative is to have 2 sets of identical
markers - one set for the map and one set for the streetview).
Thanks.

Nathan Raley

unread,
Jun 28, 2010, 9:05:09 AM6/28/10
to google-map...@googlegroups.com
Right now the only way to do this that I know of is to have 2 markers.  You can use the .bindTo("position", MarkerOnMainMap) method to bind the marker positions together so that when you drag one the other is dragged as well.  But as of right now the only way to have a custom street view pano and to show markers on both is to make 2 markers, one for the main map and one for the street view and to bind the position as I described above.


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


spiderplant0

unread,
Jun 28, 2010, 12:37:58 PM6/28/10
to Google Maps JavaScript API v3
Thanks for the reply,
Cheers.

On Jun 28, 2:05 pm, Nathan Raley <nlrale...@gmail.com> wrote:
> Right now the only way to do this that I know of is to have 2 markers.  You
> can use the .bindTo("position", MarkerOnMainMap) method to bind the marker
> positions together so that when you drag one the other is dragged as well.
>  But as of right now the only way to have a custom street view pano and to
> show markers on both is to make 2 markers, one for the main map and one for
> the street view and to bind the position as I described above.
>
> On Sun, Jun 27, 2010 at 1:36 PM, spiderplant0
> <spiderpla...@googlemail.com>wrote:
>
> > Hi, I'm getting confused with StreetView. As far as I can tell there
> > are two main ways to show a street-view:
> > use: .getStreetView() on a map object
> > or use the constructor: new google.maps.StreetViewPanorama(...)
> > If you use the '.getStreetView()' way, I believe you cannot set
> > StreetViewPanoramaOptions such as disabling the address control.
> > And if you use the 'new google.maps.StreetViewPanorama' way, you dont
> > get automatic overlay sharing - e.g. markers that are on the map cant
> > be made to appear on the street-view.
> > Is there a way to allow full control of the streetview options and
> > allow markers to be automatically shown on both map and streetview? (I
> > guess the cumbersome alternative is to have 2 sets of identical
> > markers - one set for the map and one set for the streetview).
> > Thanks.
>
> > --
> > 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<google-maps-js-api-v3%2Bunsu...@googlegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages