// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

// Updating marker and its geo points
function updateLocation(point) {
	document.getElementById('playground_geo_x').value = point.y; //lat = y
	document.getElementById('playground_geo_y').value = point.x; //long = x
	map.clearOverlays();
	map.addOverlay(new GMarker(new GLatLng(point.y, point.x)));
}

// Delete photo add lines
function remove_field(element, item) {
	element.up(item).remove();
}


