openlayers-rails 0.0.2

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.
Files changed (75) hide show
  1. data/.gitignore +16 -0
  2. data/.gitmodules +3 -0
  3. data/LICENSE.txt +27 -0
  4. data/README.md +21 -0
  5. data/app/assets/javascripts/openlayers-rails.js +3 -0
  6. data/authors.txt +56 -0
  7. data/doc/licenses/APACHE-2.0.txt +202 -0
  8. data/doc/licenses/BSD-LICENSE.txt +28 -0
  9. data/doc/licenses/MIT-LICENSE.txt +18 -0
  10. data/lib/openlayers-rails.rb +16 -0
  11. data/lib/openlayers-rails/version.rb +5 -0
  12. data/openlayers-rails.gemspec +20 -0
  13. data/vendor/assets/images/openlayers/img/blank.gif +0 -0
  14. data/vendor/assets/images/openlayers/img/cloud-popup-relative.png +0 -0
  15. data/vendor/assets/images/openlayers/img/drag-rectangle-off.png +0 -0
  16. data/vendor/assets/images/openlayers/img/drag-rectangle-on.png +0 -0
  17. data/vendor/assets/images/openlayers/img/east-mini.png +0 -0
  18. data/vendor/assets/images/openlayers/img/layer-switcher-maximize.png +0 -0
  19. data/vendor/assets/images/openlayers/img/layer-switcher-minimize.png +0 -0
  20. data/vendor/assets/images/openlayers/img/marker-blue.png +0 -0
  21. data/vendor/assets/images/openlayers/img/marker-gold.png +0 -0
  22. data/vendor/assets/images/openlayers/img/marker-green.png +0 -0
  23. data/vendor/assets/images/openlayers/img/marker.png +0 -0
  24. data/vendor/assets/images/openlayers/img/measuring-stick-off.png +0 -0
  25. data/vendor/assets/images/openlayers/img/measuring-stick-on.png +0 -0
  26. data/vendor/assets/images/openlayers/img/north-mini.png +0 -0
  27. data/vendor/assets/images/openlayers/img/panning-hand-off.png +0 -0
  28. data/vendor/assets/images/openlayers/img/panning-hand-on.png +0 -0
  29. data/vendor/assets/images/openlayers/img/slider.png +0 -0
  30. data/vendor/assets/images/openlayers/img/south-mini.png +0 -0
  31. data/vendor/assets/images/openlayers/img/west-mini.png +0 -0
  32. data/vendor/assets/images/openlayers/img/zoom-minus-mini.png +0 -0
  33. data/vendor/assets/images/openlayers/img/zoom-plus-mini.png +0 -0
  34. data/vendor/assets/images/openlayers/img/zoom-world-mini.png +0 -0
  35. data/vendor/assets/images/openlayers/img/zoombar.png +0 -0
  36. data/vendor/assets/images/openlayers/theme/default/img/add_point_off.png +0 -0
  37. data/vendor/assets/images/openlayers/theme/default/img/add_point_on.png +0 -0
  38. data/vendor/assets/images/openlayers/theme/default/img/blank.gif +0 -0
  39. data/vendor/assets/images/openlayers/theme/default/img/close.gif +0 -0
  40. data/vendor/assets/images/openlayers/theme/default/img/drag-rectangle-off.png +0 -0
  41. data/vendor/assets/images/openlayers/theme/default/img/drag-rectangle-on.png +0 -0
  42. data/vendor/assets/images/openlayers/theme/default/img/draw_line_off.png +0 -0
  43. data/vendor/assets/images/openlayers/theme/default/img/draw_line_on.png +0 -0
  44. data/vendor/assets/images/openlayers/theme/default/img/draw_point_off.png +0 -0
  45. data/vendor/assets/images/openlayers/theme/default/img/draw_point_on.png +0 -0
  46. data/vendor/assets/images/openlayers/theme/default/img/draw_polygon_off.png +0 -0
  47. data/vendor/assets/images/openlayers/theme/default/img/draw_polygon_on.png +0 -0
  48. data/vendor/assets/images/openlayers/theme/default/img/editing_tool_bar.png +0 -0
  49. data/vendor/assets/images/openlayers/theme/default/img/move_feature_off.png +0 -0
  50. data/vendor/assets/images/openlayers/theme/default/img/move_feature_on.png +0 -0
  51. data/vendor/assets/images/openlayers/theme/default/img/navigation_history.png +0 -0
  52. data/vendor/assets/images/openlayers/theme/default/img/overview_replacement.gif +0 -0
  53. data/vendor/assets/images/openlayers/theme/default/img/pan-panel-NOALPHA.png +0 -0
  54. data/vendor/assets/images/openlayers/theme/default/img/pan-panel.png +0 -0
  55. data/vendor/assets/images/openlayers/theme/default/img/pan_off.png +0 -0
  56. data/vendor/assets/images/openlayers/theme/default/img/pan_on.png +0 -0
  57. data/vendor/assets/images/openlayers/theme/default/img/panning-hand-off.png +0 -0
  58. data/vendor/assets/images/openlayers/theme/default/img/panning-hand-on.png +0 -0
  59. data/vendor/assets/images/openlayers/theme/default/img/remove_point_off.png +0 -0
  60. data/vendor/assets/images/openlayers/theme/default/img/remove_point_on.png +0 -0
  61. data/vendor/assets/images/openlayers/theme/default/img/ruler.png +0 -0
  62. data/vendor/assets/images/openlayers/theme/default/img/save_features_off.png +0 -0
  63. data/vendor/assets/images/openlayers/theme/default/img/save_features_on.png +0 -0
  64. data/vendor/assets/images/openlayers/theme/default/img/view_next_off.png +0 -0
  65. data/vendor/assets/images/openlayers/theme/default/img/view_next_on.png +0 -0
  66. data/vendor/assets/images/openlayers/theme/default/img/view_previous_off.png +0 -0
  67. data/vendor/assets/images/openlayers/theme/default/img/view_previous_on.png +0 -0
  68. data/vendor/assets/images/openlayers/theme/default/img/zoom-panel-NOALPHA.png +0 -0
  69. data/vendor/assets/images/openlayers/theme/default/img/zoom-panel.png +0 -0
  70. data/vendor/assets/javascripts/openlayers/OpenLayers.js +84716 -0
  71. data/vendor/assets/stylesheets/openlayers/theme/default/google.css +9 -0
  72. data/vendor/assets/stylesheets/openlayers/theme/default/ie6-style.css +10 -0
  73. data/vendor/assets/stylesheets/openlayers/theme/default/style.css +498 -0
  74. data/vendor/assets/stylesheets/openlayers/theme/default/style.mobile.css +63 -0
  75. metadata +142 -0
