vendor/ember-leaflet-cartodb/cartodb_noleaflet.js
function(map, o) {
    var layer_point = this._findPos(map,o);

    if (!layer_point || isNaN(layer_point.x) || isNaN(layer_point.y)) {
      // If layer_point doesn't contain x and y,
      // we can't calculate event map position
      return false;
    }

    var latlng = map.layerPointToLatLng(layer_point);
    var event_type = o.e.type.toLowerCase();
    var screenPos = map.layerPointToContainerPoint(layer_point);

    switch (event_type) {
      case 'mousemove':
        if (this.options.featureOver) {
          return this.options.featureOver(o.e,latlng, screenPos, o.data, o.layer);
        }
        break;

      case 'click':
      case 'touchend':
      case 'touchmove': // for some reason android browser does not send touchend
      case 'mspointerup':
      case 'pointerup':
      case 'pointermove':
        if (this.options.featureClick) {
          this.options.featureClick(o.e,latlng, screenPos, o.data, o.layer);
        }
        break;
      default:
        break;
    }
  }
function(map, o) {
    var layer_point = this._findPos(map,o);

    if (!layer_point || isNaN(layer_point.x) || isNaN(layer_point.y)) {
      // If layer_point doesn't contain x and y,
      // we can't calculate event map position
      return false;
    }

    var latlng = map.layerPointToLatLng(layer_point);
    var event_type = o.e.type.toLowerCase();
    var screenPos = map.layerPointToContainerPoint(layer_point);

    switch (event_type) {
      case 'mousemove':
        if (this.options.featureOver) {
          return this.options.featureOver(o.e,latlng, screenPos, o.data, o.layer);
        }
        break;

      case 'click':
      case 'touchend':
      case 'touchmove': // for some reason android browser does not send touchend
      case 'mspointerup':
      case 'pointerup':
      case 'pointermove':
        if (this.options.featureClick) {
          this.options.featureClick(o.e,latlng, screenPos, o.data, o.layer);
        }
        break;
      default:
        break;
    }
  }
function ( map , o ) { var layer_point = this . _findPos ( map , o ) ; if ( ! layer_point || isNaN ( layer_point . x ) || isNaN ( layer_point . y ) ) { // If layer_point doesn't contain x and y, // we can't calculate event map position return false ; } var latlng = map . layerPointToLatLng ( layer_point ) ; var event_type = o . e . type . toLowerCase ( ) ; var screenPos = map . layerPointToContainerPoint ( layer_point ) ; switch ( event_type ) { case 'mousemove' : if ( this . options . featureOver ) { return this . options . featureOver ( o . e , latlng , screenPos , o . data , o . layer ) ; } break ; case 'click' : case 'touchend' : case 'touchmove' : // for some reason android browser does not send touchend case 'mspointerup' : case 'pointerup' : case 'pointermove' : if ( this . options . featureClick ) { this . options . featureClick ( o . e , latlng , screenPos , o . data , o . layer ) ; } break ; default : break ; } }
Bind events for wax interaction
@param {Object} Layer map object
@param {Event} Wax event
Bind events for wax interaction