Hi,
I have search engine on Google map.
You can draw polygon and get the list of photos from DB in that area.
also you can click on photos to get the information in the photo from
DB.
I have the routine:
function OnMapClick(overlay, latlng) {
if (infoMode == true) {
if (overlay != null) {
return;
}
new Ajax.Request("api/mapSetPhotolayers.json", { parameters:
{ q: "getPhotoInfo", lat: latlng.lat(), lng: latlng.lng() },
onSuccess: function(t) {
var photoInfo = t.responseText.evalJSON();
var seqname = photoInfo.Data[0];
var initiator = photoInfo.Data[1];
var orig_id = photoInfo.Data[2];
var myHtml = "Initiator: " + initiator + " <br/>
Sequence: " + seqname +"<br/> photo ID:" + orig_id + "<br/>
Latitude: " + photoInfo.Lat + " <br/> Longitude: " + photoInfo.Lng;
map.openInfoWindowHtml(latlng, myHtml);
});
}
}
if you click on map and you clicked on info button , I want to show
the the info window.
but if you click on the info window the click should be avoid.
because I ask to avoid for overlay it avoiding also the Polygon
overlay and
if the user click on photo in the Polygon the infoWindow does not
show!!
How can I get variables of the overlay in the routine 'OnMapClick'????
Please help.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---