map overlays in custom streetview

102 views
Skip to first unread message

archinform

unread,
Feb 16, 2011, 4:16:45 AM2/16/11
to Google Maps JavaScript API v3
Hi,

is it possible to create a map and a streetview in separate div
containers, with a streetview containing all the overlays from the
map?
In the docs I found, tthat is possible to use map overlays in
streetview with the standard streetview (with getStreetView(), but I
Haven't found a way to use this method with separate divs. Does anyone
knows a solution?

Sascha

archinform

unread,
Feb 18, 2011, 7:39:25 AM2/18/11
to Google Maps JavaScript API v3
Doesn't anybody have an idea?

Paulo Fernandes

unread,
Feb 19, 2011, 2:52:46 PM2/19/11
to google-map...@googlegroups.com, archinform
If I understand you...

You need to create 2 divs a
nd 2 codes

Post a link for your problem or what you wanna do.

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


archinform

unread,
Feb 19, 2011, 3:17:09 PM2/19/11
to Google Maps JavaScript API v3
Hi Paulo,

thanks for your answer.
Sorry I don't have a link with an example, but I try to explain it
again:
If You have a map (with some markers set) in a div container and You
switch to Streetview by dragging the pegman -> Streetview starts in
the map div (replacing map view) with your markers showing up in the
streetview.
But if You define a separate div for the Streetview, connecting it to
the map by map.setStreetView(panorama) -> No markers showing up in
streetview

This is described in the docs:
http://code.google.com/intl/en-EN/apis/maps/documentation/javascript/services.html#StreetView

I know, that it is possible with map.getStreetView to obtain the
Streetview scene with markers, but I don't find out a way to use this
method with separate divs for map and streetview.

Sascha


On Feb 19, 8:52 pm, Paulo Fernandes <paulofernande...@gmail.com>
wrote:
> If I understand you...
>
> You need to create 2 divs and 2 codes
>
> Post a link for your problem or what you wanna do.
>
> []s
>
> Paulo Fernandeshttp://www.google.com/profiles/paulofernandesjrhttp://twitter.com/paulofernandesj
> +55 11 9797-5974

Paulo Fernandes

unread,
Feb 19, 2011, 4:14:38 PM2/19/11
to google-map...@googlegroups.com, archinform
Try to do that, when you get the event when pegman is dropped ( i don't know if it is possible ) and create a new map instance

Rossko

unread,
Feb 19, 2011, 6:33:46 PM2/19/11
to Google Maps JavaScript API v3
> I know, that  it is possible with map.getStreetView to obtain the
> Streetview scene with markers, but I don't find out a way to use this
> method with separate divs for map and streetview.

This thread touches on a similar topic
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/b9dbe03522a8e7a9

archinform

unread,
Feb 20, 2011, 4:40:00 AM2/20/11
to Google Maps JavaScript API v3
Hi Rossko,

thanks for the link to the related post. The topic is indeed related
to my issue. I gonna post my question there again.

Sascha

On 20 Feb., 00:33, Rossko <ros...@culzean.clara.co.uk> wrote:
> > I know, that  it is possible with map.getStreetView to obtain the
> > Streetview scene with markers, but I don't find out a way to use this
> > method with separate divs for map and streetview.
>
> THi Rossko,his thread touches on a similar topichttp://groups.google.com/group/google-maps-js-api-v3/browse_thread/th...
Reply all
Reply to author
Forward
0 new messages