Sha256: 56c12e1f0f57632f556ce1a24d14a4ff6ac16bf6927467b63d2df835ef57f36b
Contents?: true
Size: 510 Bytes
Versions: 1
Compression:
Stored size: 510 Bytes
Contents
//= depend_on_asset "marker-icon-2x.png" //= depend_on_asset "marker-shadow.png" //= depend_on_asset "marker-icon.png" //= require leaflet-src <% icons = ['icon-2x.png', 'shadow.png', 'icon.png'] %> L.Icon.Default = L.Icon.Default.extend({ _getIconUrl: function (name) { var paths = <%= Hash[icons.map{|i| [i, asset_path('marker-' + i)]}].to_json %>; return paths[name + '.png']; }, _detectIconPath: function () { } }); L.Marker = L.Marker.extend({ options: { icon: new L.Icon.Default() } });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
leaflet-rails-1.0.3 | vendor/assets/javascripts/leaflet.js.erb |