Well your problem appears to be all CSS based - your script appears
fine. If you remove the "float: right" on the map_canvas div the
markers all show up (at least they did on my local copy).

So to fix it, you'll probably need to specify a size for your markers
which means creating a Marker Image object instead of just passing a
URL. Try changing lines 25 and 27 of ias_call.js to:

var Site_icon_url = new google.maps.MarkerImage('/images/tools.png',
new google.maps.Size(32, 37));

If that doesn't work, try not floating the map_canvas div.

If this works, I would consider it a bug with the API. I'm going to
make up a test page to verify this and post it to the issue tracker.

Chad Killingsworth

On Feb 26, 6:56 am, Marcelo <[email protected]> wrote:
> I can't seehttp://samhail.com/where/airsoft1/ias_genxml.php
> as I'm getting redirected to some other page, but in any case, try
> making your var map global.
> In theory, it shouldn't make any difference, but it might.
>
> --
> Marcelo -http://maps.forum.nu
> --
>
> On Feb 26, 12:33 pm, samhail <[email protected]> wrote:
>
> > Sorry i just noticed that i still had the PHP script on which would
> > make it harder to analyse.
> > I have updated it back to ias_call.js (instead of using
> > ias_call.js.php)
>
> > On Feb 26, 11:31 am, samhail <[email protected]> wrote:
>
> > > Hi Thanks for the replies.
>
> > > Pete: i did try your suggestion but it didnt work - didnt even display
> > > the icons in firefox with that call.
>
> > > Nice find Chad ! thanks... i fixed that but its still not showing the
> > > icons in IE.
> > > How did you come across that, ive been using firebug in firefox but
> > > that didnt show that error... or was it just good ould deep checking ?
>
> > > On Feb 25, 10:34 pm, Chad Killingsworth
>
> > > <[email protected]> wrote:
> > > > That's not the issue.
>
> > > > On line 33 of ias_call.js.php, Site_icon_url is undefined in Internet
> > > > Explorer. It appears that markers[i].getAttribute("type") is returning
> > > > "shop" (note lowercase) on the first iteration. You are checking for
> > > > equality to "Shop".
>
> > > > Chad Killingsworth
>
> > > > On Feb 25, 4:25 pm, pete <[email protected]> wrote:
>
> > > > > Try changing
>
> > > > > var Site_Marker = new google.maps.Marker()
>
> > > > > to:
>
> > > > > var Site_Marker = new google.maps.MarkerImage()
>
> > > > > On Feb 26, 8:29 am, samhail <[email protected]> wrote:
>
> > > > > > Anyone have any experience of this ?
>
> > > > > > my code is slightly more complicated as i cam pulling from a 
> > > > > > database
> > > > > > and converting to the XML etc... but it looks perfect in relation 
> > > > > > with
> > > > > > creating the markers & icons.
>
> > > > > > examplehttp://samhail.com/where/airsoft1/testa1.html

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to