Chapter 9 Troubleshooting

9.1 Marker assignment via a custom field not working

The add-on allows you to use the images assigned to custom field options as markers. This is particularly useful if you've used a custom field for categorization. If the marker is not appearing on your maps you need to check a couple of things:

  1. The field needs to be a single select or radio field because it's no possible to show more than one marker per listing.

  2. The marker image needs to be placed in the add-on's icon folder. This means you will need to copy the image from the theme's theme_images folder to the icon folder where the add-on can find it.

9.2 List page map overlapping template header

If your Joomla template uses a fixed header/menu, it is possible that the map on JReviews list pages will overlap the header when scrolling the page.

To fix the conflict, it is necessary to push down the map by the height of the header. To do that, modify this file:

/components/com_jreviews_addons/geomaps/views/js/geomaps.js

Find this line in the file:

var y = jQuery(window).scrollTop();

and add the height of your fixed header like this:

var y = jQuery(window).scrollTop()+55;

If you enabled Load All Minified in JReviews Configuration, you will need to create a minified geomaps-ck.js file as well.

Besides the change in the geomaps.js file, it is necessary to set the height like this in the custom_styles.css file of your JReviews theme:

.jr-map-results-wrapper.fixed {
    top: 55px;
}

In these examples, 55 represents the height of the header/menu.