Hi Chad/anyone else... I am having kind of the same problem again, in that now about 12 of the icons are being displayed in IE where all of them are being displayed in firefox.
I have tried putting in a DOCTYPE (tries about 8 that i found online) and none of them worked, i have also tried to specify the icon size which didnt work either. (my hosting server has coincidently just gone down ! grrr. so hopefully will be back up soon.)... and i said i would have this site ready to go for today. On Feb 26, 2:30 pm, Chad Killingsworth <[email protected]> wrote: > I did some more testing on this issue and filed a bug. This only > appears to be in effect when the browser is rendering in quirks mode. > Try adding a doctype to your HTML. > > My test page ishttp://search.missouristate.edu/map/mobile/examples/float.htm > > Adding either a doctype or specifing a marker size fixes the issue on > that page. > > Chad Killingsworth > > On Feb 26, 7:35 am, samhail <[email protected]> wrote: > > > I think you found it that time ! > > it was the floating div style ! > > > Thank you Chad. > > > I tried the new google.maps.MarkerImage method aswell... but > > unfortunately that didnt work. It didnt even display the icons in > > firefox anymore. > > > I will look at page layout so, i might try to put the divs in a table > > and see how that works out. > > > As a matter of interest if you do raise it on the issue tracker can > > you send me over a link. > > > I appreciate the help. > > > On Feb 26, 1:27 pm, Chad Killingsworth > > > <[email protected]> wrote: > > > 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 > > > > > > theiconsin firefox with that call. > > > > > > > Nice find Chad ! thanks... i fixed that but its still not showing > > > > > > the > > > > > >iconsin 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.
