Post trek update: recentering map + style minor changes
This commit is contained in:
@@ -38,15 +38,17 @@ oSpot.pageInit = function(asHash)
|
||||
});
|
||||
|
||||
//Centering map on last message
|
||||
var oLastMsg = oMessages[oMessages.length-1];
|
||||
//var oLastMsg = oMessages[oMessages.length-1];
|
||||
var $Map = $("#map").gmap3(
|
||||
{
|
||||
map:
|
||||
{
|
||||
options:
|
||||
{
|
||||
center:{lat:oLastMsg.latitude, lng:oLastMsg.longitude},
|
||||
zoom:12,
|
||||
//center:{lat:oLastMsg.latitude, lng:oLastMsg.longitude},
|
||||
//zoom:12,
|
||||
center:{lat:-43.5, lng:171.5},
|
||||
zoom:6,
|
||||
mapTypeId:google.maps.MapTypeId.HYBRID,
|
||||
scaleControl:true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user