Forum


Extended maps & google little yellow man

  • Franco
  • Franco's Avatar Topic Author
  • Offline
  • Enthusiastic learner
  • Enthusiastic learner
  • Siti Web Turistici Alberghieri
More
7 years 5 months ago #7633 by Franco
I would like to add the street view little yellow man in the map control bar/zoom.

Will you be so kind to help me add the code/script to the extended maps html template file?

Regards and thanks in advance

Give someone a fish, he will only get fat; teach someone to fish, he will learn to survive!
www.conforthotel.co.uk www.intertourtravel.com www.booksouthitaly.com www.vacanzealsud.it
Follow me on twitter: twitter.com/francocauter
More
7 years 5 months ago #7634 by Vince Wooll
I've never tried it, however Googling streetview comes up with this page

code.google.com/apis/maps/documentation/...ices.html#Streetview

so I'd expect you'd need to open extended_maps.html, then follow these instructions :

Create a container (usually a <div> element) to hold the Street View Flash® viewer.
Create a GStreetviewPanorama object and place it within the container.
Initialize the Street View object to refer to a specific location and display an initial "point of view" (POV).
Handle unsupported browsers by checking for the 603 error value.

If you see code.google.com/apis/maps/documentation/...reetview-simple.html you'll see a simple example, I'd expect you'd need to add the new javascript, which would look similar to:

var fenwayPark = new GLatLng(42.345573,-71.098326);
panoramaOptions = { latlng:fenwayPark };
myPano = new GStreetviewPanorama(document.getElementById("pano"), panoramaOptions);
GEvent.addListener(myPano, "error", handleNoFlash);


after where it says

map.setCenter(bounds.getCenter());

in the extended maps template.



I've never tried this, I could be completely wrong, maybe somebody who's done it will come along and point out any problems with it.

Follow me on twitter
Do not send me PMs, if you need to contact me use the ticket system.
Read this before you customise Jomres files

ABOUT US

Vince portrait smallaladar

Developed and maintained by Vince Wooll and Aladar Barthi, Jomres was initially conceived in early 2005 as a Mambo based solution to a client’s hotel management needs. While it wasn't originally expected to be an online booking system it quickly morphed into one as users requested more and more features.

As the number of feature requests grew Vince knew that he would need to dedicate more time to the project and in July 2005 Jomres was formally released as a commercial project. Since then, Jomres has become one of Mambo’s, and now Joomla’s, longest running projects. It has survived various versions of Mambo, then Joomla 1.0, 1.5, 1.6, 1.7, 2.5 and 3.

Aladar joined the project in 2010 after using Jomres for his own projects. He was active on the forum, helping other members of the community and eventually Vince invited him to join the team. He has since become an integral part of the project and has contributed significantly to it's development over the years.

Whilst not formally part of the Jomres project, Rodrigo Rocco and the team have become firm friends. Rod is a freelancer who specialises in doing custom work for Jomres users and developing custom plugins for the system that take advantage of it's modular design. He has built many useful extensions including his fabulous new Valentina Template Package.

 

Jomres and the Jomres Logo is trademarked and can't be used without written consent from the owner.

www.jomres.net is not affiliated with or endorsed by the Joomla! Project, Open Source Matters or the WordPress project. The Joomla! & WordPress names and logos are used under a limited license granted by Open Source Matters and the WordPress Projects.

© Copyright 2005 - 2018 Woollyinwales IT.