-
AuthorPosts
-
Spell Friend
Spell
- Join date:
- September 2013
- Posts:
- 118
- Downloads:
- 113
- Uploads:
- 38
- Thanks:
- 33
- Thanked:
- 1 times in 1 posts
August 4, 2016 at 9:13 pm #957076Hello again. I did what ninja told me at my previous post (last posts here) but it was no go.
Looking at troubleshoot page at google i tried adding type="text/javascript" as in the example here and it stopped giving me the error message. But now its is just blank space.
What i am doing wrong?
PS i have included a printscreen
Spell FriendSpell
- Join date:
- September 2013
- Posts:
- 118
- Downloads:
- 113
- Uploads:
- 38
- Thanks:
- 33
- Thanked:
- 1 times in 1 posts
August 4, 2016 at 9:15 pm #957078It looks like this:
<?php if($item->params->get('ctm_latitude') && $item->params->get('ctm_longitude')): ?> <script async defer src="https://maps.googleapis.com/maps/api/js?key=**MY_KEY**&callback=initMap"type="text/javascript"></script> <script type="text/javascript"> function initialize() { var jaLatLng = { lat: <?php echo (float) $item->params->get('ctm_latitude'); ?>, lng: <?php echo (float) $item->params->get('ctm_longitude'); ?>}; var map = new google.maps.Map(document.getElementById('ja-event-map'),{ zoom: 15, center: jaLatLng }); // Add a marker at the center of the map addMarker(jaLatLng, map); } function addMarker(location, map){ var marker = new google.maps.Marker({ position: location, map: map, title: '<?php echo $item->params->get('ctm_addr1'); ?>' }) } google.maps.event.addDomListener(window, 'load', initialize); </script>
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
August 5, 2016 at 2:13 am #957104Hi
Now Google map needs API key to show map ,
in file : /html/layouts/joomla/content/item/event.php" in template "ja_teline_v".Find
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp">
replace it with
<script src="https://maps.googleapis.com/maps/api/js?key=ADDYOURGMAP API KEY">
Add you google map API key in the code .
Spell FriendSpell
- Join date:
- September 2013
- Posts:
- 118
- Downloads:
- 113
- Uploads:
- 38
- Thanks:
- 33
- Thanked:
- 1 times in 1 posts
August 6, 2016 at 12:48 pm #957490Have done that. Its still no go. Now its just no show of the map. How do we resolve this|?
Also i have another problem. When i set site offline i can login to see my homepage. When i set site online and try to access my homepage dissapears and i get a 404 no article found error…
Whats wrong?Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
August 8, 2016 at 12:40 am #957674Hi
Maybe your Google map Key is not valid , you can send me a temp super user details of site via private reply with event article URL , i will check it .For the 404 error , kindly create a separate thread as its a different topic .
Spell FriendSpell
- Join date:
- September 2013
- Posts:
- 118
- Downloads:
- 113
- Uploads:
- 38
- Thanks:
- 33
- Thanked:
- 1 times in 1 posts
August 8, 2016 at 12:58 pm #957938This reply has been marked as private.Spell FriendSpell
- Join date:
- September 2013
- Posts:
- 118
- Downloads:
- 113
- Uploads:
- 38
- Thanks:
- 33
- Thanked:
- 1 times in 1 posts
August 8, 2016 at 1:01 pm #957940Site Url: http://www.kabourakis.gr/lionews2/administrator
Admin Username: Support
Admin Password: 1234567aThe api key works with another modules Cant get it work here :/ I have set the site in api console settings and have complete the authorization proccess
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
August 9, 2016 at 2:23 am #958132This reply has been marked as private.AuthorPostsViewing 8 posts - 1 through 8 (of 8 total)This topic contains 7 replies, has 2 voices, and was last updated by Pankaj Sharma 8 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Google maps on Events not working. Problem persists.
Viewing 8 posts - 1 through 8 (of 8 total)