var Place = {};

$(document).on('pageshow', '#select-place', function() {
    $('#select-place-map').css('height', 500);

    utils.getCurrentLocation().done(function(location) {
	Place.map = Map.createMap('select-place-map',
				  location.latitude, location.longitude, 12);
	Place.currentLocation = Map.createMarker(Place.map, 'Current Location',
						 location.latitude, location.longitude, true);

	Place.setPostLocation();

	google.maps.event.addListener(Place.currentLocation, 'dragend', function() {
	    Place.setPostLocation();
	});
    });
});

Place.getMarkerLocation = function() {
    var pos =  Place.currentLocation.getPosition();
    var lat = pos.lat();
    var lng = pos.lng();
    return {"latitude": lat, "longitude": lng};
};

Place.setPostLocation = function() {
    var location = Place.getMarkerLocation();
    $('#post-lat').val(location.latitude);
    $('#post-lng').val(location.longitude);
};
@@ -112,10 +112,10 @@
 t', 
+4
 5
-0
 0);%0A
@@ -123,62 +123,43 @@
     
-utils.getCurrentLocation().done(function(location) %7B%0A%09
+var pos = Map.map.getCenter();%0A    
 Plac
@@ -203,60 +203,48 @@
 ap',
-%0A%09%09%09%09  location.latitude, location
+ pos.lat(), pos
 .l
-o
 ng
-itude, 12);%0A%09
+(), 8); // kutc%0A%0A    
 Plac
@@ -320,47 +320,33 @@
 %09%09%09%09
-%09 location.latitude, location
+     pos.lat(), pos
 .l
-o
 ng
-itude
+()
 , tr
@@ -350,18 +350,20 @@
  true);%0A
-%0A%09
+    
 Place.se
@@ -380,17 +380,20 @@
 ion();%0A%0A
-%09
+    
 google.m
@@ -462,20 +462,16 @@
 on() %7B%0A%09
-    
 Place.se
@@ -491,13 +491,8 @@
 ();%0A
-%09%7D);%0A
     

Set select place marker latlng based on main map center latlng