i have a database field that stores html links in a column in the
following format

<a href="http://www.xxxx.com"; target="_blank">xxx</a>

If i try and bring in this field into my google maps markers the map
does not load. if i replace field3 below with field2 in the code the
ap does not load otherwise the ap loads fine with markers.I suspect
it's a "character" issue? any ideas?

I'm using a coldfusion query to populate the markers.



function initialize() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new
GLatLng(<cfoutput>#close_distributor_above.long[3]#,
#close_distributor_above.lat[3]#</cfoutput>), 10);
        map.setUIToDefault();

      <cfoutput query="mynewquery">
                    var point#id# = new GLatLng( #long#, #lat# );
                    var marker#id# = new GMarker( point#id#, name );
                    var infowindow1html#id# = "#field3#<br />#field4#
#field5# #postcode#<br /> #field6#";
                    map.addOverlay( marker#id# );
                    GEvent.addListener( marker#id#, "click",
function() {
 
marker#id#.openInfoWindowHtml( infowindow1html#id# );
                    } );
                </cfoutput>
          }
    }
Confidentiality Notice. This message may contain information that is 
confidential or otherwise protected from disclosure. If you are not the 
intended recipient, you are hereby notified that any use, disclosure, 
dissemination, distribution, or copying of this message, or any attachments, is 
strictly prohibited. If you have received this message in error, please advise 
the sender by reply e-mail, and delete the message and any attachments. Thank 
you.

-- 
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