leaflet-awesome-markers-rails 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +38 -0
- data/app/assets/images/markers-matte.png +0 -0
- data/app/assets/images/markers-matte@2x.png +0 -0
- data/app/assets/images/markers-plain.png +0 -0
- data/app/assets/images/markers-shadow.png +0 -0
- data/app/assets/images/markers-shadow@2x.png +0 -0
- data/app/assets/images/markers-soft.png +0 -0
- data/app/assets/images/markers-soft@2x.png +0 -0
- data/leaflet-awesome-markers-rails.gemspec +22 -0
- data/lib/leaflet-awesome-markers-rails.rb +7 -0
- data/lib/leaflet-awesome-markers-rails/version.rb +5 -0
- data/vendor/assets/javascripts/.keep +0 -0
- data/vendor/assets/javascripts/leaflet.awesome-markers.js +7 -0
- data/vendor/assets/stylesheets/.keep +0 -0
- data/vendor/assets/stylesheets/leaflet.awesome-markers.scss +124 -0
- metadata +93 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c029af6bf159a986162afff8c1266c1768407b45
|
4
|
+
data.tar.gz: 9d669c7b7639a968776d30fd3e89043123eb6b11
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d01ef63ba161f7822640b69d7f126c63b4b80d810cc6bdb6dccb20839b2d9fac5ba78f1499b653886ea305e6fab4539beeea8833f4378bb08473f791927d3c14
|
7
|
+
data.tar.gz: c773305ebe97c76c31a49c4a1809b834a502b104b610b39266b2b89c11b6936ed386ba64020baf4821f0f053f42bea3543f5aa1c79153d69cb782306f4d75c96
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at rich@fishpercolator.co.uk. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (C) 2013 L. Voogdt
|
4
|
+
Copyright (c) 2016 Fish Percolator
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
8
|
+
in the Software without restriction, including without limitation the rights
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
11
|
+
furnished to do so, subject to the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
14
|
+
all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
22
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# leaflet-awesome-markers-rails
|
2
|
+
|
3
|
+
[Leaflet.awesome-markers](https://github.com/lvoogdt/Leaflet.awesome-markers) for the Rails asset pipeline.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'leaflet-awesome-markers-rails', '~> 2.0'
|
10
|
+
|
11
|
+
Make sure you are also including leaflet.js, e.g. with the [leaflet-rails](https://github.com/axyjo/leaflet-rails) gem.
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
bundle install
|
16
|
+
|
17
|
+
Add the JS to your application.js:
|
18
|
+
|
19
|
+
//= require leaflet.awesome-markers
|
20
|
+
|
21
|
+
And add the CSS to your application.scss:
|
22
|
+
|
23
|
+
@import "leaflet.awesome-markers";
|
24
|
+
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
See the [Leaflet.awesome-markers documentation](https://github.com/lvoogdt/Leaflet.awesome-markers) for usage instructions.
|
28
|
+
|
29
|
+
|
30
|
+
## Contributing
|
31
|
+
|
32
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/fishpercolator/leaflet-awesome-markers-rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
33
|
+
|
34
|
+
|
35
|
+
## License
|
36
|
+
|
37
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
38
|
+
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'leaflet-awesome-markers-rails/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "leaflet-awesome-markers-rails"
|
8
|
+
spec.version = LeafletAwesomeMarkers::Rails::VERSION
|
9
|
+
spec.authors = ["Rich Daley"]
|
10
|
+
spec.email = ["rich@fishpercolator.co.uk"]
|
11
|
+
|
12
|
+
spec.summary = %q{Add leaflet.awesome-markers to the Rails asset pipeline}
|
13
|
+
spec.description = %q{Add leaflet.awesome-markers to the Rails asset pipeline}
|
14
|
+
spec.homepage = "https://github.com/fishpercolator/leaflet-awesome-markers-rails"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_dependency "rails", ">= 4.0.1"
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
22
|
+
end
|
File without changes
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/*
|
2
|
+
Leaflet.AwesomeMarkers, a plugin that adds colorful iconic markers for Leaflet, based on the Font Awesome icons
|
3
|
+
(c) 2012-2013, Lennard Voogdt
|
4
|
+
|
5
|
+
http://leafletjs.com
|
6
|
+
https://github.com/lvoogdt
|
7
|
+
*//*global L*/(function(e,t,n){"use strict";L.AwesomeMarkers={};L.AwesomeMarkers.version="2.0.1";L.AwesomeMarkers.Icon=L.Icon.extend({options:{iconSize:[35,45],iconAnchor:[17,42],popupAnchor:[1,-32],shadowAnchor:[10,12],shadowSize:[36,16],className:"awesome-marker",prefix:"glyphicon",spinClass:"fa-spin",icon:"home",markerColor:"blue",iconColor:"white"},initialize:function(e){e=L.Util.setOptions(this,e)},createIcon:function(){var e=t.createElement("div"),n=this.options;n.icon&&(e.innerHTML=this._createInner());n.bgPos&&(e.style.backgroundPosition=-n.bgPos.x+"px "+ -n.bgPos.y+"px");this._setIconStyles(e,"icon-"+n.markerColor);return e},_createInner:function(){var e,t="",n="",r="",i=this.options;i.icon.slice(0,i.prefix.length+1)===i.prefix+"-"?e=i.icon:e=i.prefix+"-"+i.icon;i.spin&&typeof i.spinClass=="string"&&(t=i.spinClass);i.iconColor&&(i.iconColor==="white"||i.iconColor==="black"?n="icon-"+i.iconColor:r="style='color: "+i.iconColor+"' ");return"<i "+r+"class='"+i.prefix+" "+e+" "+t+" "+n+"'></i>"},_setIconStyles:function(e,t){var n=this.options,r=L.point(n[t==="shadow"?"shadowSize":"iconSize"]),i;t==="shadow"?i=L.point(n.shadowAnchor||n.iconAnchor):i=L.point(n.iconAnchor);!i&&r&&(i=r.divideBy(2,!0));e.className="awesome-marker-"+t+" "+n.className;if(i){e.style.marginLeft=-i.x+"px";e.style.marginTop=-i.y+"px"}if(r){e.style.width=r.x+"px";e.style.height=r.y+"px"}},createShadow:function(){var e=t.createElement("div");this._setIconStyles(e,"shadow");return e}});L.AwesomeMarkers.icon=function(e){return new L.AwesomeMarkers.Icon(e)}})(this,document);
|
File without changes
|
@@ -0,0 +1,124 @@
|
|
1
|
+
/*
|
2
|
+
Author: L. Voogdt
|
3
|
+
License: MIT
|
4
|
+
Version: 1.0
|
5
|
+
*/
|
6
|
+
|
7
|
+
/* Marker setup */
|
8
|
+
.awesome-marker {
|
9
|
+
background: image-url('markers-soft.png') no-repeat 0 0;
|
10
|
+
width: 35px;
|
11
|
+
height: 46px;
|
12
|
+
position:absolute;
|
13
|
+
left:0;
|
14
|
+
top:0;
|
15
|
+
display: block;
|
16
|
+
text-align: center;
|
17
|
+
}
|
18
|
+
|
19
|
+
.awesome-marker-shadow {
|
20
|
+
background: image-url('markers-shadow.png') no-repeat 0 0;
|
21
|
+
width: 36px;
|
22
|
+
height: 16px;
|
23
|
+
}
|
24
|
+
|
25
|
+
/* Retina displays */
|
26
|
+
@media (min--moz-device-pixel-ratio: 1.5),(-o-min-device-pixel-ratio: 3/2),
|
27
|
+
(-webkit-min-device-pixel-ratio: 1.5),(min-device-pixel-ratio: 1.5),(min-resolution: 1.5dppx) {
|
28
|
+
.awesome-marker {
|
29
|
+
background-image: image-url('markers-soft@2x.png');
|
30
|
+
background-size: 720px 46px;
|
31
|
+
}
|
32
|
+
.awesome-marker-shadow {
|
33
|
+
background-image: image-url('markers-shadow@2x.png');
|
34
|
+
background-size: 35px 16px;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
.awesome-marker i {
|
39
|
+
color: #333;
|
40
|
+
margin-top: 10px;
|
41
|
+
display: inline-block;
|
42
|
+
font-size: 14px;
|
43
|
+
}
|
44
|
+
|
45
|
+
.awesome-marker .icon-white {
|
46
|
+
color: #fff;
|
47
|
+
}
|
48
|
+
|
49
|
+
/* Colors */
|
50
|
+
.awesome-marker-icon-red {
|
51
|
+
background-position: 0 0;
|
52
|
+
}
|
53
|
+
|
54
|
+
.awesome-marker-icon-darkred {
|
55
|
+
background-position: -180px 0;
|
56
|
+
}
|
57
|
+
|
58
|
+
.awesome-marker-icon-lightred {
|
59
|
+
background-position: -360px 0;
|
60
|
+
}
|
61
|
+
|
62
|
+
.awesome-marker-icon-orange {
|
63
|
+
background-position: -36px 0;
|
64
|
+
}
|
65
|
+
|
66
|
+
.awesome-marker-icon-beige {
|
67
|
+
background-position: -396px 0;
|
68
|
+
}
|
69
|
+
|
70
|
+
.awesome-marker-icon-green {
|
71
|
+
background-position: -72px 0;
|
72
|
+
}
|
73
|
+
|
74
|
+
.awesome-marker-icon-darkgreen {
|
75
|
+
background-position: -252px 0;
|
76
|
+
}
|
77
|
+
|
78
|
+
.awesome-marker-icon-lightgreen {
|
79
|
+
background-position: -432px 0;
|
80
|
+
}
|
81
|
+
|
82
|
+
.awesome-marker-icon-blue {
|
83
|
+
background-position: -108px 0;
|
84
|
+
}
|
85
|
+
|
86
|
+
.awesome-marker-icon-darkblue {
|
87
|
+
background-position: -216px 0;
|
88
|
+
}
|
89
|
+
|
90
|
+
.awesome-marker-icon-lightblue {
|
91
|
+
background-position: -468px 0;
|
92
|
+
}
|
93
|
+
|
94
|
+
.awesome-marker-icon-purple {
|
95
|
+
background-position: -144px 0;
|
96
|
+
}
|
97
|
+
|
98
|
+
.awesome-marker-icon-darkpurple {
|
99
|
+
background-position: -288px 0;
|
100
|
+
}
|
101
|
+
|
102
|
+
.awesome-marker-icon-pink {
|
103
|
+
background-position: -504px 0;
|
104
|
+
}
|
105
|
+
|
106
|
+
.awesome-marker-icon-cadetblue {
|
107
|
+
background-position: -324px 0;
|
108
|
+
}
|
109
|
+
|
110
|
+
.awesome-marker-icon-white {
|
111
|
+
background-position: -574px 0;
|
112
|
+
}
|
113
|
+
|
114
|
+
.awesome-marker-icon-gray {
|
115
|
+
background-position: -648px 0;
|
116
|
+
}
|
117
|
+
|
118
|
+
.awesome-marker-icon-lightgray {
|
119
|
+
background-position: -612px 0;
|
120
|
+
}
|
121
|
+
|
122
|
+
.awesome-marker-icon-black {
|
123
|
+
background-position: -682px 0;
|
124
|
+
}
|
metadata
ADDED
@@ -0,0 +1,93 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: leaflet-awesome-markers-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Rich Daley
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-07-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.0.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.0.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.12'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.12'
|
41
|
+
description: Add leaflet.awesome-markers to the Rails asset pipeline
|
42
|
+
email:
|
43
|
+
- rich@fishpercolator.co.uk
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- ".gitignore"
|
49
|
+
- ".rspec"
|
50
|
+
- ".travis.yml"
|
51
|
+
- CODE_OF_CONDUCT.md
|
52
|
+
- Gemfile
|
53
|
+
- LICENSE.txt
|
54
|
+
- README.md
|
55
|
+
- app/assets/images/markers-matte.png
|
56
|
+
- app/assets/images/markers-matte@2x.png
|
57
|
+
- app/assets/images/markers-plain.png
|
58
|
+
- app/assets/images/markers-shadow.png
|
59
|
+
- app/assets/images/markers-shadow@2x.png
|
60
|
+
- app/assets/images/markers-soft.png
|
61
|
+
- app/assets/images/markers-soft@2x.png
|
62
|
+
- leaflet-awesome-markers-rails.gemspec
|
63
|
+
- lib/leaflet-awesome-markers-rails.rb
|
64
|
+
- lib/leaflet-awesome-markers-rails/version.rb
|
65
|
+
- vendor/assets/javascripts/.keep
|
66
|
+
- vendor/assets/javascripts/leaflet.awesome-markers.js
|
67
|
+
- vendor/assets/stylesheets/.keep
|
68
|
+
- vendor/assets/stylesheets/leaflet.awesome-markers.scss
|
69
|
+
homepage: https://github.com/fishpercolator/leaflet-awesome-markers-rails
|
70
|
+
licenses:
|
71
|
+
- MIT
|
72
|
+
metadata: {}
|
73
|
+
post_install_message:
|
74
|
+
rdoc_options: []
|
75
|
+
require_paths:
|
76
|
+
- lib
|
77
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
requirements: []
|
88
|
+
rubyforge_project:
|
89
|
+
rubygems_version: 2.5.1
|
90
|
+
signing_key:
|
91
|
+
specification_version: 4
|
92
|
+
summary: Add leaflet.awesome-markers to the Rails asset pipeline
|
93
|
+
test_files: []
|