@@ -0,0 +1,9 @@
1
+ .olLayerGoogleCopyright {
2
+ right: 3px;
3
+ bottom: 2px;
4
+ left: auto;
5
+ }
6
+ .olLayerGooglePoweredBy {
7
+ left: 2px;
8
+ bottom: 2px;
9
+ }
@@ -0,0 +1,10 @@
1
+ .olControlZoomPanel div {
2
+ background-image: url(img/zoom-panel-NOALPHA.png);
3
+ }
4
+ .olControlPanPanel div {
5
+ background-image: url(img/pan-panel-NOALPHA.png);
6
+ }
7
+ .olControlEditingToolbar {
8
+ width: 200px;
9
+ }
10
+
@@ -0,0 +1,498 @@
1
+ div.olMap {
2
+ z-index: 0;
3
+ padding: 0 !important;
4
+ margin: 0 !important;
5
+ cursor: default;
6
+ }
7
+
8
+ div.olMapViewport {
9
+ text-align: left;
10
+ }
11
+
12
+ div.olLayerDiv {
13
+ -moz-user-select: none;
14
+ -khtml-user-select: none;
15
+ }
16
+
17
+ .olLayerGoogleCopyright {
18
+ left: 2px;
19
+ bottom: 2px;
20
+ }
21
+ .olLayerGoogleV3.olLayerGoogleCopyright {
22
+ right: auto !important;
23
+ }
24
+ .olLayerGooglePoweredBy {
25
+ left: 2px;
26
+ bottom: 15px;
27
+ }
28
+ .olLayerGoogleV3.olLayerGooglePoweredBy {
29
+ bottom: 15px !important;
30
+ }
31
+ /* GMaps should not set styles on its container */
32
+ .olForeignContainer {
33
+ opacity: 1 !important;
34
+ }
35
+ .olControlAttribution {
36
+ font-size: smaller;
37
+ right: 3px;
38
+ bottom: 4.5em;
39
+ position: absolute;
40
+ display: block;
41
+ }
42
+ .olControlScale {
43
+ right: 3px;
44
+ bottom: 3em;
45
+ display: block;
46
+ position: absolute;
47
+ font-size: smaller;
48
+ }
49
+ .olControlScaleLine {
50
+ display: block;
51
+ position: absolute;
52
+ left: 10px;
53
+ bottom: 15px;
54
+ font-size: xx-small;
55
+ }
56
+ .olControlScaleLineBottom {
57
+ border: solid 2px black;
58
+ border-bottom: none;
59
+ margin-top:-2px;
60
+ text-align: center;
61
+ }
62
+ .olControlScaleLineTop {
63
+ border: solid 2px black;
64
+ border-top: none;
65
+ text-align: center;
66
+ }
67
+
68
+ .olControlPermalink {
69
+ right: 3px;
70
+ bottom: 1.5em;
71
+ display: block;
72
+ position: absolute;
73
+ font-size: smaller;
74
+ }
75
+
76
+ div.olControlMousePosition {
77
+ bottom: 0;
78
+ right: 3px;
79
+ display: block;
80
+ position: absolute;
81
+ font-family: Arial;
82
+ font-size: smaller;
83
+ }
84
+
85
+ .olControlOverviewMapContainer {
86
+ position: absolute;
87
+ bottom: 0;
88
+ right: 0;
89
+ }
90
+
91
+ .olControlOverviewMapElement {
92
+ padding: 10px 18px 10px 10px;
93
+ background-color: #00008B;
94
+ -moz-border-radius: 1em 0 0 0;
95
+ }
96
+
97
+ .olControlOverviewMapMinimizeButton,
98
+ .olControlOverviewMapMaximizeButton {
99
+ height: 18px;
100
+ width: 18px;
101
+ right: 0;
102
+ bottom: 80px;
103
+ cursor: pointer;
104
+ }
105
+
106
+ .olControlOverviewMapExtentRectangle {
107
+ overflow: hidden;
108
+ background-image: url("img/blank.gif");
109
+ cursor: move;
110
+ border: 2px dotted red;
111
+ }
112
+ .olControlOverviewMapRectReplacement {
113
+ overflow: hidden;
114
+ cursor: move;
115
+ background-image: url("img/overview_replacement.gif");
116
+ background-repeat: no-repeat;
117
+ background-position: center;
118
+ }
119
+
120
+ .olLayerGeoRSSDescription {
121
+ float:left;
122
+ width:100%;
123
+ overflow:auto;
124
+ font-size:1.0em;
125
+ }
126
+ .olLayerGeoRSSClose {
127
+ float:right;
128
+ color:gray;
129
+ font-size:1.2em;
130
+ margin-right:6px;
131
+ font-family:sans-serif;
132
+ }
133
+ .olLayerGeoRSSTitle {
134
+ float:left;font-size:1.2em;
135
+ }
136
+
137
+ .olPopupContent {
138
+ padding:5px;
139
+ overflow: auto;
140
+ }
141
+
142
+ .olControlNavigationHistory {
143
+ background-image: url("img/navigation_history.png");
144
+ background-repeat: no-repeat;
145
+ width: 24px;
146
+ height: 24px;
147
+
148
+ }
149
+ .olControlNavigationHistoryPreviousItemActive {
150
+ background-position: 0 0;
151
+ }
152
+ .olControlNavigationHistoryPreviousItemInactive {
153
+ background-position: 0 -24px;
154
+ }
155
+ .olControlNavigationHistoryNextItemActive {
156
+ background-position: -24px 0;
157
+ }
158
+ .olControlNavigationHistoryNextItemInactive {
159
+ background-position: -24px -24px;
160
+ }
161
+
162
+ div.olControlSaveFeaturesItemActive {
163
+ background-image: url(img/save_features_on.png);
164
+ background-repeat: no-repeat;
165
+ background-position: 0 1px;
166
+ }
167
+ div.olControlSaveFeaturesItemInactive {
168
+ background-image: url(img/save_features_off.png);
169
+ background-repeat: no-repeat;
170
+ background-position: 0 1px;
171
+ }
172
+
173
+ .olHandlerBoxZoomBox {
174
+ border: 2px solid red;
175
+ position: absolute;
176
+ background-color: white;
177
+ opacity: 0.50;
178
+ font-size: 1px;
179
+ filter: alpha(opacity=50);
180
+ }
181
+ .olHandlerBoxSelectFeature {
182
+ border: 2px solid blue;
183
+ position: absolute;
184
+ background-color: white;
185
+ opacity: 0.50;
186
+ font-size: 1px;
187
+ filter: alpha(opacity=50);
188
+ }
189
+
190
+ .olControlPanPanel {
191
+ top: 10px;
192
+ left: 5px;
193
+ }
194
+
195
+ .olControlPanPanel div {
196
+ background-image: url(img/pan-panel.png);
197
+ height: 18px;
198
+ width: 18px;
199
+ cursor: pointer;
200
+ position: absolute;
201
+ }
202
+
203
+ .olControlPanPanel .olControlPanNorthItemInactive {
204
+ top: 0;
205
+ left: 9px;
206
+ background-position: 0 0;
207
+ }
208
+ .olControlPanPanel .olControlPanSouthItemInactive {
209
+ top: 36px;
210
+ left: 9px;
211
+ background-position: 18px 0;
212
+ }
213
+ .olControlPanPanel .olControlPanWestItemInactive {
214
+ position: absolute;
215
+ top: 18px;
216
+ left: 0;
217
+ background-position: 0 18px;
218
+ }
219
+ .olControlPanPanel .olControlPanEastItemInactive {
220
+ top: 18px;
221
+ left: 18px;
222
+ background-position: 18px 18px;
223
+ }
224
+
225
+ .olControlZoomPanel {
226
+ top: 71px;
227
+ left: 14px;
228
+ }
229
+
230
+ .olControlZoomPanel div {
231
+ background-image: url(img/zoom-panel.png);
232
+ position: absolute;
233
+ height: 18px;
234
+ width: 18px;
235
+ cursor: pointer;
236
+ }
237
+
238
+ .olControlZoomPanel .olControlZoomInItemInactive {
239
+ top: 0;
240
+ left: 0;
241
+ background-position: 0 0;
242
+ }
243
+
244
+ .olControlZoomPanel .olControlZoomToMaxExtentItemInactive {
245
+ top: 18px;
246
+ left: 0;
247
+ background-position: 0 -18px;
248
+ }
249
+
250
+ .olControlZoomPanel .olControlZoomOutItemInactive {
251
+ top: 36px;
252
+ left: 0;
253
+ background-position: 0 18px;
254
+ }
255
+
256
+ /*
257
+ * When a potential text is bigger than the image it move the image
258
+ * with some headers (closes #3154)
259
+ */
260
+ .olControlPanZoomBar div {
261
+ font-size: 1px;
262
+ }
263
+
264
+ .olPopupCloseBox {
265
+ background: url("img/close.gif") no-repeat;
266
+ cursor: pointer;
267
+ }
268
+
269
+ .olFramedCloudPopupContent {
270
+ padding: 5px;
271
+ overflow: auto;
272
+ }
273
+
274
+ .olControlNoSelect {
275
+ -moz-user-select: none;
276
+ -khtml-user-select: none;
277
+ }
278
+
279
+ .olImageLoadError {
280
+ background-color: pink;
281
+ opacity: 0.5;
282
+ filter: alpha(opacity=50); /* IE */
283
+ }
284
+
285
+ /**
286
+ * Cursor styles
287
+ */
288
+
289
+ .olCursorWait {
290
+ cursor: wait;
291
+ }
292
+ .olDragDown {
293
+ cursor: move;
294
+ }
295
+ .olDrawBox {
296
+ cursor: crosshair;
297
+ }
298
+ .olControlDragFeatureOver {
299
+ cursor: move;
300
+ }
301
+ .olControlDragFeatureActive.olControlDragFeatureOver.olDragDown {
302
+ cursor: -moz-grabbing;
303
+ }
304
+
305
+ /**
306
+ * Layer switcher
307
+ */
308
+ .olControlLayerSwitcher {
309
+ position: absolute;
310
+ top: 25px;
311
+ right: 0;
312
+ width: 20em;
313
+ font-family: sans-serif;
314
+ font-weight: bold;
315
+ margin-top: 3px;
316
+ margin-left: 3px;
317
+ margin-bottom: 3px;
318
+ font-size: smaller;
319
+ color: white;
320
+ background-color: transparent;
321
+ }
322
+
323
+ .olControlLayerSwitcher .layersDiv {
324
+ padding-top: 5px;
325
+ padding-left: 10px;
326
+ padding-bottom: 5px;
327
+ padding-right: 10px;
328
+ background-color: darkblue;
329
+ }
330
+
331
+ .olControlLayerSwitcher .layersDiv .baseLbl,
332
+ .olControlLayerSwitcher .layersDiv .dataLbl {
333
+ margin-top: 3px;
334
+ margin-left: 3px;
335
+ margin-bottom: 3px;
336
+ }
337
+
338
+ .olControlLayerSwitcher .layersDiv .baseLayersDiv,
339
+ .olControlLayerSwitcher .layersDiv .dataLayersDiv {
340
+ padding-left: 10px;
341
+ }
342
+
343
+ .olControlLayerSwitcher .maximizeDiv,
344
+ .olControlLayerSwitcher .minimizeDiv {
345
+ width: 18px;
346
+ height: 18px;
347
+ top: 5px;
348
+ right: 0;
349
+ cursor: pointer;
350
+ }
351
+
352
+ .olBingAttribution {
353
+ color: #DDD;
354
+ }
355
+ .olBingAttribution.road {
356
+ color: #333;
357
+ }
358
+
359
+ .olGoogleAttribution.hybrid, .olGoogleAttribution.satellite {
360
+ color: #EEE;
361
+ }
362
+ .olGoogleAttribution {
363
+ color: #333;
364
+ }
365
+ span.olGoogleAttribution a {
366
+ color: #77C;
367
+ }
368
+ span.olGoogleAttribution.hybrid a, span.olGoogleAttribution.satellite a {
369
+ color: #EEE;
370
+ }
371
+
372
+ /**
373
+ * Editing and navigation icons.
374
+ * (using the editing_tool_bar.png sprint image)
375
+ */
376
+ .olControlNavToolbar ,
377
+ .olControlEditingToolbar {
378
+ margin: 5px 5px 0 0;
379
+ }
380
+ .olControlNavToolbar div,
381
+ .olControlEditingToolbar div {
382
+ background-image: url("img/editing_tool_bar.png");
383
+ background-repeat: no-repeat;
384
+ margin: 0 0 5px 5px;
385
+ width: 24px;
386
+ height: 22px;
387
+ cursor: pointer
388
+ }
389
+ /* positions */
390
+ .olControlEditingToolbar {
391
+ right: 0;
392
+ top: 0;
393
+ }
394
+ .olControlNavToolbar {
395
+ top: 295px;
396
+ left: 9px;
397
+ }
398
+ /* layouts */
399
+ .olControlEditingToolbar div {
400
+ float: right;
401
+ }
402
+ /* individual controls */
403
+ .olControlNavToolbar .olControlNavigationItemInactive,
404
+ .olControlEditingToolbar .olControlNavigationItemInactive {
405
+ background-position: -103px -1px;
406
+ }
407
+ .olControlNavToolbar .olControlNavigationItemActive ,
408
+ .olControlEditingToolbar .olControlNavigationItemActive {
409
+ background-position: -103px -24px;
410
+ }
411
+ .olControlNavToolbar .olControlZoomBoxItemInactive {
412
+ background-position: -128px -1px;
413
+ }
414
+ .olControlNavToolbar .olControlZoomBoxItemActive {
415
+ background-position: -128px -24px;
416
+ }
417
+ .olControlEditingToolbar .olControlDrawFeaturePointItemInactive {
418
+ background-position: -77px -1px;
419
+ }
420
+ .olControlEditingToolbar .olControlDrawFeaturePointItemActive {
421
+ background-position: -77px -24px;
422
+ }
423
+ .olControlEditingToolbar .olControlDrawFeaturePathItemInactive {
424
+ background-position: -51px -1px;
425
+ }
426
+ .olControlEditingToolbar .olControlDrawFeaturePathItemActive {
427
+ background-position: -51px -24px;
428
+ }
429
+ .olControlEditingToolbar .olControlDrawFeaturePolygonItemInactive{
430
+ background-position: -26px -1px;
431
+ }
432
+ .olControlEditingToolbar .olControlDrawFeaturePolygonItemActive {
433
+ background-position: -26px -24px;
434
+ }
435
+
436
+ div.olControlZoom {
437
+ position: absolute;
438
+ top: 8px;
439
+ left: 8px;
440
+ background: rgba(255,255,255,0.4);
441
+ border-radius: 4px;
442
+ padding: 2px;
443
+ }
444
+ div.olControlZoom a {
445
+ display: block;
446
+ margin: 1px;
447
+ padding: 0;
448
+ color: white;
449
+ font-size: 18px;
450
+ font-family: 'Lucida Grande', Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif;
451
+ font-weight: bold;
452
+ text-decoration: none;
453
+ text-align: center;
454
+ height: 22px;
455
+ width:22px;
456
+ line-height: 19px;
457
+ background: #130085; /* fallback for IE - IE6 requires background shorthand*/
458
+ background: rgba(0, 60, 136, 0.5);
459
+ filter: alpha(opacity=80);
460
+ }
461
+ div.olControlZoom a:hover {
462
+ background: #130085; /* fallback for IE */
463
+ background: rgba(0, 60, 136, 0.7);
464
+ filter: alpha(opacity=100);
465
+ }
466
+ @media only screen and (max-width: 600px) {
467
+ div.olControlZoom a:hover {
468
+ background: rgba(0, 60, 136, 0.5);
469
+ }
470
+ }
471
+ a.olControlZoomIn {
472
+ border-radius: 4px 4px 0 0;
473
+ }
474
+ a.olControlZoomOut {
475
+ border-radius: 0 0 4px 4px;
476
+ }
477
+
478
+
479
+ /**
480
+ * Animations
481
+ */
482
+
483
+ .olLayerGrid .olTileImage {
484
+ -webkit-transition: opacity 0.2s linear;
485
+ -moz-transition: opacity 0.2s linear;
486
+ -o-transition: opacity 0.2s linear;
487
+ transition: opacity 0.2s linear;
488
+ }
489
+
490
+ /* when replacing tiles, do not show tile and backbuffer at the same time */
491
+ .olTileImage.olTileReplacing {
492
+ display: none;
493
+ }
494
+
495
+ /* override any max-width image settings (e.g. bootstrap.css) */
496
+ img.olTileImage {
497
+ max-width: none;
498
+ }