         let textRect = CGRectMake(CGFloat(tileWidth)/2 - textSize.width/2, CGFloat(tileHeight)/2 - textSize.height/2, textSize.width, textSize.height)
         string.drawInRect(textRect, withAttributes: attr)
         
-        //let imageRect = CGRectMake(CGFloat(0), CGFloat(0), CGFloat(tileWidth), CGFloat(tileHeight))
+        //let imageRect = CGRectMake(CGFloat(0), CGFloat(0), CGFloat(tileWidth), CGFloat(tileHeight))*/
         let flipVertical = CGAffineTransformMake(1, 0, 0, -1, 0, CGFloat(tileHeight))
         CGContextConcatCTM(contextRef, flipVertical)
     

//

import CoreGraphics
#if (iOS)
import UIKit
//#else
//import Cocoa
#endif

/**
* An {@link ImageryProvider} that draws a box around every rendered tile in the tiling scheme, and draws

        assert(contextRef != nil, "contextRef == nil")
        
        let rgbSpace = CGColorSpaceCreateDeviceRGB()
        let drawColor = CGColorCreate(rgbSpace, _colorArray)
        //let drawUIColor = UIColor(CGColor: drawCGColor!)
        //let drawNSColor = NSColor(CGColor: drawCGColor!)
        
/*      let drawColor = CGColorCreateGenericRGB(CGFloat(color.red), CGFloat(color.green), CGFloat(color.blue), CGFloat(color.alpha))*/
        CGContextSetStrokeColorWithColor(contextRef, drawColor)
        
        // border
        let borderRect = CGRectMake(1.0, 1.0, CGFloat(tileWidth-2), CGFloat(tileHeight-2))
