lib/cartodb-gmapsv3.js
// Add cartodb tiles to the map
Add cartodb tiles to the map
Add cartodb tiles to the map
function addWaxCartoDBTiles(params) {
        var currentCartoDbId;
        params.tilejson = generateTileJson(params);
        params.infowindow = new CartoDB.Infowindow(params);
        params.cache_buster = 0;
        params.waxOptions = {
          callbacks: {
            out: function(){
              params.map.setOptions({draggableCursor: 'default'});
            },
            over: function(feature, div, opt3, evt){
              params.map.setOptions({draggableCursor: 'pointer'});
            },
            click: function(feature, div, opt3, evt){
              params.infowindow.hideAll();
              params.infowindow.open(feature,evt.latLng);
            }
          },
          clickAction: 'full'
        };
        params.layer = new wax.g.connector(params.tilejson);
        params.map.overlayMapTypes.insertAt(0,params.layer);
        params.interaction = wax.g.interaction(params.map, params.tilejson, params.waxOptions);
      }
function addWaxCartoDBTiles ( params ) { var currentCartoDbId ; params . tilejson = generateTileJson ( params ) ; params . infowindow = new CartoDB . Infowindow ( params ) ; params . cache_buster = 0 ; params . waxOptions = { callbacks : { out : function ( ) { params . map . setOptions ( { draggableCursor : 'default' } ) ; } , over : function ( feature , div , opt3 , evt ) { params . map . setOptions ( { draggableCursor : 'pointer' } ) ; } , click : function ( feature , div , opt3 , evt ) { params . infowindow . hideAll ( ) ; params . infowindow . open ( feature , evt . latLng ) ; } } , clickAction : 'full' } ; params . layer = new wax . g . connector ( params . tilejson ) ; params . map . overlayMapTypes . insertAt ( 0 , params . layer ) ; params . interaction = wax . g . interaction ( params . map , params . tilejson , params . waxOptions ) ; }
Add cartodb tiles to the map
Add cartodb tiles to the map
// interaction placeholder // If there are more than one cartodb layer, close all possible infowindows