Feature Request: Launch street view without mouse action
Closed this issue · 1 comments
Hugo01 commented
Hello
First of all thanks for your effort, lib works wonderfull
I was wondering if somehow it was possible to create a method that you could call street view only passing a {lat: x, lng: y} without having to point on the map
Something like this:
const pegmanControl = new L.Control.Pegman({
position: 'bottomright'
theme: 'leaflet-pegman-v3-small'
})
pegmanControl.startView({lat:x, lng:y})
Raruto commented
If I'm not mistaken, this should be the function you are looking for:
pegmanControl.findStreetViewData(lat, lng);
Have a nice day,
Raruto