Permalink
Browse files

-nc

  • Loading branch information...
robengel
robengel committed Jul 12, 2011
1 parent fe5c961 commit 65249d2c086d2e68485588bfe441284d48a5c26a
Showing with 14 additions and 4 deletions.
  1. +13 −3 geocamCover/static/javascripts/app.js
  2. +1 −1 geocamUtilWeb
@@ -45,6 +45,7 @@ var zoom = false;
var views = ["Task View", "Report View"];
var requestView = 0;
var reportView = 1;
+var isTapHold = false;
$(window).resize(function() {
pageResize();
@@ -121,18 +122,27 @@ $(document).ready(function () {
$('#map_canvas').gmap({'callback':function(map) {
$(map).click(function(event) {
- clickedPosition = event.latLng;
- showForm('place');
+ if(isTapHold){
+ isTapHold = false;
+ clickedPosition = event.latLng;
+ alert(clickedPosition);
+ showForm('place');
+ }
});
}});
+ $('#map_canvas').taphold(function(){
+ isTapHold = true;
+ });
+
google.maps.event.addListener(globalMap, 'zoom_changed', function() {
zoom = true;
setTimeout("endZoom()", 1000);
});
google.maps.event.addListener(globalMap, 'drag', function() {
zoom = true;
+ isTapHold = false;
});
google.maps.event.addListener(globalMap, 'dragend', function() {
@@ -369,7 +379,7 @@ function addMarker(place) {
markerCluster.addMarker(place_marker);
}
-function showLog(place_id, blah) {
+function showLog(place_id) {
place = places[place_id];
selectedPlace = place;
var noTasksAndReports = true;
Submodule geocamUtilWeb updated from 152616 to bea217

0 comments on commit 65249d2

Please sign in to comment.