This is how I did it for some basic info with a link that I built from my
XML file...granted, this was built just before the release of v3 API, but
I'm thinking that it should still work. If it doesn't, let me know. It
would be nice to know what I need to do to upgrade parts of my code from 2.5
to 3.0...
var marker = createMarker(point, name, address, city, state, zip, rooms,
id);
//alert(markers.length);
map.addOverlay(marker);
var sidebarEntry = createSidebarEntry(marker, name, address, city,
state, zip, rooms, distance);
sidebar.appendChild(sidebarEntry);
bounds.extend(point);
}
map.setCenter(bounds.getCenter(), map.getBoundsZoomLevel(bounds));
});
}
function createMarker(point, name, address, city, state, zip, rooms, id)
{
var marker = new GMarker(point);
var html = '<b>' + name + '</b> <br/>' + address + '<br/>' + city +
', ' + state + ', ' + zip + '<br/><b><font
color="red">Number of rooms:</font> ' + beds + '</b><br/><a
href=localhost/member.php?id=' + id + '>Profile</a>';
GEvent.addListener(marker, 'click', function() {
marker.openInfoWindowHtml(html);
});
return marker;
}
That should be the code to answer your question I hope. If not or if I
misread your question let me know...
Best of luck,
Karen
On Thu, Apr 8, 2010 at 9:21 AM, Eric <[email protected]> wrote:
> My test site is
> http://www.byebyewithbaby.com/test3.php. I have searched but haven't
> found any answers on this...
>
> I used the tutorial at
> http://code.google.com/apis/maps/articles/phpsqlsearch_v3.html
> for the code to this search.
>
> I have a page (http://www.byebyewithbaby.com/locations.php) that,
> when
> passed a "location_number" (ie locations.php?&location_number=[id
> goes
> here]) it will dynamically display more details on the entry for that
> particular id number (which is in $row[0]).
>
> What code would I enter (and where would I enter it - I'm assuming in
> the "function createMarker" area) to have it display a
> link of "<a href='http://www.byebyewithbaby.com/locations.php?
> &location_number=".$row[0]."'>Click Here for More Info</a>"?
>
> --
> 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]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>
--
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.