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';
CommentFileSizeAuthor
#2 missing_override_retina_icon-2675442-2.patch555 bytestanc
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tanc created an issue. See original summary.

tanc’s picture

Status: Active » Needs review
FileSize
555 bytes

Ok, I took a breath and realised I could provide a patch and still get my work done ;-)