Layouts Plugin

I’ve added a layouts-map widget to the Locations Plugin.

https://github.com/angusmcleod/discourse-locations/commit/422b583584fa02f7b2df42bdfd070c97ad262c5e

See e.g. https://discourse.angusmcleod.com.au/c/locations/layouts

If you have both the Custom Layouts and Locations Plugins installed, layouts-map will be available in the Layouts admin area and the category-specific layouts widget settings.

The locations displayed on the map will be:

  • No category: All locations.
  • Category: Locations in that category.
  • Topic: Topic location.

The widget itself is controlled like any other custom layouts widget, by category-specific or site-wide route settings.

There are also two site settings relevant to the widget:

  • location layouts map search enabled: Enables the map-search functionality.
  • location layouts map show avatar: Display’s the user’s avatar in the top left corner of the map.
3 Likes