Skip to content

Commit

Permalink
Load markerclustererplus from bower since the google code link seems …
Browse files Browse the repository at this point in the history
…to have died
  • Loading branch information
tjgrathwell committed May 14, 2016
1 parent 04f9f21 commit 27d6b57
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/shared/_map.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
end
%>
<script src="//maps.google.com/maps/api/js?v=3.18&sensor=false&libraries=geometry"></script>
<script src='//google-maps-utility-library-v3.googlecode.com/svn/tags/markerclustererplus/2.1.2/markerclustererplus/src/markerclusterer_packed.js'></script>
<%= javascript_include_tag 'markerclustererplus/dist/markerclusterer.min.js' %>

<script>
window.whenReady(function () {
Expand Down
5 changes: 3 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name" : "bridge troll",
"name": "bridge troll",
"dependencies": {
"DataTables": "1.10.10",
"select2": "4.0.1"
"select2": "4.0.1",
"markerclustererplus": "^2.1.4"
},
"devDependencies": {
"sinonjs": "1.17.1"
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
# Rails.application.config.assets.precompile += %w( search.js )
Rails.application.config.assets.precompile += %w( markerclustererplus/dist/markerclusterer.min.js )

0 comments on commit 27d6b57

Please sign in to comment.