Just to note the link to the code is:

http://www.mike-knowles.com/itngen/groups.asp

MK

2009/9/7 selwonk <[email protected]>

>
> Hi.
>
> I'm playing with Google Maps API for the first time, and I'm a bit
> stumped. I want to integrate local search results in a simple map.
> I've created a map with googleBarOptions() options set and invoked the
> search system with .enableGoogleBar();
>
> All well so far. My preference is to show the search results inline,
> with the first marker shown but customised. However, it seems that the
> following can not be used at the same time:
>
> resultList : G_GOOGLEBAR_RESULT_LIST_INLINE
> onGenerateMarkerHtmlCallback : doGenerateMarkerHtmlCallback
>
> doGenerateMarkerHtmlCallback() is a very simple function to create a
> custom marker:
>
> // Start code //
> function doGenerateMarkerHtmlCallback(marker, div, result) {
>        // dumpProps(result);
>        // alert(result.titleNoFormatting);
>        strHTML = '<div class="custommarker">';
>        strHTML += '<b>' + result.titleNoFormatting + '</b>';
>        strHTML += '<br />';
>        strHTML += result.streetAddress + '<br />';
>        strHTML += result.city;
>        strHTML += '<br /><br />';
>        strHTML += 'Save this location?&nbsp;-&nbsp;';
>        strHTML += '<a href=""Javascript:void(0);"" class="addpoi"><b>Click
> here</b></a>';
>        strHTML += '</div>';
>        marker.openInfoWindowHtml(strHTML);
>        return true;
> }
> // End code //
>
> Is there any reason why I can't use both? If I disable one or the
> other, the opposite functionality works perfectly, but not together.
>
> If anybody can shed any light on this problem, I would be most
> grateful.
>
> Regards
>
> MK
>
>
>
> >
>


-- 

MK

Mike Knowles

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