|
|
|
@ -514,7 +514,16 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') {
|
|
|
|
|
layer = google.maps.MapTypeId['TERRAIN']; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var new_google_url_regex = new RegExp(/@([0-9\.\-]+),([0-9\.\-]+),(\d+)z/); |
|
|
|
|
|
|
|
|
|
if (m.id.match(new_google_url_regex)) { |
|
|
|
|
var match = m.id.match(new_google_url_regex) |
|
|
|
|
lat = parseFloat(match[1]); |
|
|
|
|
lng = parseFloat(match[2]); |
|
|
|
|
location = new google.maps.LatLng(lat,lng); |
|
|
|
|
zoom = parseFloat(match[3]); |
|
|
|
|
has_location = has_zoom = true; |
|
|
|
|
} else { |
|
|
|
|
if (type.of(VMM.Util.getUrlVars(m.id)["ll"]) == "string") { |
|
|
|
|
has_location = true; |
|
|
|
|
latlong = VMM.Util.getUrlVars(m.id)["ll"].split(","); |
|
|
|
@ -529,6 +538,7 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') {
|
|
|
|
|
has_zoom = true; |
|
|
|
|
zoom = parseFloat(VMM.Util.getUrlVars(m.id)["z"]); |
|
|
|
|
} |
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
map_options = { |
|
|
|
|
zoom: zoom, |
|
|
|
|