Skip to content

nickwsp/leaflet-streetview

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Street View Buttons

This is a simple plugin for Leaflet that shows a row of buttons. When you click any of these buttons, a new window or tab is opened, with a street view focused on the centre of the map. Just do:

L.streetView().addTo(map);

Check out a demo here.

If you need to specify the focus point, instead of it being in the centre, use fixCoord(latlon) method, and releaseCoord() to continue tracking the map.

Providers currently supported:

  • Google Street View
  • Bing StreetSide
  • Yandex Panoramas (for Russia and neighbouring countries)
  • MosAtlas (for Moscow, Russia)
  • Mapillary
  • OpenStreetCam

Please make a pull request if you know an URL template for another provider.

License and Author

Written by Ilya Zverev, published under WTFPL: do what you want with it.

About

Buttons for opening Street View services

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 81.1%
  • HTML 18.9%