#1
|
|||
|
|||
![]()
Hi
On a new site I'm running Joomla! 3.6.0 with Mosets Tree 3.8.6 The issue I'm having is I cannot get Google maps to initialise. I have in MT Configuration/Features Clicked Show Map and filled in Default Country, Default State, Default City and Clicked Yes to show link to map In administration Add Listing/Map it says Oops! Something went wrong. This page didn't load Google Maps correctly. See the JavaScript console for technical details. In chrome inspect, I get the following 2 warnings 1. Google Maps API error: MissingKeyMapError 2. Google Maps API warning: NoApiKeys https://developers.google.com/maps/d...es#no-api-keys On researching further the following statement is from Google Usage of the Google Maps APIs now requires a key. If you are using the Google Maps API on localhost or your domain was not active prior to June 22nd, 2016, it will require a key going forward. I have since got a Google Maps API key <script src="//maps.googleapis.com/maps/api/js?key=##############" async="" defer="defer" type="text/javascript"></script> Can someone please advise me further on this issue Thanks Ray |
#2
|
|||
|
|||
![]()
Hi Ray,
This is indeed a bug due to the recent changes in Google Maps. You can make the following modification to insert your Google Key. FILE: /components/com_mtree/templates/kinabalu/sub_map.tpl.php Look for this line of codes: PHP Code:
PHP Code:
I'm working towards an update and that include this fix. |
#3
|
|||
|
|||
![]()
Hi Lee
I tried your fix and it didn't work(50% of the way there) I found that the same change also needs to be made to administrator/components/com_mtree/admin.mtree.html.php Google Maps now works Thank you for your help with this. Regards Ray |
#4
|
|||
|
|||
![]()
Yup, that's for the back-end. Glad it helps!
|
#5
|
|||
|
|||
![]()
Thanks for this post it was very helpful.
I also had to fix /administrator/components/com_mtree/geocode.mtree.php |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|