two dogs
Customer
Hi,
After wondering why the Pin Color by Usergroup option didn't seem to be working, I see in the jQuery code that it doesn't seem to be used, possibly due to changes in the Google Maps API? Unless it can be made to have some effect, perhaps that option should be removed from the control panel and documentation?
Also, after wondering why the Member Map Geolocation scheduled task didn't seem to be doing anything, I determined that geoip_locate.php uses an API that has been shut down (https://geoip.nekudo.com).
I've got it working with the suggested replacement (http://api.ipapi.com, although it requires that an API access key is obtained), after also changing this line of code:
$coords = array($result['location']['latitude'], $result['location']['longitude']);
to this:
$coords = array($result['latitude'], $result['longitude']);
Cheers,
Julian
After wondering why the Pin Color by Usergroup option didn't seem to be working, I see in the jQuery code that it doesn't seem to be used, possibly due to changes in the Google Maps API? Unless it can be made to have some effect, perhaps that option should be removed from the control panel and documentation?
Also, after wondering why the Member Map Geolocation scheduled task didn't seem to be doing anything, I determined that geoip_locate.php uses an API that has been shut down (https://geoip.nekudo.com).
I've got it working with the suggested replacement (http://api.ipapi.com, although it requires that an API access key is obtained), after also changing this line of code:
$coords = array($result['location']['latitude'], $result['location']['longitude']);
to this:
$coords = array($result['latitude'], $result['longitude']);
Cheers,
Julian