Changing the venue map icon

The following tutorial on how to change a venue map icon is fairly straightforward, but it would be great to see an add-on which makes it simple for any user to upload and select an icon for their venue. If you have a go at making one, I’d love to know!

Since Event Organiser 2.1 you can now change the icon of the venue, using the eventorganiser_venue_marker hook:

You can also display different icons for different venues. For example, let’s suppose I have an icon for each venue, with filenames venue-icon-[venue-slug].pnp. The following chooses the appropriate icon based on the venue (if it cannot be found it uses a generic venue-icon.png icon from the above example.