Created
January 21, 2012 18:42
-
-
Save andregoncalves/1653554 to your computer and use it in GitHub Desktop.
GeoPhoto widget initializer code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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