Sha256: 09187af8f501f2e0da5159ba55d6de9510c7f0dd40d67ab53f5df0b78d7d0ac5
Contents?: true
Size: 617 Bytes
Versions: 17
Compression:
Stored size: 617 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 () { return ''; } }); L.Marker = L.Marker.extend({ options: { icon: new L.Icon.Default() } }); L.marker = function(latlng, options) { return new L.Marker(latlng, options); }
Version data entries
17 entries across 17 versions & 2 rubygems