Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm really sorry but I haven't got time right now to provide a patch, but there is a missing override for a leaflet marker icon which allows a retina image to be defined. Here is a quick bit of code which when added to line 288 of leaflet.drupal.js allows a retina image to be used:
if (marker.icon.iconRetinaUrl) {
icon.options.iconRetinaUrl = marker.icon.iconRetinaUrl;
}
This would then be used in your custom $points as:
$points[0]['icon']['iconUrl'] = 'my_custom_path/marker-icon.png';
$points[0]['icon']['iconRetinaUrl'] = 'my_custom_path/marker-icon-2x.png';
Comment | File | Size | Author |
---|---|---|---|
#2 | missing_override_retina_icon-2675442-2.patch | 555 bytes | tanc |
Comments
Comment #2
tancOk, I took a breath and realised I could provide a patch and still get my work done ;-)