simpler-tiles 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2001 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Class: SimplerTiles::Map
8
-
9
- &mdash; Documentation by YARD 0.7.5
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- relpath = '..';
19
- if (relpath != '') relpath += '/';
20
- </script>
21
-
22
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
23
-
24
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
25
-
26
-
27
- </head>
28
- <body>
29
- <script type="text/javascript" charset="utf-8">
30
- if (window.top.frames.main) document.body.className = 'frames';
31
- </script>
32
-
33
- <div id="header">
34
- <div id="menu">
35
-
36
- <a href="../_index.html">Index (M)</a> &raquo;
37
- <span class='title'><span class='object_link'><a href="../SimplerTiles.html" title="SimplerTiles (module)">SimplerTiles</a></span></span>
38
- &raquo;
39
- <span class="title">Map</span>
40
-
41
-
42
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
- </div>
44
-
45
- <div id="search">
46
-
47
- <a id="class_list_link" href="#">Class List</a>
48
-
49
- <a id="method_list_link" href="#">Method List</a>
50
-
51
- <a id="file_list_link" href="#">File List</a>
52
-
53
- </div>
54
- <div class="clear"></div>
55
- </div>
56
-
57
- <iframe id="search_frame"></iframe>
58
-
59
- <div id="content"><h1>Class: SimplerTiles::Map
60
-
61
-
62
-
63
- </h1>
64
-
65
- <dl class="box">
66
-
67
- <dt class="r1">Inherits:</dt>
68
- <dd class="r1">
69
- <span class="inheritName">Object</span>
70
-
71
- <ul class="fullTree">
72
- <li>Object</li>
73
-
74
- <li class="next">SimplerTiles::Map</li>
75
-
76
- </ul>
77
- <a href="#" class="inheritanceTree">show all</a>
78
-
79
- </dd>
80
-
81
-
82
-
83
-
84
-
85
-
86
- <dt class="r2">Includes:</dt>
87
- <dd class="r2"><span class='object_link'><a href="PP.html" title="SimplerTiles::PP (module)">PP</a></span></dd>
88
-
89
-
90
-
91
-
92
-
93
- <dt class="r1 last">Defined in:</dt>
94
- <dd class="r1 last">lib/simpler_tiles/map.rb<span class="defines">,<br />
95
- ext/simpler_tiles/map.c</span>
96
- </dd>
97
-
98
- </dl>
99
- <div class="clear"></div>
100
-
101
- <h2>Overview</h2><div class="docstring">
102
- <div class="discussion">
103
-
104
- <p>The Map object is the root of the style declaration for SimplerTiles. It
105
- wraps the methods in Simple Tiles and tracks projection, width, height and
106
- contains a list of Layer objects.</p>
107
-
108
-
109
- </div>
110
- </div>
111
- <div class="tags">
112
-
113
-
114
- </div>
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
- <h2>
123
- Instance Method Summary
124
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
125
- </h2>
126
-
127
- <ul class="summary">
128
-
129
- <li class="public ">
130
- <span class="summary_signature">
131
-
132
- <a href="#add_layer-instance_method" title="#add_layer (instance method)">- (Layer) <strong>add_layer</strong> </a>
133
-
134
-
135
-
136
- </span>
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
- <span class="summary_desc"><div class='inline'>
146
- <p>Create and return a <span class='object_link'><a href="Layer.html" title="SimplerTiles::Layer (class)">Layer</a></span> based on the passed in string.</p>
147
- </div></span>
148
-
149
- </li>
150
-
151
-
152
- <li class="public ">
153
- <span class="summary_signature">
154
-
155
- <a href="#ar_layer-instance_method" title="#ar_layer (instance method)">- (Object) <strong>ar_layer</strong> </a>
156
-
157
-
158
-
159
- </span>
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
- <span class="summary_desc"><div class='inline'>
169
- <p>A convienence method to use Active Record configuration and add a new
170
- layer.</p>
171
- </div></span>
172
-
173
- </li>
174
-
175
-
176
- <li class="public ">
177
- <span class="summary_signature">
178
-
179
- <a href="#bgcolor-instance_method" title="#bgcolor (instance method)">- (String) <strong>bgcolor</strong> </a>
180
-
181
-
182
-
183
- </span>
184
-
185
-
186
-
187
-
188
-
189
-
190
-
191
-
192
- <span class="summary_desc"><div class='inline'>
193
- <p>Return a copy of the background color of the map.</p>
194
- </div></span>
195
-
196
- </li>
197
-
198
-
199
- <li class="public ">
200
- <span class="summary_signature">
201
-
202
- <a href="#bgcolor%3D-instance_method" title="#bgcolor= (instance method)">- (nil) <strong>bgcolor=</strong> </a>
203
-
204
-
205
-
206
- </span>
207
-
208
-
209
-
210
-
211
-
212
-
213
-
214
-
215
- <span class="summary_desc"><div class='inline'>
216
- <p>Set the background color of the map.</p>
217
- </div></span>
218
-
219
- </li>
220
-
221
-
222
- <li class="public ">
223
- <span class="summary_signature">
224
-
225
- <a href="#bounds-instance_method" title="#bounds (instance method)">- (Bounds) <strong>bounds</strong> </a>
226
-
227
-
228
-
229
- </span>
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
-
238
- <span class="summary_desc"><div class='inline'>
239
- <p>Return the bounds of this map.</p>
240
- </div></span>
241
-
242
- </li>
243
-
244
-
245
- <li class="public ">
246
- <span class="summary_signature">
247
-
248
- <a href="#buffer-instance_method" title="#buffer (instance method)">- (Number) <strong>buffer</strong> </a>
249
-
250
-
251
-
252
- </span>
253
-
254
-
255
-
256
-
257
-
258
-
259
-
260
-
261
- <span class="summary_desc"><div class='inline'>
262
- <p>Get the Map's buffer.</p>
263
- </div></span>
264
-
265
- </li>
266
-
267
-
268
- <li class="public ">
269
- <span class="summary_signature">
270
-
271
- <a href="#buffer%3D-instance_method" title="#buffer= (instance method)">- (Number) <strong>buffer=</strong> </a>
272
-
273
-
274
-
275
- </span>
276
-
277
-
278
-
279
-
280
-
281
-
282
-
283
-
284
- <span class="summary_desc"><div class='inline'>
285
- <p>Set the buffer on the Map.</p>
286
- </div></span>
287
-
288
- </li>
289
-
290
-
291
- <li class="public ">
292
- <span class="summary_signature">
293
-
294
- <a href="#buffered_bounds-instance_method" title="#buffered_bounds (instance method)">- (Bounds) <strong>buffered_bounds</strong> </a>
295
-
296
-
297
-
298
- </span>
299
-
300
-
301
-
302
-
303
-
304
-
305
-
306
-
307
- <span class="summary_desc"><div class='inline'>
308
- <p>Return the bounds of this map sized according to it's buffer attribute.</p>
309
- </div></span>
310
-
311
- </li>
312
-
313
-
314
- <li class="public ">
315
- <span class="summary_signature">
316
-
317
- <a href="#height-instance_method" title="#height (instance method)">- (Number) <strong>height</strong> </a>
318
-
319
-
320
-
321
- </span>
322
-
323
-
324
-
325
-
326
-
327
-
328
-
329
-
330
- <span class="summary_desc"><div class='inline'>
331
- <p>Get the height of the map.</p>
332
- </div></span>
333
-
334
- </li>
335
-
336
-
337
- <li class="public ">
338
- <span class="summary_signature">
339
-
340
- <a href="#height%3D-instance_method" title="#height= (instance method)">- (Number) <strong>height=</strong> </a>
341
-
342
-
343
-
344
- </span>
345
-
346
-
347
-
348
-
349
-
350
-
351
-
352
-
353
- <span class="summary_desc"><div class='inline'>
354
- <p>Set the height of the Map.</p>
355
- </div></span>
356
-
357
- </li>
358
-
359
-
360
- <li class="public ">
361
- <span class="summary_signature">
362
-
363
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (Map) <strong>initialize</strong> {|_self| ... }</a>
364
-
365
-
366
-
367
- </span>
368
-
369
- <span class="note title constructor">constructor</span>
370
-
371
-
372
-
373
-
374
-
375
-
376
-
377
-
378
- <span class="summary_desc"><div class='inline'>
379
- <p>A new instance of Map.</p>
380
- </div></span>
381
-
382
- </li>
383
-
384
-
385
- <li class="public ">
386
- <span class="summary_signature">
387
-
388
- <a href="#layer-instance_method" title="#layer (instance method)">- (Object) <strong>layer</strong>(source, &amp;blk) </a>
389
-
390
-
391
-
392
- </span>
393
-
394
-
395
-
396
-
397
-
398
-
399
-
400
-
401
- <span class="summary_desc"><div class='inline'>
402
- <p>Add a layer to the c list of layers and yield the new layer.</p>
403
- </div></span>
404
-
405
- </li>
406
-
407
-
408
- <li class="public ">
409
- <span class="summary_signature">
410
-
411
- <a href="#save-instance_method" title="#save (instance method)">- (Boolean) <strong>save</strong> </a>
412
-
413
-
414
-
415
- </span>
416
-
417
-
418
-
419
-
420
-
421
-
422
-
423
-
424
- <span class="summary_desc"><div class='inline'>
425
- <p>Render the Map to the filesystem.</p>
426
- </div></span>
427
-
428
- </li>
429
-
430
-
431
- <li class="public ">
432
- <span class="summary_signature">
433
-
434
- <a href="#set_bounds-instance_method" title="#set_bounds (instance method)">- (nil) <strong>set_bounds</strong> </a>
435
-
436
-
437
-
438
- </span>
439
-
440
-
441
-
442
-
443
-
444
-
445
-
446
-
447
- <span class="summary_desc"><div class='inline'>
448
- <p>Set the bounds on the map.</p>
449
- </div></span>
450
-
451
- </li>
452
-
453
-
454
- <li class="public ">
455
- <span class="summary_signature">
456
-
457
- <a href="#set_size-instance_method" title="#set_size (instance method)">- (nil) <strong>set_size</strong> </a>
458
-
459
-
460
-
461
- </span>
462
-
463
-
464
-
465
-
466
-
467
-
468
-
469
-
470
- <span class="summary_desc"><div class='inline'>
471
- <p>Set the size in pixels of the final map.</p>
472
- </div></span>
473
-
474
- </li>
475
-
476
-
477
- <li class="public ">
478
- <span class="summary_signature">
479
-
480
- <a href="#slippy-instance_method" title="#slippy (instance method)">- (nil) <strong>slippy</strong> </a>
481
-
482
-
483
-
484
- </span>
485
-
486
-
487
-
488
-
489
-
490
-
491
-
492
-
493
- <span class="summary_desc"><div class='inline'>
494
- <p>Set the map to be slippy via passed in parameters.</p>
495
- </div></span>
496
-
497
- </li>
498
-
499
-
500
- <li class="public ">
501
- <span class="summary_signature">
502
-
503
- <a href="#srs-instance_method" title="#srs (instance method)">- (String) <strong>srs</strong> </a>
504
-
505
-
506
-
507
- </span>
508
-
509
-
510
-
511
-
512
-
513
-
514
-
515
-
516
- <span class="summary_desc"><div class='inline'>
517
- <p>Return the projection for the map in string representation.</p>
518
- </div></span>
519
-
520
- </li>
521
-
522
-
523
- <li class="public ">
524
- <span class="summary_signature">
525
-
526
- <a href="#srs%3D-instance_method" title="#srs= (instance method)">- (String) <strong>srs=</strong> </a>
527
-
528
-
529
-
530
- </span>
531
-
532
-
533
-
534
-
535
-
536
-
537
-
538
-
539
- <span class="summary_desc"><div class='inline'>
540
- <p>Set the projection from an Proj.4 readable string.</p>
541
- </div></span>
542
-
543
- </li>
544
-
545
-
546
- <li class="public ">
547
- <span class="summary_signature">
548
-
549
- <a href="#to_png-instance_method" title="#to_png (instance method)">- (Object) <strong>to_png</strong> {|data| ... }</a>
550
-
551
-
552
-
553
- </span>
554
-
555
-
556
-
557
-
558
-
559
-
560
-
561
-
562
- <span class="summary_desc"><div class='inline'>
563
- <p>Render the data to a blob of png data.</p>
564
- </div></span>
565
-
566
- </li>
567
-
568
-
569
- <li class="public ">
570
- <span class="summary_signature">
571
-
572
- <a href="#to_png_stream-instance_method" title="#to_png_stream (instance method)">- (nil) <strong>to_png_stream</strong> {|chunk| ... }</a>
573
-
574
-
575
-
576
- </span>
577
-
578
-
579
-
580
-
581
-
582
-
583
-
584
-
585
- <span class="summary_desc"><div class='inline'>
586
- <p>Render the map to a png stream and yield values to the passed in block.</p>
587
- </div></span>
588
-
589
- </li>
590
-
591
-
592
- <li class="public ">
593
- <span class="summary_signature">
594
-
595
- <a href="#valid%3F-instance_method" title="#valid? (instance method)">- (Boolean) <strong>valid?</strong> </a>
596
-
597
-
598
-
599
- </span>
600
-
601
-
602
-
603
-
604
-
605
-
606
-
607
-
608
- <span class="summary_desc"><div class='inline'>
609
- <p>Test to see if the Map has fulfilled the requirements for rendering.</p>
610
- </div></span>
611
-
612
- </li>
613
-
614
-
615
- <li class="public ">
616
- <span class="summary_signature">
617
-
618
- <a href="#width-instance_method" title="#width (instance method)">- (Number) <strong>width</strong> </a>
619
-
620
-
621
-
622
- </span>
623
-
624
-
625
-
626
-
627
-
628
-
629
-
630
-
631
- <span class="summary_desc"><div class='inline'>
632
- <p>Get the width of the map.</p>
633
- </div></span>
634
-
635
- </li>
636
-
637
-
638
- <li class="public ">
639
- <span class="summary_signature">
640
-
641
- <a href="#width%3D-instance_method" title="#width= (instance method)">- (Number) <strong>width=</strong> </a>
642
-
643
-
644
-
645
- </span>
646
-
647
-
648
-
649
-
650
-
651
-
652
-
653
-
654
- <span class="summary_desc"><div class='inline'>
655
- <p>Set the width of the Map.</p>
656
- </div></span>
657
-
658
- </li>
659
-
660
-
661
- </ul>
662
-
663
-
664
-
665
-
666
-
667
-
668
-
669
-
670
-
671
-
672
- <h3 class="inherited">Methods included from <span class='object_link'><a href="PP.html" title="SimplerTiles::PP (module)">PP</a></span></h3>
673
- <p class="inherited"><span class='object_link'><a href="PP.html#inspect-instance_method" title="SimplerTiles::PP#inspect (method)">#inspect</a></span></p>
674
- <div id="constructor_details" class="method_details_list">
675
- <h2>Constructor Details</h2>
676
-
677
- <div class="method_details first">
678
- <p class="signature first" id="initialize-instance_method">
679
-
680
- - (<tt><span class='object_link'><a href="" title="SimplerTiles::Map (class)">Map</a></span></tt>) <strong>initialize</strong> {|_self| ... }
681
-
682
-
683
-
684
- </p><div class="docstring">
685
- <div class="discussion">
686
-
687
- <p>A new instance of Map</p>
688
-
689
-
690
- </div>
691
- </div>
692
- <div class="tags">
693
-
694
- <h3>Yields:</h3>
695
- <ul class="yield">
696
-
697
- <li>
698
-
699
-
700
- <span class='type'>(<tt>_self</tt>)</span>
701
-
702
-
703
-
704
- </li>
705
-
706
- </ul>
707
- <h3>Yield Parameters:</h3>
708
- <ul class="yieldparam">
709
-
710
- <li>
711
-
712
- <span class='name'>_self</span>
713
-
714
-
715
- <span class='type'>(<tt><span class='object_link'><a href="" title="SimplerTiles::Map (class)">SimplerTiles::Map</a></span></tt>)</span>
716
-
717
-
718
-
719
- &mdash;
720
- <div class='inline'>
721
- <p>the object that the method was called on</p>
722
- </div>
723
-
724
- </li>
725
-
726
- </ul>
727
-
728
- </div><table class="source_code">
729
- <tr>
730
- <td>
731
- <pre class="lines">
732
-
733
-
734
- 8
735
- 9
736
- 10</pre>
737
- </td>
738
- <td>
739
- <pre class="code"><span class="info file"># File 'lib/simpler_tiles/map.rb', line 8</span>
740
-
741
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
742
- <span class='kw'>yield</span> <span class='kw'>self</span> <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
743
- <span class='kw'>end</span></pre>
744
- </td>
745
- </tr>
746
- </table>
747
- </div>
748
-
749
- </div>
750
-
751
-
752
- <div id="instance_method_details" class="method_details_list">
753
- <h2>Instance Method Details</h2>
754
-
755
-
756
- <div class="method_details first">
757
- <p class="signature first" id="add_layer-instance_method">
758
-
759
- - (<tt><span class='object_link'><a href="Layer.html" title="SimplerTiles::Layer (class)">Layer</a></span></tt>) <strong>add_layer</strong>
760
-
761
-
762
-
763
- </p><div class="docstring">
764
- <div class="discussion">
765
-
766
- <p>Create and return a <span class='object_link'><a href="Layer.html" title="SimplerTiles::Layer (class)">Layer</a></span> based on the passed in string.</p>
767
-
768
-
769
- </div>
770
- </div>
771
- <div class="tags">
772
- <h3>Parameters:</h3>
773
- <ul class="param">
774
-
775
- <li>
776
-
777
- <span class='name'></span>
778
-
779
-
780
- <span class='type'>(<tt>String</tt>)</span>
781
-
782
-
783
-
784
- </li>
785
-
786
- </ul>
787
-
788
- <h3>Returns:</h3>
789
- <ul class="return">
790
-
791
- <li>
792
-
793
-
794
- <span class='type'>(<tt><span class='object_link'><a href="Layer.html" title="SimplerTiles::Layer (class)">Layer</a></span></tt>)</span>
795
-
796
-
797
-
798
- </li>
799
-
800
- </ul>
801
-
802
- </div><table class="source_code">
803
- <tr>
804
- <td>
805
- <pre class="lines">
806
-
807
-
808
- </pre>
809
- </td>
810
- <td>
811
- <pre class="code"><span class="info file"># File 'ext/simpler_tiles/map.c'</span>
812
-
813
- static VALUE
814
- add_layer(VALUE self, VALUE layer){</pre>
815
- </td>
816
- </tr>
817
- </table>
818
- </div>
819
-
820
- <div class="method_details ">
821
- <p class="signature " id="ar_layer-instance_method">
822
-
823
- - (<tt>Object</tt>) <strong>ar_layer</strong>
824
-
825
-
826
-
827
- </p><div class="docstring">
828
- <div class="discussion">
829
-
830
- <p>A convienence method to use Active Record configuration and add a new
831
- layer.</p>
832
-
833
-
834
- </div>
835
- </div>
836
- <div class="tags">
837
-
838
-
839
- </div><table class="source_code">
840
- <tr>
841
- <td>
842
- <pre class="lines">
843
-
844
-
845
- 20
846
- 21
847
- 22
848
- 23
849
- 24
850
- 25
851
- 26
852
- 27
853
- 28
854
- 29
855
- 30
856
- 31
857
- 32
858
- 33
859
- 34
860
- 35</pre>
861
- </td>
862
- <td>
863
- <pre class="code"><span class="info file"># File 'lib/simpler_tiles/map.rb', line 20</span>
864
-
865
- <span class='kw'>def</span> <span class='id identifier rubyid_ar_layer'>ar_layer</span>
866
- <span class='kw'>if</span> <span class='op'>!</span><span class='kw'>defined?</span><span class='lparen'>(</span><span class='const'>ActiveRecord</span><span class='rparen'>)</span>
867
- <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>ActiveRecord not available</span><span class='tstring_end'>&quot;</span></span>
868
- <span class='kw'>end</span>
869
-
870
- <span class='id identifier rubyid_config'>config</span> <span class='op'>=</span> <span class='const'>ActiveRecord</span><span class='op'>::</span><span class='const'>Base</span><span class='period'>.</span><span class='id identifier rubyid_connection'>connection</span><span class='period'>.</span><span class='id identifier rubyid_instance_variable_get'>instance_variable_get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>@config</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
871
- <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span>
872
- <span class='symbol'>:dbname</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_config'>config</span><span class='lbracket'>[</span><span class='symbol'>:database</span><span class='rbracket'>]</span><span class='comma'>,</span>
873
- <span class='symbol'>:user</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_config'>config</span><span class='lbracket'>[</span><span class='symbol'>:username</span><span class='rbracket'>]</span><span class='comma'>,</span>
874
- <span class='symbol'>:host</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_config'>config</span><span class='lbracket'>[</span><span class='symbol'>:host</span><span class='rbracket'>]</span><span class='comma'>,</span>
875
- <span class='symbol'>:port</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_config'>config</span><span class='lbracket'>[</span><span class='symbol'>:port</span><span class='rbracket'>]</span><span class='comma'>,</span>
876
- <span class='symbol'>:password</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_config'>config</span><span class='lbracket'>[</span><span class='symbol'>:password</span><span class='rbracket'>]</span>
877
- <span class='rbrace'>}</span>
878
-
879
- <span class='id identifier rubyid_layer'>layer</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>PG:</span><span class='tstring_end'>&quot;</span></span> <span class='op'>+</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span><span class='id identifier rubyid_v'>v</span><span class='op'>|</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_k'>k</span><span class='rbrace'>}</span><span class='tstring_content'>='</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_v'>v</span><span class='rbrace'>}</span><span class='tstring_content'>'</span><span class='tstring_end'>&quot;</span></span><span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'> </span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
880
- <span class='kw'>end</span></pre>
881
- </td>
882
- </tr>
883
- </table>
884
- </div>
885
-
886
- <div class="method_details ">
887
- <p class="signature " id="bgcolor-instance_method">
888
-
889
- - (<tt>String</tt>) <strong>bgcolor</strong>
890
-
891
-
892
-
893
- </p><div class="docstring">
894
- <div class="discussion">
895
-
896
- <p>Return a copy of the background color of the map.</p>
897
-
898
-
899
- </div>
900
- </div>
901
- <div class="tags">
902
-
903
- <h3>Returns:</h3>
904
- <ul class="return">
905
-
906
- <li>
907
-
908
-
909
- <span class='type'>(<tt>String</tt>)</span>
910
-
911
-
912
-
913
- </li>
914
-
915
- </ul>
916
-
917
- </div><table class="source_code">
918
- <tr>
919
- <td>
920
- <pre class="lines">
921
-
922
-
923
- </pre>
924
- </td>
925
- <td>
926
- <pre class="code"><span class="info file"># File 'ext/simpler_tiles/map.c'</span>
927
-
928
- static VALUE
929
- get_bgcolor(VALUE self){</pre>
930
- </td>
931
- </tr>
932
- </table>
933
- </div>
934
-
935
- <div class="method_details ">
936
- <p class="signature " id="bgcolor=-instance_method">
937
-
938
- - (<tt>nil</tt>) <strong>bgcolor=</strong>
939
-
940
-
941
-
942
- </p><div class="docstring">
943
- <div class="discussion">
944
-
945
- <p>Set the background color of the map.</p>
946
-
947
-
948
- </div>
949
- </div>
950
- <div class="tags">
951
- <h3>Parameters:</h3>
952
- <ul class="param">
953
-
954
- <li>
955
-
956
- <span class='name'></span>
957
-
958
-
959
- <span class='type'>(<tt>String</tt>)</span>
960
-
961
-
962
-
963
- </li>
964
-
965
- </ul>
966
-
967
- <h3>Returns:</h3>
968
- <ul class="return">
969
-
970
- <li>
971
-
972
-
973
- <span class='type'>(<tt>nil</tt>)</span>
974
-
975
-
976
-
977
- </li>
978
-
979
- </ul>
980
-
981
- </div><table class="source_code">
982
- <tr>
983
- <td>
984
- <pre class="lines">
985
-
986
-
987
- </pre>
988
- </td>
989
- <td>
990
- <pre class="code"><span class="info file"># File 'ext/simpler_tiles/map.c'</span>
991
-
992
- static VALUE
993
- set_bgcolor(VALUE self, VALUE bgcolor){</pre>
994
- </td>
995
- </tr>
996
- </table>
997
- </div>
998
-
999
- <div class="method_details ">
1000
- <p class="signature " id="bounds-instance_method">
1001
-
1002
- - (<tt><span class='object_link'><a href="Bounds.html" title="SimplerTiles::Bounds (class)">Bounds</a></span></tt>) <strong>bounds</strong>
1003
-
1004
-
1005
-
1006
- </p><div class="docstring">
1007
- <div class="discussion">
1008
-
1009
- <p>Return the bounds of this map.</p>
1010
-
1011
-
1012
- </div>
1013
- </div>
1014
- <div class="tags">
1015
-
1016
- <h3>Returns:</h3>
1017
- <ul class="return">
1018
-
1019
- <li>
1020
-
1021
-
1022
- <span class='type'>(<tt><span class='object_link'><a href="Bounds.html" title="SimplerTiles::Bounds (class)">Bounds</a></span></tt>)</span>
1023
-
1024
-
1025
-
1026
- </li>
1027
-
1028
- </ul>
1029
-
1030
- </div><table class="source_code">
1031
- <tr>
1032
- <td>
1033
- <pre class="lines">
1034
-
1035
-
1036
- </pre>
1037
- </td>
1038
- <td>
1039
- <pre class="code"><span class="info file"># File 'ext/simpler_tiles/map.c'</span>
1040
-
1041
- static VALUE
1042
- bounds(VALUE self){</pre>
1043
- </td>
1044
- </tr>
1045
- </table>
1046
- </div>
1047
-
1048
- <div class="method_details ">
1049
- <p class="signature " id="buffer-instance_method">
1050
-
1051
- - (<tt>Number</tt>) <strong>buffer</strong>
1052
-
1053
-
1054
-
1055
- </p><div class="docstring">
1056
- <div class="discussion">
1057
-
1058
- <p>Get the Map's buffer.</p>
1059
-
1060
-
1061
- </div>
1062
- </div>
1063
- <div class="tags">
1064
-
1065
- <h3>Returns:</h3>
1066
- <ul class="return">
1067
-
1068
- <li>
1069
-
1070
-
1071
- <span class='type'>(<tt>Number</tt>)</span>
1072
-
1073
-
1074
-
1075
- </li>
1076
-
1077
- </ul>
1078
-
1079
- </div><table class="source_code">
1080
- <tr>
1081
- <td>
1082
- <pre class="lines">
1083
-
1084
-
1085
- </pre>
1086
- </td>
1087
- <td>
1088
- <pre class="code"><span class="info file"># File 'ext/simpler_tiles/map.c'</span>
1089
-
1090
- static VALUE
1091
- get_buffer(VALUE self){</pre>
1092
- </td>
1093
- </tr>
1094
- </table>
1095
- </div>
1096
-
1097
- <div class="method_details ">
1098
- <p class="signature " id="buffer=-instance_method">
1099
-
1100
- - (<tt>Number</tt>) <strong>buffer=</strong>
1101
-
1102
-
1103
-
1104
- </p><div class="docstring">
1105
- <div class="discussion">
1106
-
1107
- <p>Set the buffer on the Map.</p>
1108
-
1109
-
1110
- </div>
1111
- </div>
1112
- <div class="tags">
1113
- <h3>Parameters:</h3>
1114
- <ul class="param">
1115
-
1116
- <li>
1117
-
1118
- <span class='name'></span>
1119
-
1120
-
1121
- <span class='type'>(<tt>Number</tt>)</span>
1122
-
1123
-
1124
-
1125
- </li>
1126
-
1127
- </ul>
1128
-
1129
- <h3>Returns:</h3>
1130
- <ul class="return">
1131
-
1132
- <li>
1133
-
1134
-
1135
- <span class='type'>(<tt>Number</tt>)</span>
1136
-
1137
-
1138
-
1139
- </li>
1140
-
1141
- </ul>
1142
-
1143
- </div><table class="source_code">
1144
- <tr>
1145
- <td>
1146
- <pre class="lines">
1147
-
1148
-
1149
- </pre>
1150
- </td>
1151
- <td>
1152
- <pre class="code"><span class="info file"># File 'ext/simpler_tiles/map.c'</span>
1153
-
1154
- static VALUE
1155
- set_buffer(VALUE self, VALUE buffer){</pre>
1156
- </td>
1157
- </tr>
1158
- </table>
1159
- </div>
1160
-
1161
- <div class="method_details ">
1162
- <p class="signature " id="buffered_bounds-instance_method">
1163
-
1164
- - (<tt><span class='object_link'><a href="Bounds.html" title="SimplerTiles::Bounds (class)">Bounds</a></span></tt>) <strong>buffered_bounds</strong>
1165
-
1166
-
1167
-
1168
- </p><div class="docstring">
1169
- <div class="discussion">
1170
-
1171
- <p>Return the bounds of this map sized according to it's buffer attribute.</p>
1172
-
1173
-
1174
- </div>
1175
- </div>
1176
- <div class="tags">
1177
-
1178
- <h3>Returns:</h3>
1179
- <ul class="return">
1180
-
1181
- <li>
1182
-
1183
-
1184
- <span class='type'>(<tt><span class='object_link'><a href="Bounds.html" title="SimplerTiles::Bounds (class)">Bounds</a></span></tt>)</span>
1185
-
1186
-
1187
-
1188
- </li>
1189
-
1190
- </ul>
1191
-
1192
- </div><table class="source_code">
1193
- <tr>
1194
- <td>
1195
- <pre class="lines">
1196
-
1197
-
1198
- </pre>
1199
- </td>
1200
- <td>
1201
- <pre class="code"><span class="info file"># File 'ext/simpler_tiles/map.c'</span>
1202
-
1203
- static VALUE
1204
- buffered_bounds(VALUE self){</pre>
1205
- </td>
1206
- </tr>
1207
- </table>
1208
- </div>
1209
-
1210
- <div class="method_details ">
1211
- <p class="signature " id="height-instance_method">
1212
-
1213
- - (<tt>Number</tt>) <strong>height</strong>
1214
-
1215
-
1216
-
1217
- </p><div class="docstring">
1218
- <div class="discussion">
1219
-
1220
- <p>Get the height of the map.</p>
1221
-
1222
-
1223
- </div>
1224
- </div>
1225
- <div class="tags">
1226
-
1227
- <h3>Returns:</h3>
1228
- <ul class="return">
1229
-
1230
- <li>
1231
-
1232
-
1233
- <span class='type'>(<tt>Number</tt>)</span>
1234
-
1235
-
1236
-
1237
- </li>
1238
-
1239
- </ul>
1240
-
1241
- </div><table class="source_code">
1242
- <tr>
1243
- <td>
1244
- <pre class="lines">
1245
-
1246
-
1247
- </pre>
1248
- </td>
1249
- <td>
1250
- <pre class="code"><span class="info file"># File 'ext/simpler_tiles/map.c'</span>
1251
-
1252
- static VALUE
1253
- get_height(VALUE self){</pre>
1254
- </td>
1255
- </tr>
1256
- </table>
1257
- </div>
1258
-
1259
- <div class="method_details ">
1260
- <p class="signature " id="height=-instance_method">
1261
-
1262
- - (<tt>Number</tt>) <strong>height=</strong>
1263
-
1264
-
1265
-
1266
- </p><div class="docstring">
1267
- <div class="discussion">
1268
-
1269
- <p>Set the height of the Map.</p>
1270
-
1271
-
1272
- </div>
1273
- </div>
1274
- <div class="tags">
1275
-
1276
- <h3>Returns:</h3>
1277
- <ul class="return">
1278
-
1279
- <li>
1280
-
1281
-
1282
- <span class='type'>(<tt>Number</tt>)</span>
1283
-
1284
-
1285
-
1286
- </li>
1287
-
1288
- </ul>
1289
-
1290
- </div><table class="source_code">
1291
- <tr>
1292
- <td>
1293
- <pre class="lines">
1294
-
1295
-
1296
- </pre>
1297
- </td>
1298
- <td>
1299
- <pre class="code"><span class="info file"># File 'ext/simpler_tiles/map.c'</span>
1300
-
1301
- static VALUE
1302
- set_height(VALUE self, VALUE height){</pre>
1303
- </td>
1304
- </tr>
1305
- </table>
1306
- </div>
1307
-
1308
- <div class="method_details ">
1309
- <p class="signature " id="layer-instance_method">
1310
-
1311
- - (<tt>Object</tt>) <strong>layer</strong>(source, &amp;blk)
1312
-
1313
-
1314
-
1315
- </p><div class="docstring">
1316
- <div class="discussion">
1317
-
1318
- <p>Add a layer to the c list of layers and yield the new layer.</p>
1319
-
1320
-
1321
- </div>
1322
- </div>
1323
- <div class="tags">
1324
-
1325
-
1326
- </div><table class="source_code">
1327
- <tr>
1328
- <td>
1329
- <pre class="lines">
1330
-
1331
-
1332
- 13
1333
- 14
1334
- 15
1335
- 16</pre>
1336
- </td>
1337
- <td>
1338
- <pre class="code"><span class="info file"># File 'lib/simpler_tiles/map.rb', line 13</span>
1339
-
1340
- <span class='kw'>def</span> <span class='id identifier rubyid_layer'>layer</span><span class='lparen'>(</span><span class='id identifier rubyid_source'>source</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_blk'>blk</span><span class='rparen'>)</span>
1341
- <span class='id identifier rubyid_layer'>layer</span> <span class='op'>=</span> <span class='const'>SimplerTiles</span><span class='op'>::</span><span class='const'>Layer</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_source'>source</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_blk'>blk</span><span class='rparen'>)</span>
1342
- <span class='id identifier rubyid_add_layer'>add_layer</span> <span class='id identifier rubyid_layer'>layer</span>
1343
- <span class='kw'>end</span></pre>
1344
- </td>
1345
- </tr>
1346
- </table>
1347
- </div>
1348
-
1349
- <div class="method_details ">
1350
- <p class="signature " id="save-instance_method">
1351
-
1352
- - (<tt>Boolean</tt>) <strong>save</strong>
1353
-
1354
-
1355
-
1356
- </p><div class="docstring">
1357
- <div class="discussion">
1358
-
1359
- <p>Render the Map to the filesystem.</p>
1360
-
1361
-
1362
- </div>
1363
- </div>
1364
- <div class="tags">
1365
- <h3>Parameters:</h3>
1366
- <ul class="param">
1367
-
1368
- <li>
1369
-
1370
- <span class='name'></span>
1371
-
1372
-
1373
- <span class='type'>(<tt>String</tt>)</span>
1374
-
1375
-
1376
-
1377
- </li>
1378
-
1379
- </ul>
1380
-
1381
- <h3>Returns:</h3>
1382
- <ul class="return">
1383
-
1384
- <li>
1385
-
1386
-
1387
- <span class='type'>(<tt>Boolean</tt>)</span>
1388
-
1389
-
1390
-
1391
- </li>
1392
-
1393
- </ul>
1394
-
1395
- </div><table class="source_code">
1396
- <tr>
1397
- <td>
1398
- <pre class="lines">
1399
-
1400
-
1401
- </pre>
1402
- </td>
1403
- <td>
1404
- <pre class="code"><span class="info file"># File 'ext/simpler_tiles/map.c'</span>
1405
-
1406
- static VALUE
1407
- save(VALUE self, VALUE path){</pre>
1408
- </td>
1409
- </tr>
1410
- </table>
1411
- </div>
1412
-
1413
- <div class="method_details ">
1414
- <p class="signature " id="set_bounds-instance_method">
1415
-
1416
- - (<tt>nil</tt>) <strong>set_bounds</strong>
1417
-
1418
-
1419
-
1420
- </p><div class="docstring">
1421
- <div class="discussion">
1422
-
1423
- <p>Set the bounds on the map.</p>
1424
-
1425
-
1426
- </div>
1427
- </div>
1428
- <div class="tags">
1429
- <h3>Parameters:</h3>
1430
- <ul class="param">
1431
-
1432
- <li>
1433
-
1434
- <span class='name'></span>
1435
-
1436
-
1437
- <span class='type'>(<tt>Number</tt>, <tt>Number</tt>, <tt>Number</tt>, <tt>Number</tt>)</span>
1438
-
1439
-
1440
-
1441
- </li>
1442
-
1443
- </ul>
1444
-
1445
- <h3>Returns:</h3>
1446
- <ul class="return">
1447
-
1448
- <li>
1449
-
1450
-
1451
- <span class='type'>(<tt>nil</tt>)</span>
1452
-
1453
-
1454
-
1455
- </li>
1456
-
1457
- </ul>
1458
-
1459
- </div><table class="source_code">
1460
- <tr>
1461
- <td>
1462
- <pre class="lines">
1463
-
1464
-
1465
- </pre>
1466
- </td>
1467
- <td>
1468
- <pre class="code"><span class="info file"># File 'ext/simpler_tiles/map.c'</span>
1469
-
1470
- static VALUE
1471
- set_bounds(VALUE self, VALUE maxx, VALUE maxy, VALUE minx, VALUE miny){</pre>
1472
- </td>
1473
- </tr>
1474
- </table>
1475
- </div>
1476
-
1477
- <div class="method_details ">
1478
- <p class="signature " id="set_size-instance_method">
1479
-
1480
- - (<tt>nil</tt>) <strong>set_size</strong>
1481
-
1482
-
1483
-
1484
- </p><div class="docstring">
1485
- <div class="discussion">
1486
-
1487
- <p>Set the size in pixels of the final map.</p>
1488
-
1489
-
1490
- </div>
1491
- </div>
1492
- <div class="tags">
1493
- <h3>Parameters:</h3>
1494
- <ul class="param">
1495
-
1496
- <li>
1497
-
1498
- <span class='name'></span>
1499
-
1500
-
1501
- <span class='type'>(<tt>Number</tt>, <tt>Number</tt>)</span>
1502
-
1503
-
1504
-
1505
- </li>
1506
-
1507
- </ul>
1508
-
1509
- <h3>Returns:</h3>
1510
- <ul class="return">
1511
-
1512
- <li>
1513
-
1514
-
1515
- <span class='type'>(<tt>nil</tt>)</span>
1516
-
1517
-
1518
-
1519
- </li>
1520
-
1521
- </ul>
1522
-
1523
- </div><table class="source_code">
1524
- <tr>
1525
- <td>
1526
- <pre class="lines">
1527
-
1528
-
1529
- </pre>
1530
- </td>
1531
- <td>
1532
- <pre class="code"><span class="info file"># File 'ext/simpler_tiles/map.c'</span>
1533
-
1534
- static VALUE
1535
- set_size(VALUE self, VALUE width, VALUE height){</pre>
1536
- </td>
1537
- </tr>
1538
- </table>
1539
- </div>
1540
-
1541
- <div class="method_details ">
1542
- <p class="signature " id="slippy-instance_method">
1543
-
1544
- - (<tt>nil</tt>) <strong>slippy</strong>
1545
-
1546
-
1547
-
1548
- </p><div class="docstring">
1549
- <div class="discussion">
1550
-
1551
- <p>Set the map to be slippy via passed in parameters.</p>
1552
-
1553
-
1554
- </div>
1555
- </div>
1556
- <div class="tags">
1557
- <h3>Parameters:</h3>
1558
- <ul class="param">
1559
-
1560
- <li>
1561
-
1562
- <span class='name'></span>
1563
-
1564
-
1565
- <span class='type'>(<tt>Number</tt>, <tt>Number</tt>, <tt>Number</tt>)</span>
1566
-
1567
-
1568
-
1569
- </li>
1570
-
1571
- </ul>
1572
-
1573
- <h3>Returns:</h3>
1574
- <ul class="return">
1575
-
1576
- <li>
1577
-
1578
-
1579
- <span class='type'>(<tt>nil</tt>)</span>
1580
-
1581
-
1582
-
1583
- </li>
1584
-
1585
- </ul>
1586
-
1587
- </div><table class="source_code">
1588
- <tr>
1589
- <td>
1590
- <pre class="lines">
1591
-
1592
-
1593
- </pre>
1594
- </td>
1595
- <td>
1596
- <pre class="code"><span class="info file"># File 'ext/simpler_tiles/map.c'</span>
1597
-
1598
- static VALUE
1599
- slippy(VALUE self, VALUE x, VALUE y, VALUE z){</pre>
1600
- </td>
1601
- </tr>
1602
- </table>
1603
- </div>
1604
-
1605
- <div class="method_details ">
1606
- <p class="signature " id="srs-instance_method">
1607
-
1608
- - (<tt>String</tt>) <strong>srs</strong>
1609
-
1610
-
1611
-
1612
- </p><div class="docstring">
1613
- <div class="discussion">
1614
-
1615
- <p>Return the projection for the map in string representation.</p>
1616
-
1617
-
1618
- </div>
1619
- </div>
1620
- <div class="tags">
1621
-
1622
- <h3>Returns:</h3>
1623
- <ul class="return">
1624
-
1625
- <li>
1626
-
1627
-
1628
- <span class='type'>(<tt>String</tt>)</span>
1629
-
1630
-
1631
-
1632
- </li>
1633
-
1634
- </ul>
1635
-
1636
- </div><table class="source_code">
1637
- <tr>
1638
- <td>
1639
- <pre class="lines">
1640
-
1641
-
1642
- </pre>
1643
- </td>
1644
- <td>
1645
- <pre class="code"><span class="info file"># File 'ext/simpler_tiles/map.c'</span>
1646
-
1647
- static VALUE
1648
- get_srs(VALUE self){</pre>
1649
- </td>
1650
- </tr>
1651
- </table>
1652
- </div>
1653
-
1654
- <div class="method_details ">
1655
- <p class="signature " id="srs=-instance_method">
1656
-
1657
- - (<tt>String</tt>) <strong>srs=</strong>
1658
-
1659
-
1660
-
1661
- </p><div class="docstring">
1662
- <div class="discussion">
1663
-
1664
- <p>Set the projection from an Proj.4 readable string.</p>
1665
-
1666
-
1667
- </div>
1668
- </div>
1669
- <div class="tags">
1670
- <h3>Parameters:</h3>
1671
- <ul class="param">
1672
-
1673
- <li>
1674
-
1675
- <span class='name'></span>
1676
-
1677
-
1678
- <span class='type'>(<tt>String</tt>)</span>
1679
-
1680
-
1681
-
1682
- </li>
1683
-
1684
- </ul>
1685
-
1686
- <h3>Returns:</h3>
1687
- <ul class="return">
1688
-
1689
- <li>
1690
-
1691
-
1692
- <span class='type'>(<tt>String</tt>)</span>
1693
-
1694
-
1695
-
1696
- </li>
1697
-
1698
- </ul>
1699
-
1700
- </div><table class="source_code">
1701
- <tr>
1702
- <td>
1703
- <pre class="lines">
1704
-
1705
-
1706
- </pre>
1707
- </td>
1708
- <td>
1709
- <pre class="code"><span class="info file"># File 'ext/simpler_tiles/map.c'</span>
1710
-
1711
- static VALUE
1712
- set_srs(VALUE self, VALUE srs){</pre>
1713
- </td>
1714
- </tr>
1715
- </table>
1716
- </div>
1717
-
1718
- <div class="method_details ">
1719
- <p class="signature " id="to_png-instance_method">
1720
-
1721
- - (<tt>Object</tt>) <strong>to_png</strong> {|data| ... }
1722
-
1723
-
1724
-
1725
- </p><div class="docstring">
1726
- <div class="discussion">
1727
-
1728
- <p>Render the data to a blob of png data.</p>
1729
-
1730
-
1731
- </div>
1732
- </div>
1733
- <div class="tags">
1734
-
1735
- <h3>Yields:</h3>
1736
- <ul class="yield">
1737
-
1738
- <li>
1739
-
1740
-
1741
- <span class='type'>(<tt>data</tt>)</span>
1742
-
1743
-
1744
-
1745
- </li>
1746
-
1747
- </ul>
1748
-
1749
- </div><table class="source_code">
1750
- <tr>
1751
- <td>
1752
- <pre class="lines">
1753
-
1754
-
1755
- 38
1756
- 39
1757
- 40
1758
- 41
1759
- 42
1760
- 43</pre>
1761
- </td>
1762
- <td>
1763
- <pre class="code"><span class="info file"># File 'lib/simpler_tiles/map.rb', line 38</span>
1764
-
1765
- <span class='kw'>def</span> <span class='id identifier rubyid_to_png'>to_png</span>
1766
- <span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span>
1767
- <span class='id identifier rubyid_to_png_stream'>to_png_stream</span> <span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_chunk'>chunk</span><span class='op'>|</span> <span class='id identifier rubyid_data'>data</span> <span class='op'>+=</span> <span class='id identifier rubyid_chunk'>chunk</span> <span class='rbrace'>}</span>
1768
- <span class='kw'>yield</span> <span class='id identifier rubyid_data'>data</span> <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
1769
- <span class='id identifier rubyid_data'>data</span>
1770
- <span class='kw'>end</span></pre>
1771
- </td>
1772
- </tr>
1773
- </table>
1774
- </div>
1775
-
1776
- <div class="method_details ">
1777
- <p class="signature " id="to_png_stream-instance_method">
1778
-
1779
- - (<tt>nil</tt>) <strong>to_png_stream</strong> {|chunk| ... }
1780
-
1781
-
1782
-
1783
- </p><div class="docstring">
1784
- <div class="discussion">
1785
-
1786
- <p>Render the map to a png stream and yield values to the passed in block.</p>
1787
-
1788
-
1789
- </div>
1790
- </div>
1791
- <div class="tags">
1792
-
1793
- <h3>Yields:</h3>
1794
- <ul class="yield">
1795
-
1796
- <li>
1797
-
1798
-
1799
- <span class='type'>(<tt>chunk</tt>)</span>
1800
-
1801
-
1802
-
1803
- &mdash;
1804
- <div class='inline'>
1805
- <p>Block that takes chunks of data</p>
1806
- </div>
1807
-
1808
- </li>
1809
-
1810
- </ul>
1811
- <h3>Returns:</h3>
1812
- <ul class="return">
1813
-
1814
- <li>
1815
-
1816
-
1817
- <span class='type'>(<tt>nil</tt>)</span>
1818
-
1819
-
1820
-
1821
- </li>
1822
-
1823
- </ul>
1824
-
1825
- </div><table class="source_code">
1826
- <tr>
1827
- <td>
1828
- <pre class="lines">
1829
-
1830
-
1831
- </pre>
1832
- </td>
1833
- <td>
1834
- <pre class="code"><span class="info file"># File 'ext/simpler_tiles/map.c'</span>
1835
-
1836
- static VALUE
1837
- to_png_stream(VALUE self, VALUE block){</pre>
1838
- </td>
1839
- </tr>
1840
- </table>
1841
- </div>
1842
-
1843
- <div class="method_details ">
1844
- <p class="signature " id="valid?-instance_method">
1845
-
1846
- - (<tt>Boolean</tt>) <strong>valid?</strong>
1847
-
1848
-
1849
-
1850
- </p><div class="docstring">
1851
- <div class="discussion">
1852
-
1853
- <p>Test to see if the Map has fulfilled the requirements for rendering</p>
1854
-
1855
-
1856
- </div>
1857
- </div>
1858
- <div class="tags">
1859
-
1860
- <h3>Returns:</h3>
1861
- <ul class="return">
1862
-
1863
- <li>
1864
-
1865
-
1866
- <span class='type'>(<tt>Boolean</tt>)</span>
1867
-
1868
-
1869
-
1870
- </li>
1871
-
1872
- </ul>
1873
-
1874
- </div><table class="source_code">
1875
- <tr>
1876
- <td>
1877
- <pre class="lines">
1878
-
1879
-
1880
- </pre>
1881
- </td>
1882
- <td>
1883
- <pre class="code"><span class="info file"># File 'ext/simpler_tiles/map.c'</span>
1884
-
1885
- static VALUE
1886
- is_valid(VALUE self){</pre>
1887
- </td>
1888
- </tr>
1889
- </table>
1890
- </div>
1891
-
1892
- <div class="method_details ">
1893
- <p class="signature " id="width-instance_method">
1894
-
1895
- - (<tt>Number</tt>) <strong>width</strong>
1896
-
1897
-
1898
-
1899
- </p><div class="docstring">
1900
- <div class="discussion">
1901
-
1902
- <p>Get the width of the map.</p>
1903
-
1904
-
1905
- </div>
1906
- </div>
1907
- <div class="tags">
1908
-
1909
- <h3>Returns:</h3>
1910
- <ul class="return">
1911
-
1912
- <li>
1913
-
1914
-
1915
- <span class='type'>(<tt>Number</tt>)</span>
1916
-
1917
-
1918
-
1919
- </li>
1920
-
1921
- </ul>
1922
-
1923
- </div><table class="source_code">
1924
- <tr>
1925
- <td>
1926
- <pre class="lines">
1927
-
1928
-
1929
- </pre>
1930
- </td>
1931
- <td>
1932
- <pre class="code"><span class="info file"># File 'ext/simpler_tiles/map.c'</span>
1933
-
1934
- static VALUE
1935
- get_width(VALUE self){</pre>
1936
- </td>
1937
- </tr>
1938
- </table>
1939
- </div>
1940
-
1941
- <div class="method_details ">
1942
- <p class="signature " id="width=-instance_method">
1943
-
1944
- - (<tt>Number</tt>) <strong>width=</strong>
1945
-
1946
-
1947
-
1948
- </p><div class="docstring">
1949
- <div class="discussion">
1950
-
1951
- <p>Set the width of the Map.</p>
1952
-
1953
-
1954
- </div>
1955
- </div>
1956
- <div class="tags">
1957
-
1958
- <h3>Returns:</h3>
1959
- <ul class="return">
1960
-
1961
- <li>
1962
-
1963
-
1964
- <span class='type'>(<tt>Number</tt>)</span>
1965
-
1966
-
1967
-
1968
- </li>
1969
-
1970
- </ul>
1971
-
1972
- </div><table class="source_code">
1973
- <tr>
1974
- <td>
1975
- <pre class="lines">
1976
-
1977
-
1978
- </pre>
1979
- </td>
1980
- <td>
1981
- <pre class="code"><span class="info file"># File 'ext/simpler_tiles/map.c'</span>
1982
-
1983
- static VALUE
1984
- set_width(VALUE self, VALUE width){</pre>
1985
- </td>
1986
- </tr>
1987
- </table>
1988
- </div>
1989
-
1990
- </div>
1991
-
1992
- </div>
1993
-
1994
- <div id="footer">
1995
- Generated on Sat Dec 8 18:04:33 2012 by
1996
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1997
- 0.7.5 (ruby-1.9.3).
1998
- </div>
1999
-
2000
- </body>
2001
- </html>