Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • Spell Friend
    #957076

    Hello 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


    1. Untitled
    Spell Friend
    #957078

    It 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">&lt;/script&gt;
                        <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);
                        &lt;/script&gt;
    Pankaj Sharma Moderator
    #957104

    Hi
    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 Friend
    #957490

    Have 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 Moderator
    #957674

    Hi
    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 Friend
    #957938
    This reply has been marked as private.
    Spell Friend
    #957940

    Site Url: http://www.kabourakis.gr/lionews2/administrator
    Admin Username: Support
    Admin Password: 1234567a

    The 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 Moderator
    #958132
    This reply has been marked as private.
Viewing 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