Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2007
    Posts
    41
    Plugin Contributions
    0

    Default Google map details not appearing

    I am using v1.3.9h and with this website
    http://www.zenflavor.com/add-google-...er-method.html
    I am not getting the company details to display on the map.



    Can someone assist?

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Google map details not appearing

    Does not look like a ZC issue to me. Check the code you downloaded from Google Maps.

  3. #3
    Join Date
    Oct 2007
    Posts
    41
    Plugin Contributions
    0

    Default Re: Google map details not appearing

    This is the code

    <!-- Google Maps code start -->
    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=YOUR_API_KEY_HERE" type="text/javascript"></script>


    <div id="map" style="width: 100%; height: 300px"></div>


    <noscript><b>JavaScript must be enabled in order for you to use Google Maps.</b>
    However, it seems JavaScript is either disabled or not supported by your browser.
    To view Google Maps, enable JavaScript by changing your browser options, and then
    try again.
    </noscript>


    <script type="text/javascript">
    //<![CDATA[

    function display_map()
    {

    if (GBrowserIsCompatible()) {

    // A function to create the marker and set up the event window
    // Dont try to unroll this function. It has to be here for the function closure
    // Each instance of the function preserves the contends of a different instance
    // of the "marker" and "html" variables which will be needed later when the event triggers.

    html ="<div style=\"width:250px; text-align: left;\">Business Name<br />Address line 1<br />Address line 2<br />Phone: 12345678<\/div>";

    function createMarker(point,html) {
    var marker = new GMarker(point);
    GEvent.addListener(marker, "click", function() {
    marker.openInfoWindowHtml(html);
    });
    return marker;
    }

    // Display the map, with some controls and set the initial location
    var map = new GMap2(document.getElementById("map"));
    map.addControl(new GSmallMapControl());
    map.addControl(new GMapTypeControl());
    map.setCenter(new GLatLng(40.728848,-73.995645),16);

    // Set up the marker and info

    var point = new GLatLng(40.728848,-73.995645);
    var marker = createMarker(point, html)
    map.addOverlay(marker);
    marker.openInfoWindowHtml(html);


    }

    // display a warning if the browser was not compatible
    else {
    alert("Sorry, the Google Maps API is not compatible with this browser");
    }

    // This Javascript is based on code provided by the
    // Community Church Javascript Team
    // http://www.bisphamchurch.org.uk/
    // http://econym.org.uk/gmap/

    //]]>

    }
    </script>



    <script type="text/javascript">
    window.onload= function(){
    display_map();
    };

    window.onunload= function(){
    GUnload();
    };
    </script>


    <!-- Google Maps code end -->

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Google map details not appearing

    You really need to talk to them about the problem.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

 

 

Similar Threads

  1. Google Mapinator not showing MAP
    By leest35 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Dec 2011, 08:34 PM
  2. Customer details not appearing on Packing slip and Invoice
    By richardsnowstar in forum General Questions
    Replies: 0
    Last Post: 4 Nov 2010, 11:25 PM
  3. Product Details Bullets - Appearing in FF but not IE?
    By gingertea in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 Aug 2007, 09:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg