
if (typeof(Wicket.Maps) == "undefined")
Wicket.Maps = { };
Wicket.Markers = new Array();
function positionMapByBounds(map, sw, ne)
{
var bounds = new GLatLngBounds(sw, ne);
map.setCenter(bounds.getCenter(), map.getBoundsZoomLevel(bounds));
}
function addMarker(map, latLng, number)
{
var marker = new GMarker(latLng);
if (Wicket.Markers[0] == null)
{
Wicket.Markers[0] = marker;
}
marker.number = number;
map.addOverlay(marker);
}