The local search options allow you to specify a pins parameter which lists the icons to use to represent results. See the documentation for an example, the pins section is near the bottom of the page:
http://code.google.com/apis/ajaxsearch/documentation/localsearch/index.html Happy coding, Jeff On Fri, Jul 24, 2009 at 11:51 PM, NadAF <[email protected]> wrote: > > Hi, > I am doing local search using Google Maps. I would like that when > results are returned, GoogleMap use my icons automatically instead of > default one. > > // Create and Center a Map > var map = new GMap2(document.getElementById("map_canvas")); > map.setCenter(new GLatLng(37.4419, -122.1419), 13); > map.addControl(new GLargeMapControl()); > map.addControl(new GMapTypeControl()); > > // bind a search control to the map, suppress result list > map.addControl(new google.maps.LocalSearch(), new GControlPosition > (G_ANCHOR_BOTTOM_RIGHT, new GSize(10,20))); > } > > My icon: > var baseIcon = new GIcon(G_DEFAULT_ICON); > baseIcon .image = "......png"; > baseIcon.iconSize = new GSize(32, 31); > baseIcon.iconAnchor = new GPoint(9, 5); > baseIcon.infoWindowAnchor = new GPoint(9, 5); > > Thanks!! > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google AJAX APIs" 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-AJAX-Search-API?hl=en -~----------~----~----~----~------~----~------~--~---
