here is code from my java file i guess:

        for (var i = 0; i < markers.length; i++) {
          // obtain the attribues of each marker
          var lat = parseFloat(markers[i].getAttribute("lat"));
          var lng = parseFloat(markers[i].getAttribute("lng"));
          var point = new google.maps.LatLng(lat,lng);
          var address = markers[i].getAttribute("address");
          var name = markers[i].getAttribute("name");
          var html = "<b>"+name+"<\/b><p>"+address;
          var category = markers[i].getAttribute("category");
          // create the marker
          var marker = createMarker(point,name,html,category);
        }

what is missing, or how should i place the link code;
thanks of possible

On 18 Ιαν, 20:57, "[email protected]" <[email protected]> wrote:
> hi
> thanks
> i placed those and the markers now show, but the link still does not
> show at all
> i guess i would need some help with the <a> tag;
>
>  <marker name="Kostis" address="Kikou 8" lng="33.3169999"
> lat="35.1618601" link="http://www.radiocontrol.gr"; text="xxx"
> category="theatre" />
>
> thanks
>
> On 18 Éáí, 18:49, Andrew Leach <[email protected]> wrote:
>
> > On 18 January 2011 16:36, [email protected] <[email protected]> wrote:
>
> > > guess a java error
>
> > I doubt it's a Java error, or even a Javascript error. It's a problem
> > with the XML.
>
> > > <markers>
> > >  <marker name="Kostis" address="Kikou 8" lng="33.3169999"
> > > lat="35.1618601" <a href="http://www.econym.demon.co.uk";>Link</a>
> > > category="theatre" />
>
> > Consider your attributes: you have
> > name="Kostis"
> > address="Kikou 8"
> > category="theatre"
> > and
> > <a href="link">Link</a>
>
> > Do you see what might be wrong there?
>
> > Even if you have a proper attribute
> > link="<a href='http://mydestination.org'>Link</a>"
> > (note how the quotes are varied) then it will still fail because you
> > can't have < > inside an XML element.
>
> > I would suggest it would be easier to have two attributes,
> > link="http://mydestination.org/";
> > text="Link"
> > and then build the <a> tag in the Javascript which parses the XML.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to