|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
/*! |
|
|
|
|
TimelineJS |
|
|
|
|
Version 2.10 |
|
|
|
|
Version 2.11 |
|
|
|
|
Designed and built by Zach Wise at VéritéCo |
|
|
|
|
|
|
|
|
|
This Source Code Form is subject to the terms of the Mozilla Public |
|
|
|
@ -3076,6 +3076,12 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') {
|
|
|
|
|
address = VMM.Util.getUrlVars(m.url)["q"], |
|
|
|
|
marker; |
|
|
|
|
|
|
|
|
|
if (address.match("loc:")) { |
|
|
|
|
var address_latlon = address.split(":")[1].split("+"); |
|
|
|
|
location = new google.maps.LatLng(parseFloat(address_latlon[0]),parseFloat(address_latlon[1])); |
|
|
|
|
has_location = true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
geocoder.geocode( { 'address': address}, function(results, status) { |
|
|
|
|
if (status == google.maps.GeocoderStatus.OK) { |
|
|
|
|
|
|
|
|
@ -3105,6 +3111,14 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') {
|
|
|
|
|
} else { |
|
|
|
|
trace("Geocode for " + address + " was not successful for the following reason: " + status); |
|
|
|
|
trace("TRYING PLACES SEARCH"); |
|
|
|
|
|
|
|
|
|
if (has_location) { |
|
|
|
|
map.panTo(location); |
|
|
|
|
} |
|
|
|
|
if (has_zoom) { |
|
|
|
|
map.setZoom(zoom); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
loadPlaces(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -3165,16 +3179,25 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
trace("Place search for " + address + " was not successful for the following reason: " + status); |
|
|
|
|
trace("Place search for " + search_request.query + " was not successful for the following reason: " + status); |
|
|
|
|
// IF There's a problem loading the map, load a simple iFrame version instead
|
|
|
|
|
trace("YOU MAY NEED A GOOGLE MAPS API KEY IN ORDER TO USE THIS FEATURE OF TIMELINEJS"); |
|
|
|
|
trace("FIND OUT HOW TO GET YOUR KEY HERE: https://developers.google.com/places/documentation/#Authentication"); |
|
|
|
|
trace("USING SIMPLE IFRAME MAP EMBED"); |
|
|
|
|
|
|
|
|
|
if (m.url.match("https")) { |
|
|
|
|
m.url = m.url.replace("https", "http"); |
|
|
|
|
|
|
|
|
|
if (has_location) { |
|
|
|
|
map.panTo(location); |
|
|
|
|
if (has_zoom) { |
|
|
|
|
map.setZoom(zoom); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
trace("USING SIMPLE IFRAME MAP EMBED"); |
|
|
|
|
if (m.url[0].match("https")) {
|
|
|
|
|
m.url = m.url[0].replace("https", "http"); |
|
|
|
|
} |
|
|
|
|
VMM.ExternalAPI.googlemaps.createiFrameMap(m); |
|
|
|
|
} |
|
|
|
|
VMM.ExternalAPI.googlemaps.createiFrameMap(m); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
@ -4014,7 +4037,7 @@ if(typeof VMM != 'undefined' && typeof VMM.MediaElement == 'undefined') {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
loadingmessage: function(m) { |
|
|
|
|
return "<div class='loading'><div class='loading-container'><div class='loading-icon'></div>" + "<div class='message'><p>" + m + "</p></div></div></div>"; |
|
|
|
|
return "<div class='vco-loading'><div class='vco-loading-container'><div class='vco-loading-icon'></div>" + "<div class='vco-message'><p>" + m + "</p></div></div></div>"; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
thumbnail: function(data, w, h, uid) { |
|
|
|
@ -6432,7 +6455,7 @@ if(typeof VMM != 'undefined' && typeof VMM.Timeline == 'undefined') {
|
|
|
|
|
$navigation, |
|
|
|
|
slider, |
|
|
|
|
timenav, |
|
|
|
|
version = "2.10", |
|
|
|
|
version = "2.x", |
|
|
|
|
timeline_id = "#timelinejs", |
|
|
|
|
events = {}, |
|
|
|
|
data = {}, |
|
|
|
|