I've looked over the other thread about this and it hasn't helped my
issue.

I'm using Expression Engine to drive the locations info. My code looks
like this:

  //<![CDATA[

  function load() {
    if (GBrowserIsCompatible()) {
      var map = new GMap2(document.getElementById("vm_map"));
      map.setCenter(new GLatLng(33.44826, -112.07641), 9);
      map.addControl(new GLargeMapControl());

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

      {exp:weblog:entries weblog="fare_outlets" dynamic="off"
search:fare_outlet_map="not IS_EMPTY"}
      var point = new GLatLng({fare_outlet_map_raw}{latitude},
{longitude}{/fare_outlet_map_raw});
      var map_text = "<h2>{title}</h2><p>{fare_outlet_address}</p>";
      map.addOverlay(createMarker(point, map_text));
      {/exp:weblog:entries}

    }
  }

  //]]>

The issue is with the {fare_outlet_address} variable. This is multi-
line text with <br /> at the line breaks. However, when I use a multi-
line variable, the map doesn't show up. The source code looks fine
though. When I just use single line variables like the title, the map
is fine.

Thanks.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to