Back to Addons Page



Troubleshooting:

1. Why isn't the addon showing all my properties?

2. What if some of my listings have the same coordinates? which one gets put on the map?

3. How do I make the information window appear whenever the user's mouse cursor moves over it without clicking?

4. How do I make this addon work with Joomla/cmsrealty?


1. Why isn't the addon showing all my properties?


First, make sure all properties have lat/long info stored in the db.

Second, adjust the search distance (on the admin controls) to as large as necessary. (The search distance tells the addon to pick all properties within that distance for both lat and long, so if you choose 5 miles, it grabs all that fit in a 10 mile square centered on your listing).

Third, make sure you have a valid icon file for the Second Icon setting.

Finally, zoom out as necessary to see them all. (You can set the initial zoom on the control panel too).

Also, the map will only add active listings, and it will filter out expired listings if you've set that option in the Open-Realty control panel.

Back to top


2. What if some of my listings have the same coordinates? which one gets put on the map?

Actually, they should all be added.... however, the Google Maps API would stack the icons (since they all have the same coordinates), and clicking would select the one on "top". If they aren't at *exactly* the same coordinates, you could change the default zoom level. Otherwise, I suppose the easiest thing to do would be to put the latitude and longitude with more decimal places - I put them to four places on my site, and that puts the resolution at about 36 feet, but you could easily go to six or more places.

Back to top


3. How do I make the information window appear whenever the user's mouse cursor moves over it without clicking?


On lines 731 and 748 of addon.inc.php, change 'click' to 'mouseover'

Back to top


4. How do I make this addon work with Joomla/cmsrealty?

In the addon.inc.php file for the googlemap addon, find the lines that look like:
$link = '<a href="'.$config['baseurl'].'/index.php?action=listingview&listingID='.$pid.'">';
Try changing that line to:
$link = '<a href="index.php?action=listingview&listingID='.$pid.'">';
(This line occurs twice in the original addon, at lines 566 and 629 in the copy I have). If you are using jlamb's modified version of the addon, that line may occur more than twice, and/or at different line numbers. Just change it for each occurance, and see if that makes it work correctly.

Back to top