user2695999
user2695999

Reputation: 23

Visibility of markers on map/panorama in google maps

My skills in Google Maps Api and JavaScript are limited so mybe I can get some help from you.

I have a marker that is visible both on the map and street view/panorama. Is there a way to hide the marker on the map but still have it visible in the street view/panorama? Thanks in advance.

Upvotes: 2

Views: 534

Answers (1)

Dr.Molle
Dr.Molle

Reputation: 117334

Bind the visible-property of the Marker to the visible-property of the StreetView

marker.bindTo('visible',map.streetView,'visible');

Upvotes: 1

Related Questions