//= 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 () { }
});

//= 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()
  }
});

Fix marker icon override for 1.x
Fix marker icon override for 1.x
