Subject: Maps plugin 1.4.0 is available

Posted on: 22/01/2016 09:41am
By: ::Ben

Maps plugin allow you to create and display google maps on a powered geeklog site. A map will be added to the profile user if user's location is set. You can create a map on the fly with just one autotag.

Download Maps 1.4.0

Re: Maps plugin 1.4.0 is available

Posted on: 23/01/2016 11:56am
By: syco

Hello!

To make it work on a https enabled site, i had to change lines 81

PHP Formatted Code

$js = '<script src= "https://maps.googleapis.com/maps/api/js?key=' . $_MAPS_CONF['google_api_key'] . '&amp;libraries=adsense&amp;sensor=false" type="text/javascript"> </script>';
 

and 757
PHP Formatted Code

$c->set('url_geocode', 'https://maps.googleapis.com/maps/api/geocode/json?address=%address%&sensor=false', $_MAPS_DEFAULT['pi_name']);
 

of the plugin's function.php file (basically just make them use https instead of http).

I have another problem: i can't get a map to center and zoom on a location (address) by default when i create one. Maybe i'm missing something Rolling Eyes

Re: Maps plugin 1.4.0 is available

Posted on: 23/01/2016 02:52pm
By: ::Ben

Hello Syco,

Thanks for the report. You can ad bug or feature request on https://github.com/Geeklog-Plugins/maps/issues

For centering of a map I can't reproduce the issue. Creating a map admin/plugins/maps/map_edit.php ask 2 params. A Map Name and a Address.

Can you check the plugin config /admin/configuration.php and tell me if under maps setting the URL to Google Geocoding Service is set to http://maps.googleapis.com/maps/api/geocode/json?address=%address%&sensor=false

Re: Maps plugin 1.4.0 is available

Posted on: 27/01/2016 09:26am
By: syco

hello

My "URL to Google Geocoding Service" was actually incorrect. It seems to work more or less now (i'm still @100km from the supposed address but i suppose that's google).

I added the bug for https to github as well as another small one too.

Still trying to figure out why i can't get site users map to work Rolling Eyes location is set in user's profile (as i would enter it on google maps) but no markers show up on the map.

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=96246