leaflet-ruby 0.3.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. data/CHANGELOG.rdoc +5 -0
  2. data/LICENSE +21 -0
  3. data/README.rdoc +55 -0
  4. data/Rakefile +15 -0
  5. data/leaflet-ruby.gemspec +24 -0
  6. data/lib/leaflet-ruby.rb +18 -0
  7. data/lib/leaflet/CHANGELOG.md +181 -0
  8. data/lib/leaflet/Jakefile.js +65 -0
  9. data/lib/leaflet/LICENSE +22 -0
  10. data/lib/leaflet/README.md +32 -0
  11. data/lib/leaflet/build/build.html +243 -0
  12. data/lib/leaflet/build/build.js +79 -0
  13. data/lib/leaflet/build/deps.js +231 -0
  14. data/lib/leaflet/build/hint.js +30 -0
  15. data/lib/leaflet/build/hintrc.js +44 -0
  16. data/lib/leaflet/debug/control/control-layers.html +47 -0
  17. data/lib/leaflet/debug/control/map-control.html +29 -0
  18. data/lib/leaflet/debug/css/mobile.css +6 -0
  19. data/lib/leaflet/debug/css/screen.css +5 -0
  20. data/lib/leaflet/debug/geojson/geojson-sample.js +53 -0
  21. data/lib/leaflet/debug/geojson/geojson.html +56 -0
  22. data/lib/leaflet/debug/leaflet-include.js +120 -0
  23. data/lib/leaflet/debug/map/canvas.html +46 -0
  24. data/lib/leaflet/debug/map/map-mobile.html +42 -0
  25. data/lib/leaflet/debug/map/map.html +54 -0
  26. data/lib/leaflet/debug/map/max-bounds.html +36 -0
  27. data/lib/leaflet/debug/map/scroll.html +35 -0
  28. data/lib/leaflet/debug/map/wms-marble.html +30 -0
  29. data/lib/leaflet/debug/map/wms.html +37 -0
  30. data/lib/leaflet/debug/vector/editable.html +43 -0
  31. data/lib/leaflet/debug/vector/route.js +1 -0
  32. data/lib/leaflet/debug/vector/vector-bounds.html +69 -0
  33. data/lib/leaflet/debug/vector/vector-canvas.html +92 -0
  34. data/lib/leaflet/debug/vector/vector-mobile.html +38 -0
  35. data/lib/leaflet/debug/vector/vector-simple.html +63 -0
  36. data/lib/leaflet/debug/vector/vector.html +38 -0
  37. data/lib/leaflet/dist/images/layers.png +0 -0
  38. data/lib/leaflet/dist/images/marker-shadow.png +0 -0
  39. data/lib/leaflet/dist/images/marker.png +0 -0
  40. data/lib/leaflet/dist/images/popup-close.png +0 -0
  41. data/lib/leaflet/dist/images/zoom-in.png +0 -0
  42. data/lib/leaflet/dist/images/zoom-out.png +0 -0
  43. data/lib/leaflet/dist/leaflet-src.js +5537 -0
  44. data/lib/leaflet/dist/leaflet.css +323 -0
  45. data/lib/leaflet/dist/leaflet.ie.css +48 -0
  46. data/lib/leaflet/dist/leaflet.js +6 -0
  47. data/lib/leaflet/lib/jasmine/jasmine-html.js +182 -0
  48. data/lib/leaflet/lib/jasmine/jasmine.css +166 -0
  49. data/lib/leaflet/lib/jasmine/jasmine.js +2421 -0
  50. data/lib/leaflet/spec/runner.html +57 -0
  51. data/lib/leaflet/spec/suites/LeafletSpec.js +15 -0
  52. data/lib/leaflet/spec/suites/SpecHelper.js +28 -0
  53. data/lib/leaflet/spec/suites/core/ClassSpec.js +153 -0
  54. data/lib/leaflet/spec/suites/core/EventsSpec.js +110 -0
  55. data/lib/leaflet/spec/suites/core/UtilSpec.js +63 -0
  56. data/lib/leaflet/spec/suites/dom/DomEventSpec.js +102 -0
  57. data/lib/leaflet/spec/suites/dom/DomUtilSpec.js +59 -0
  58. data/lib/leaflet/spec/suites/geo/LatLngBoundsSpec.js +1 -0
  59. data/lib/leaflet/spec/suites/geo/LatLngSpec.js +76 -0
  60. data/lib/leaflet/spec/suites/geo/ProjectionSpec.js +42 -0
  61. data/lib/leaflet/spec/suites/geometry/BoundsSpec.js +53 -0
  62. data/lib/leaflet/spec/suites/geometry/PointSpec.js +45 -0
  63. data/lib/leaflet/spec/suites/geometry/TransformationSpec.js +19 -0
  64. data/lib/leaflet/spec/suites/layer/TileLayerSpec.js +1 -0
  65. data/lib/leaflet/spec/suites/layer/vector/PolylineGeometrySpec.js +35 -0
  66. data/lib/leaflet/spec/suites/map/MapSpec.js +1 -0
  67. data/lib/leaflet/src/Leaflet.js +33 -0
  68. data/lib/leaflet/src/control/Control.Attribution.js +66 -0
  69. data/lib/leaflet/src/control/Control.Layers.js +167 -0
  70. data/lib/leaflet/src/control/Control.Zoom.js +36 -0
  71. data/lib/leaflet/src/control/Control.js +9 -0
  72. data/lib/leaflet/src/core/Browser.js +53 -0
  73. data/lib/leaflet/src/core/Class.js +66 -0
  74. data/lib/leaflet/src/core/Events.js +62 -0
  75. data/lib/leaflet/src/core/Handler.js +29 -0
  76. data/lib/leaflet/src/core/Util.js +108 -0
  77. data/lib/leaflet/src/dom/DomEvent.DoubleTap.js +43 -0
  78. data/lib/leaflet/src/dom/DomEvent.js +154 -0
  79. data/lib/leaflet/src/dom/DomUtil.js +155 -0
  80. data/lib/leaflet/src/dom/Draggable.js +147 -0
  81. data/lib/leaflet/src/dom/transition/Transition.Native.js +102 -0
  82. data/lib/leaflet/src/dom/transition/Transition.Timer.js +126 -0
  83. data/lib/leaflet/src/dom/transition/Transition.js +28 -0
  84. data/lib/leaflet/src/geo/LatLng.js +44 -0
  85. data/lib/leaflet/src/geo/LatLngBounds.js +86 -0
  86. data/lib/leaflet/src/geo/crs/CRS.EPSG3395.js +13 -0
  87. data/lib/leaflet/src/geo/crs/CRS.EPSG3857.js +17 -0
  88. data/lib/leaflet/src/geo/crs/CRS.EPSG4326.js +7 -0
  89. data/lib/leaflet/src/geo/crs/CRS.js +17 -0
  90. data/lib/leaflet/src/geo/projection/Projection.LonLat.js +10 -0
  91. data/lib/leaflet/src/geo/projection/Projection.Mercator.js +51 -0
  92. data/lib/leaflet/src/geo/projection/Projection.SphericalMercator.js +23 -0
  93. data/lib/leaflet/src/geo/projection/Projection.js +5 -0
  94. data/lib/leaflet/src/geometry/Bounds.js +50 -0
  95. data/lib/leaflet/src/geometry/LineUtil.js +194 -0
  96. data/lib/leaflet/src/geometry/Point.js +66 -0
  97. data/lib/leaflet/src/geometry/PolyUtil.js +59 -0
  98. data/lib/leaflet/src/geometry/Transformation.js +31 -0
  99. data/lib/leaflet/src/layer/FeatureGroup.js +40 -0
  100. data/lib/leaflet/src/layer/GeoJSON.js +104 -0
  101. data/lib/leaflet/src/layer/ImageOverlay.js +58 -0
  102. data/lib/leaflet/src/layer/LayerGroup.js +74 -0
  103. data/lib/leaflet/src/layer/Popup.js +179 -0
  104. data/lib/leaflet/src/layer/marker/Icon.js +58 -0
  105. data/lib/leaflet/src/layer/marker/Marker.Drag.js +57 -0
  106. data/lib/leaflet/src/layer/marker/Marker.Popup.js +42 -0
  107. data/lib/leaflet/src/layer/marker/Marker.js +142 -0
  108. data/lib/leaflet/src/layer/tile/TileLayer.Canvas.js +41 -0
  109. data/lib/leaflet/src/layer/tile/TileLayer.WMS.js +47 -0
  110. data/lib/leaflet/src/layer/tile/TileLayer.js +310 -0
  111. data/lib/leaflet/src/layer/vector/Circle.js +68 -0
  112. data/lib/leaflet/src/layer/vector/CircleMarker.js +25 -0
  113. data/lib/leaflet/src/layer/vector/MultiPoly.js +34 -0
  114. data/lib/leaflet/src/layer/vector/Path.Popup.js +24 -0
  115. data/lib/leaflet/src/layer/vector/Path.SVG.js +138 -0
  116. data/lib/leaflet/src/layer/vector/Path.VML.js +93 -0
  117. data/lib/leaflet/src/layer/vector/Path.js +88 -0
  118. data/lib/leaflet/src/layer/vector/Polygon.js +64 -0
  119. data/lib/leaflet/src/layer/vector/Polyline.js +146 -0
  120. data/lib/leaflet/src/layer/vector/canvas/Circle.Canvas.js +18 -0
  121. data/lib/leaflet/src/layer/vector/canvas/Path.Canvas.js +146 -0
  122. data/lib/leaflet/src/layer/vector/canvas/Polygon.Canvas.js +34 -0
  123. data/lib/leaflet/src/layer/vector/canvas/Polyline.Canvas.js +27 -0
  124. data/lib/leaflet/src/map/Map.js +613 -0
  125. data/lib/leaflet/src/map/anim/Map.PanAnimation.js +70 -0
  126. data/lib/leaflet/src/map/anim/Map.ZoomAnimation.js +133 -0
  127. data/lib/leaflet/src/map/ext/Map.Control.js +50 -0
  128. data/lib/leaflet/src/map/ext/Map.Geolocation.js +86 -0
  129. data/lib/leaflet/src/map/ext/Map.Popup.js +20 -0
  130. data/lib/leaflet/src/map/handler/Map.BoxZoom.js +73 -0
  131. data/lib/leaflet/src/map/handler/Map.DoubleClickZoom.js +18 -0
  132. data/lib/leaflet/src/map/handler/Map.Drag.js +81 -0
  133. data/lib/leaflet/src/map/handler/Map.ScrollWheelZoom.js +55 -0
  134. data/lib/leaflet/src/map/handler/Map.TouchZoom.js +93 -0
  135. data/lib/zerista/CRS.Cartesian.js +20 -0
  136. data/lib/zerista/Projection.Identity.js +11 -0
  137. data/lib/zerista/zerista_layer.js +97 -0
  138. data/vendor/assets/javascripts/leaflet.js +139 -0
  139. data/vendor/assets/stylesheets/leaflet.css +1 -0
  140. data/vendor/assets/stylesheets/leaflet.ie.css +1 -0
  141. metadata +185 -0
