Hi,

google.maps.LocalSearch has an optional onMarkersSetCallback,
likely the same idea as with the GoogleBar.  If a local search has
no result this function is not called.

Of course it makes sense, no result => no new markers => don't
bother with non-existing makers.  OTOH there is only one callback
in this case, onSearchCompleteCallback.  That is too early for my
purposes, I want to manipulate the results for "no results".

"No results" results are set in LocalSearch.prototype.SetMarkers,
returning false in this case.  For one or more results this function
returns true, and only then an onMarkersSetCallback is called.

Proposed feature:  Always call onMarkersSetCallback, after all
"zero markers were set" can be also an interesting event.  Demo:

http://gmodules.com/ig/creator?synd=open&nocache=1&url=http://hmdmhdfmhdjmzdtjmzdtzktdkztdjz.googlepages.com/tiny_map.xml

Search for something that doesn't exist, clearly the output has to be
tuned for "no result".

Unrelated, I found a trick to show the country in local map search
info window results on the same line as the phone number:

 .gs-result .gs-country    { display: block; float: left; margin-
right: 5px;  }
 .gs-result .gs-directions-to-from         { clear: left; text-align:
center; }
 .gs-result .gs-directions-to-from .gs-label            { display:
none; }
 .gs-secondary-link *  { font-size:
smaller; }


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