26 ultimix.google_maps.AutoInitialize =
function()
28 jQuery(
".google_map" ).each(
29 function( index , Element )
31 ultimix.google_maps.InitializeMap( Element );
45 ultimix.google_maps.GetAddress =
function( Address , PointAcceptor )
47 var Geocoder =
new GClientGeocoder();
56 LatLng =
new GLatLng( 55.7519 , 37.6229 );
61 PointAcceptor( LatLng );
74 ultimix.google_maps.InitializeMap =
function( Element )
76 if( GBrowserIsCompatible() )
78 var Map =
new GMap2( Element );
79 if(
jQuery( Element ).attr(
'lat' ) )
81 var Point =
new GLatLng(
jQuery( Element ).attr(
'lat' ) ,
jQuery( Element ).attr(
'lng' ) );
85 var Point =
new GLatLng( 55.7519 , 37.6229 );
88 Map.setCenter( Point , 12 );
89 Map.addOverlay(
new GMarker( Point ) );
97 ultimix.google_maps.AutoInitialize();