MDL-34959 add Google Maps API V3 support

This commit is contained in:
Petr Škoda 2012-08-19 19:52:35 +02:00
parent b32ec7a3b9
commit cec7d43591
4 changed files with 36 additions and 3 deletions

View file

@ -41,3 +41,21 @@ M.core_iplookup.init = function(Y, latitude, longitude) {
}, document.body);
}
};
M.core_iplookup.init3 = function(Y, latitude, longitude, ip) {
var ipLatlng = new google.maps.LatLng(latitude, longitude);
var mapOptions = {
center: ipLatlng,
zoom: 6,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map"), mapOptions);
var marker = new google.maps.Marker({
position: ipLatlng,
map: map,
title: ip
});
};