Pegman on top of custom marker

93 views
Skip to first unread message

Danzarak

unread,
Oct 8, 2010, 12:05:08 PM10/8/10
to Google Maps JavaScript API v3
Hello,

Something appears to have changed today, about 3pm UK time. Suddenly,
the pegman has appeared on my map, which would be fine except he
sticks like glue to the marker with the miniature streetview.

I am using a custom marker on a google map, with a miniature
streetview inside the infowindow. Users add this marker to the map,
then drag it to wherever they want to add a new location... on
dragend, the infowindow pops open and displays streetview at that
location (if available.) However as soon as I add the moveable marker
now, the pegman is in front of it and can't be removed. If I try to
drag the marker, I am only able to drag the pegman to the new
location. The custom marker catches up and moves to the location.

I need to switch off the Pegman at least short term. Switching off
the control in the top left (default) doesn't prevent him from
appearing on the marker. Please... what can I do, I have an active
map being used that is now not working for adding new markers!

Dan

Luke Mahé

unread,
Oct 8, 2010, 7:19:04 PM10/8/10
to google-map...@googlegroups.com
Hi Dan,

Add streetViewControl: false to your Map constructor options and that will turn off the steetview pegman.

Hope this helps.

-- Luke



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


bardu

unread,
Oct 8, 2010, 9:49:41 PM10/8/10
to Google Maps JavaScript API v3
Hi,

just FYI, I have a map with markers and when a marker is clicked a
infoWindow pups up with a streetview panorama of the location.

setting

streetViewControl: false

removes the pegman from the navigation control, however, on to of the
marker which has the focus the is always the pegman.

Regards,
Stephan



On Oct 8, 4:19 pm, Luke Mahé <lu...@google.com> wrote:
> Hi Dan,
>
> Add streetViewControl: false to your Map constructor options and that will
> turn off the steetview pegman.
>
> Hope this helps.
>
> -- Luke
>
> On Sat, Oct 9, 2010 at 3:05 AM, Danzarak <danza...@gmail.com> wrote:
> > Hello,
>
> > Something appears to have changed today, about 3pm UK time.  Suddenly,
> > the pegman has appeared on my map, which would be fine except he
> > sticks like glue to the marker with the miniature streetview.
>
> > I am using a custom marker on a google map, with a miniature
> > streetview inside the infowindow.  Users add this marker to the map,
> > then drag it to wherever they want to add a new location... on
> > dragend, the infowindow pops open and displays streetview at that
> > location (if available.)  However as soon as I add the moveable marker
> > now, the pegman is in front of it and can't be removed.  If I try to
> > drag the marker, I am only able to drag the pegman to the new
> > location.  The custom marker catches up and moves to the location.
>
> > I need to switch off the Pegman at least short term.  Switching off
> > the control in the top left (default) doesn't prevent him from
> > appearing on the marker.  Please... what can I do, I have an active
> > map being used that is now not working for adding new markers!
>
> > Dan
>
> > --
> > 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>
> > .

Danzarak

unread,
Oct 9, 2010, 3:02:02 AM10/9/10
to Google Maps JavaScript API v3
Hello,

I have already disabled Street View Control, this hasn't solved the
problem of the pegman appearing on the marker itself.

You can see the problem in action at www.independentfullstop.com/Leeds/
and
click on Add New Place. My script is there, it's called Google
Automation.

Thanks,
Dan

On Oct 9, 12:19 am, Luke Mahé <lu...@google.com> wrote:
> Hi Dan,
>
> Add streetViewControl: false to your Map constructor options and that will
> turn off the steetview pegman.
>
> Hope this helps.
>
> -- Luke
>
> On Sat, Oct 9, 2010 at 3:05 AM, Danzarak <danza...@gmail.com> wrote:
> > Hello,
>
> > Something appears to have changed today, about 3pm UK time.  Suddenly,
> > the pegman has appeared on my map, which would be fine except he
> > sticks like glue to the marker with the miniature streetview.
>
> > I am using a custom marker on a google map, with a miniature
> > streetview inside the infowindow.  Users add this marker to the map,
> > then drag it to wherever they want to add a new location... on
> > dragend, the infowindow pops open and displays streetview at that
> > location (if available.)  However as soon as I add the moveable marker
> > now, the pegman is in front of it and can't be removed.  If I try to
> > drag the marker, I am only able to drag the pegman to the new
> > location.  The custom marker catches up and moves to the location.
>
> > I need to switch off the Pegman at least short term.  Switching off
> > the control in the top left (default) doesn't prevent him from
> > appearing on the marker.  Please... what can I do, I have an active
> > map being used that is now not working for adding new markers!
>
> > Dan
>
> > --
> > 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>
> > .

Danzarak

unread,
Oct 9, 2010, 7:01:49 AM10/9/10
to Google Maps JavaScript API v3
Fixed this... it was because I was linking together the street view
pano in the marker infowindow, with the map itself.

Removed

map.setStreetView(pano)

and now my marker is pegman free, and I can switch the very cool
streetview pegman back on again for the main map and browse my custom
markers in streetview. Thanks Google :)
Reply all
Reply to author
Forward
0 new messages