Skip to content

Instantly share code, notes, and snippets.

@andregoncalves
Created January 21, 2012 18:42
Show Gist options
  • Save andregoncalves/1653554 to your computer and use it in GitHub Desktop.
Save andregoncalves/1653554 to your computer and use it in GitHub Desktop.
GeoPhoto widget initializer code
geoPhoto.initialize({
container: 'map',
filter: '',
geolocation: true,
latitude: 37.7749295,
longitude: -122.4194155,
zoom: 8,
maxSearchResults: 100
});
/* Other initialization parameters
mapType: "ROADMAP",
markerIcon: "<url_for_icon_image>",
author: "<picasa_google_user_id>", // Picassa UserID, shows only photos from the user indicated
albums: <true|false>, // Shows user albums (author parameter is required, v1.6 only)
onPhotoOpen: function callback(image) {} // Return false to prevent default modal window
*/
function search() {
var search_input = document.getElementById('filter');
geoPhoto.setFilter(search_input.value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment