You should have a look at Advanced Custom Fields Pro – it provides a way to add a google map to the WordPress admin meaning you could create a custom post type called locations and apply the map picker there. It returns a lat/lng object which you can implement on a global map.
This tutorial shows how you can do it: https://www.advancedcustomfields.com/resources/google-map/
There is a website called Snazzy Maps that lets you customise a google map. When you export styles from Snazzy Maps it saves as a jSON object so you’d just paste that into the new_map() args in example above.
While google maps can be customised, Map Box provides a much better level of customisation, including an old fashioned map – https://www.mapbox.com/gallery/. The only downside is that if you get over 100,000 API hits it costs a lot of money as opposed to Google that is basically free and offers the places API.
I have built exactly this on my own website using the ACF Pro, Google Maps API and custom code https://www.bristolblueprint.co.uk/
]]>Thanks Staartmees – I’ll have a look at the image map, as you suggest.
Thanks WebAssembler, That sounds promising but I’ll have to read the tutorials in depth as, while I’ve got used to WordPress, plug-ins are all new to me and I’m learning as I go along.
]]>