- download the Natural Earth 1:10m Time Zone Data (GeoJSON available from CartoDB)
- run
topojson --post-quantization 1e3 --simplify 1e-5 --out timezones.json -- ne_10m_time_zones.geojson
The result is this 181 KB timezones.json
(36 KB with gzip)
- (void)drawTextInRect:(CGRect)rect { | |
CGContextRef c = UIGraphicsGetCurrentContext(); | |
CGContextSetLineWidth(c, self.shadowOffset.height); | |
CGContextSetLineJoin(c, kCGLineJoinRound); | |
CGContextSetTextDrawingMode(c, kCGTextStroke); | |
[self.shadowColor set]; | |
[self.text drawInRect:rect withFont:self.font lineBreakMode:self.lineBreakMode alignment:self.textAlignment]; | |
CGContextSetTextDrawingMode(c, kCGTextFill); |
:bowtie: | |
:smile: | |
:laughing: | |
:blush: | |
:smiley: |
topojson --post-quantization 1e3 --simplify 1e-5 --out timezones.json -- ne_10m_time_zones.geojson
The result is this 181 KB timezones.json
(36 KB with gzip)