anchor.diff:        lineWidth: 0
   
       sublayers.push
  -      sql: "select * from #{args.table} where continent = '#{tileConfig.regionName}'"
  -      cartocss: @_addSelectedStyle args
  +      sql: "SELECT * FROM #{args.table} WHERE continent = '#{tileConfig.regionName}'"
  +      cartocss: @_generateCartocss(args)
  +    sublayers
  +
  +  addWdpaTiles: (tileConfig, sublayers) ->
  +    cartocss = [
  +      @_generateCartocss(
  +        table: [POLYGONS_TABLE, POINTS_TABLE]
  +        lineColor: '40541b'
  +        polygonFill: '83ad35'
  +      )
  +    ]
  +
  +    if tileConfig.wdpaId?
  +      cartocss.push @_generateCartocss(
  +        table: [POLYGONS_TABLE, POINTS_TABLE]
  +        attrName: 'wdpaid'
  +        attrVal: tileConfig.wdpaId
  +      )
  +
  +    sublayers.push
  +      sql: "SELECT the_geom, the_geom_webmercator, wdpaid FROM #{POINTS_TABLE} UNION ALL SELECT the_geom, the_geom_webmercator, wdpaid FROM #{POLYGONS_TABLE}"
  +      cartocss: cartocss.join("\n")
       sublayers
   
     addCartodbTiles: (tileConfig) ->
  -    # Always show the wdpa layer:
  -    cartocss = """
  -      #wdpapoly_july2014_0{
  -        line-color:#40541b;
  -        line-width:0.05;
  -        polygon-fill:#83ad35;
  -        polygon-opacity:0.7;}
  -    """
  -    sublayers = [
  -      sql: "select * from wdpapoly_july2014_0"
  -      cartocss: cartocss
  -    ]
  -    if tileConfig.wdpaId?
  -      sublayers = @addSelectedWdpaTiles tileConfig, sublayers, 0
  +    sublayers = []
  +
  +    @addWdpaTiles(tileConfig, sublayers)
  +
       if tileConfig.iso3?
         sublayers = @addCountryTiles tileConfig, sublayers
       if tileConfig.regionName?
         sublayers = @addRegionTiles tileConfig, sublayers
  +
       carto_tiles = new cartodb.Tiles(
         sublayers: sublayers
         user_name: "carbon-tool"
       )
  +
       carto_tiles.getTiles( (o) =>
         L.tileLayer(o.tiles[0]).addTo @map
       )
  
positive.code:       lineWidth: 0
  
      sublayers.push
        sql: "select * from #{args.table} where iso_3 = '#{tileConfig.iso3}'"
        cartocss: @_addSelectedStyle args
      sublayers
  
    addRegionTiles: (tileConfig, sublayers) ->
      args =
        cartocss: ''
        table: 'continents'
        attrName: 'continent'
        attrVal: "'#{tileConfig.regionName}'"
  
negative.code:     # If a protected area overlaps the antimeridian ST_Extent does not
      # return a correct bounding box (Ideas to fix this?)
      # So, assuming that no protected areas real bbox width is bigger than 300,
      # if this is the case correct to a fixed 10 degree width.
      if @_calculateBoundWidth(bounds) > 300
        bounds[1][1] = -170
      bounds
  