lib/cartodb-gmapsv3.js
// Add cartodb tiles to the map
Add cartodb tiles to the map
Add cartodb tiles to the map
function addSimpleCartoDBTiles(params) {
        var cartodb_layer = {
          getTileUrl: function(coord, zoom) {
            return 'http://' + params.user_name + '.cartodb.com/tiles/' + params.table_name + '/'+zoom+'/'+coord.x+'/'+coord.y+'.png?sql='+params.query;
          },
          tileSize: new google.maps.Size(256, 256),
          name: params.query,
          description: false
        };
        params.layer = new google.maps.ImageMapType(cartodb_layer);
        params.map.overlayMapTypes.insertAt(0,params.layer);
      }
function addSimpleCartoDBTiles ( params ) { var cartodb_layer = { getTileUrl : function ( coord , zoom ) { return 'http://' + params . user_name + '.cartodb.com/tiles/' + params . table_name + '/' + zoom + '/' + coord . x + '/' + coord . y + '.png?sql=' + params . query ; } , tileSize : new google . maps . Size ( 256 , 256 ) , name : params . query , description : false } ; params . layer = new google . maps . ImageMapType ( cartodb_layer ) ; params . map . overlayMapTypes . insertAt ( 0 , params . layer ) ; }
Add cartodb tiles to the map
Add cartodb tiles to the map
// Add the cartodb tiles