@@ -0,0 +1 @@
1
+ //=require ../../../lib/leaflet/dist/leaflet.css
@@ -0,0 +1 @@
1
+ //=require ../../../lib/leaflet/dist/leaflet.ie.css
metadata ADDED
@@ -0,0 +1,185 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: leaflet-ruby
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.beta1
5
+ prerelease: 4
6
+ platform: ruby
7
+ authors:
8
+ - Charlie Savage
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-01-16 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description:
15
+ email:
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - leaflet-ruby.gemspec
21
+ - CHANGELOG.rdoc
22
+ - LICENSE
23
+ - Rakefile
24
+ - README.rdoc
25
+ - lib/leaflet-ruby.rb
26
+ - lib/zerista/CRS.Cartesian.js
27
+ - lib/zerista/Projection.Identity.js
28
+ - lib/zerista/zerista_layer.js
29
+ - lib/leaflet/build/build.html
30
+ - lib/leaflet/build/build.js
31
+ - lib/leaflet/build/deps.js
32
+ - lib/leaflet/build/hint.js
33
+ - lib/leaflet/build/hintrc.js
34
+ - lib/leaflet/CHANGELOG.md
35
+ - lib/leaflet/debug/control/control-layers.html
36
+ - lib/leaflet/debug/control/map-control.html
37
+ - lib/leaflet/debug/css/mobile.css
38
+ - lib/leaflet/debug/css/screen.css
39
+ - lib/leaflet/debug/geojson/geojson-sample.js
40
+ - lib/leaflet/debug/geojson/geojson.html
41
+ - lib/leaflet/debug/leaflet-include.js
42
+ - lib/leaflet/debug/map/canvas.html
43
+ - lib/leaflet/debug/map/map-mobile.html
44
+ - lib/leaflet/debug/map/map.html
45
+ - lib/leaflet/debug/map/max-bounds.html
46
+ - lib/leaflet/debug/map/scroll.html
47
+ - lib/leaflet/debug/map/wms-marble.html
48
+ - lib/leaflet/debug/map/wms.html
49
+ - lib/leaflet/debug/vector/editable.html
50
+ - lib/leaflet/debug/vector/route.js
51
+ - lib/leaflet/debug/vector/vector-bounds.html
52
+ - lib/leaflet/debug/vector/vector-canvas.html
53
+ - lib/leaflet/debug/vector/vector-mobile.html
54
+ - lib/leaflet/debug/vector/vector-simple.html
55
+ - lib/leaflet/debug/vector/vector.html
56
+ - lib/leaflet/dist/images/layers.png
57
+ - lib/leaflet/dist/images/marker-shadow.png
58
+ - lib/leaflet/dist/images/marker.png
59
+ - lib/leaflet/dist/images/popup-close.png
60
+ - lib/leaflet/dist/images/zoom-in.png
61
+ - lib/leaflet/dist/images/zoom-out.png
62
+ - lib/leaflet/dist/leaflet-src.js
63
+ - lib/leaflet/dist/leaflet.css
64
+ - lib/leaflet/dist/leaflet.ie.css
65
+ - lib/leaflet/dist/leaflet.js
66
+ - lib/leaflet/Jakefile.js
67
+ - lib/leaflet/lib/jasmine/jasmine-html.js
68
+ - lib/leaflet/lib/jasmine/jasmine.css
69
+ - lib/leaflet/lib/jasmine/jasmine.js
70
+ - lib/leaflet/LICENSE
71
+ - lib/leaflet/README.md
72
+ - lib/leaflet/spec/runner.html
73
+ - lib/leaflet/spec/suites/core/ClassSpec.js
74
+ - lib/leaflet/spec/suites/core/EventsSpec.js
75
+ - lib/leaflet/spec/suites/core/UtilSpec.js
76
+ - lib/leaflet/spec/suites/dom/DomEventSpec.js
77
+ - lib/leaflet/spec/suites/dom/DomUtilSpec.js
78
+ - lib/leaflet/spec/suites/geo/LatLngBoundsSpec.js
79
+ - lib/leaflet/spec/suites/geo/LatLngSpec.js
80
+ - lib/leaflet/spec/suites/geo/ProjectionSpec.js
81
+ - lib/leaflet/spec/suites/geometry/BoundsSpec.js
82
+ - lib/leaflet/spec/suites/geometry/PointSpec.js
83
+ - lib/leaflet/spec/suites/geometry/TransformationSpec.js
84
+ - lib/leaflet/spec/suites/layer/TileLayerSpec.js
85
+ - lib/leaflet/spec/suites/layer/vector/PolylineGeometrySpec.js
86
+ - lib/leaflet/spec/suites/LeafletSpec.js
87
+ - lib/leaflet/spec/suites/map/MapSpec.js
88
+ - lib/leaflet/spec/suites/SpecHelper.js
89
+ - lib/leaflet/src/control/Control.Attribution.js
90
+ - lib/leaflet/src/control/Control.js
91
+ - lib/leaflet/src/control/Control.Layers.js
92
+ - lib/leaflet/src/control/Control.Zoom.js
93
+ - lib/leaflet/src/core/Browser.js
94
+ - lib/leaflet/src/core/Class.js
95
+ - lib/leaflet/src/core/Events.js
96
+ - lib/leaflet/src/core/Handler.js
97
+ - lib/leaflet/src/core/Util.js
98
+ - lib/leaflet/src/dom/DomEvent.DoubleTap.js
99
+ - lib/leaflet/src/dom/DomEvent.js
100
+ - lib/leaflet/src/dom/DomUtil.js
101
+ - lib/leaflet/src/dom/Draggable.js
102
+ - lib/leaflet/src/dom/transition/Transition.js
103
+ - lib/leaflet/src/dom/transition/Transition.Native.js
104
+ - lib/leaflet/src/dom/transition/Transition.Timer.js
105
+ - lib/leaflet/src/geo/crs/CRS.EPSG3395.js
106
+ - lib/leaflet/src/geo/crs/CRS.EPSG3857.js
107
+ - lib/leaflet/src/geo/crs/CRS.EPSG4326.js
108
+ - lib/leaflet/src/geo/crs/CRS.js
109
+ - lib/leaflet/src/geo/LatLng.js
110
+ - lib/leaflet/src/geo/LatLngBounds.js
111
+ - lib/leaflet/src/geo/projection/Projection.js
112
+ - lib/leaflet/src/geo/projection/Projection.LonLat.js
113
+ - lib/leaflet/src/geo/projection/Projection.Mercator.js
114
+ - lib/leaflet/src/geo/projection/Projection.SphericalMercator.js
115
+ - lib/leaflet/src/geometry/Bounds.js
116
+ - lib/leaflet/src/geometry/LineUtil.js
117
+ - lib/leaflet/src/geometry/Point.js
118
+ - lib/leaflet/src/geometry/PolyUtil.js
119
+ - lib/leaflet/src/geometry/Transformation.js
120
+ - lib/leaflet/src/layer/FeatureGroup.js
121
+ - lib/leaflet/src/layer/GeoJSON.js
122
+ - lib/leaflet/src/layer/ImageOverlay.js
123
+ - lib/leaflet/src/layer/LayerGroup.js
124
+ - lib/leaflet/src/layer/marker/Icon.js
125
+ - lib/leaflet/src/layer/marker/Marker.Drag.js
126
+ - lib/leaflet/src/layer/marker/Marker.js
127
+ - lib/leaflet/src/layer/marker/Marker.Popup.js
128
+ - lib/leaflet/src/layer/Popup.js
129
+ - lib/leaflet/src/layer/tile/TileLayer.Canvas.js
130
+ - lib/leaflet/src/layer/tile/TileLayer.js
131
+ - lib/leaflet/src/layer/tile/TileLayer.WMS.js
132
+ - lib/leaflet/src/layer/vector/canvas/Circle.Canvas.js
133
+ - lib/leaflet/src/layer/vector/canvas/Path.Canvas.js
134
+ - lib/leaflet/src/layer/vector/canvas/Polygon.Canvas.js
135
+ - lib/leaflet/src/layer/vector/canvas/Polyline.Canvas.js
136
+ - lib/leaflet/src/layer/vector/Circle.js
137
+ - lib/leaflet/src/layer/vector/CircleMarker.js
138
+ - lib/leaflet/src/layer/vector/MultiPoly.js
139
+ - lib/leaflet/src/layer/vector/Path.js
140
+ - lib/leaflet/src/layer/vector/Path.Popup.js
141
+ - lib/leaflet/src/layer/vector/Path.SVG.js
142
+ - lib/leaflet/src/layer/vector/Path.VML.js
143
+ - lib/leaflet/src/layer/vector/Polygon.js
144
+ - lib/leaflet/src/layer/vector/Polyline.js
145
+ - lib/leaflet/src/Leaflet.js
146
+ - lib/leaflet/src/map/anim/Map.PanAnimation.js
147
+ - lib/leaflet/src/map/anim/Map.ZoomAnimation.js
148
+ - lib/leaflet/src/map/ext/Map.Control.js
149
+ - lib/leaflet/src/map/ext/Map.Geolocation.js
150
+ - lib/leaflet/src/map/ext/Map.Popup.js
151
+ - lib/leaflet/src/map/handler/Map.BoxZoom.js
152
+ - lib/leaflet/src/map/handler/Map.DoubleClickZoom.js
153
+ - lib/leaflet/src/map/handler/Map.Drag.js
154
+ - lib/leaflet/src/map/handler/Map.ScrollWheelZoom.js
155
+ - lib/leaflet/src/map/handler/Map.TouchZoom.js
156
+ - lib/leaflet/src/map/Map.js
157
+ - vendor/assets/stylesheets/leaflet.css
158
+ - vendor/assets/stylesheets/leaflet.ie.css
159
+ - vendor/assets/javascripts/leaflet.js
160
+ homepage: https://github.com/cfis/leaflet-ruby
161
+ licenses: []
162
+ post_install_message:
163
+ rdoc_options: []
164
+ require_paths:
165
+ - lib
166
+ required_ruby_version: !ruby/object:Gem::Requirement
167
+ none: false
168
+ requirements:
169
+ - - ! '>='
170
+ - !ruby/object:Gem::Version
171
+ version: 1.8.7
172
+ required_rubygems_version: !ruby/object:Gem::Requirement
173
+ none: false
174
+ requirements:
175
+ - - ! '>'
176
+ - !ruby/object:Gem::Version
177
+ version: 1.3.1
178
+ requirements: []
179
+ rubyforge_project:
180
+ rubygems_version: 1.8.15
181
+ signing_key:
182
+ specification_version: 3
183
+ summary: Wraps the Leaflet Javascript Mapping Library in a Rails asset gem. For more
184
+ information about Leaflet please see http://leaflet.cloudmade.com.
185
+ test_files: []