On Apr 17, 10:38 am, e <[email protected]> wrote:
> The default search should now return a blue icon - but doesn't...

Bummer.

You call your createMarker function like this:
createMarker(point, name, address, town, county, postcode, telephone,
url, icon);
However it is defined like this:
createMarker(point, name, address, town, county, postcode, telephone,
url, distance, icon)

icon is undefined inside the createMarker function...


>
> On Apr 17, 4:17 pm, "[email protected]" <[email protected]>
> wrote:
>
>
>
> > On Apr 17, 6:51 am, "[email protected]" <[email protected]>
> > wrote:
>
> > > On Apr 17, 6:33 am, e <[email protected]> wrote:
>
> > > > My apologies for not adhering to the posting guidelines.
>
> > > > Here's the pagehttp://mrsc.co.uk/search_test.html
>
> > > > Here's some 
> > > > xmlhttp://mrsc.co.uk/phpsqlsearch_genxml.php?lat=51&lng=-1&radius=25
>
> > > > and here's an imagehttp://mrsc.co.uk/mapicons/marker_blue.png
>
> > > All of the markers in your sample xml say icon="red" (which looks the
> > > same as the default marker).  Do you have an example that should
> > > return a blue one?
>
> > If you open your map in a browser then enter this:
> > javascript:gicons["blue"]=new GIcon(G_DEFAULT_ICON);gicons
> > ["blue"].image="mapicons/marker_blue.png";map.addOverlay(new GMarker
> > (map.getCenter(),{icon:gicons["blue"]}))
> > in the address bar, it will put a (slightly distorted) blue icon at
> > the center of your map...
>
> >   -- Larry
>
> > (the icon is distorted because the image that you are using is not the
> > same proportions as the default icon)
>
> > > > On Apr 17, 2:13 pm, Esa <[email protected]> wrote:
>
> > > > > You should read the GIcon() constructor section of the documentation
> > > > > once 
> > > > > more.http://code.google.com/apis/maps/documentation/reference.html#GIcon
>
> > > > > gicons["red"] = new GIcon("mapicons/marker_red.png");
>
> > > > > might work like:
>
> > > > > gicons["red"] = new GIcon(G_DEFAULT_ICON  ,"mapicons/
> > > > > marker_red.png");
>
> > > > > but it is impossible to say without seeing your icon images.- Hide 
> > > > > quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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