// calls an anonymous function called on separate thread
geocoder.geocode({ 'address': options.location}, function(results, status) {
if (status === google.maps.GeocoderStatus.OK) {
- alert( "making geolocation");
options.lat = results[0].geometry.location.lat();
options.long = results[0].geometry.location.lng();
options._location = new google.maps.LatLng(options.lat, options.long);
}
});
} else {
- alert("making regular map");
options._location = new google.maps.LatLng(options.lat, options.long);
options._map = new google.maps.Map(options._newdiv, {mapTypeId: google.maps.MapTypeId[options.type] || google.maps.MapTypeId.HYBRID });
}
stop();
- ok ('googleMap' in popped, "googleMap is a mehtod of the popped instance");
+ ok ('googlemap' in popped, "googleMap is a mehtod of the popped instance");
plus();
ok ( document.getElementById('map').innerHTML === "", "initially, there is nothing inside the map" );
ok ( document.getElementById('map2').innerHTML === "", "initially, there is nothing inside the map2" );
plus();
- popped.googleMap({
+ popped.googlemap({
start: 0, // seconds
end: 5, // seconds
type: 'ROADMAP',
long: -79.403323,
zoom: 10
} )
- .googleMap({
+ .googlemap({
start: 0, // seconds
end: 5, // seconds
type: 'SATELLITE',